Updates the purchase order order lines with the specified key

Request Information

URI Parameters :

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters :

purchase_order_details
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier
purchase_order_id

Foreign key of the purchase_order

globally unique identifier

Optionally required : purchase_order_id, purchase_order_reference or purchase_order must be provided

purchase_order_reference_back_office

Embedded entity "purchase_order" using ERP PK when adding/updating

string

Optionally required : purchase_order_id, purchase_order_reference_back_office or purchase_order must be provided

purchase_order

Embedded entity "purchase_order" when adding/updating

purchase_order

Optionally required : purchase_order_id, purchase_order_reference_back_office or purchase_order must be provided

article_id

Foreign key of article

globally unique identifier

Optionally required : article_id, article_code or article must be provided

article_code

Embedded entity "article" using ERP PK when adding/updating

string

Optionally required : article_id, article_code or article must be provided

article

Embedded entity "article" when adding/updating

article

Optionally required : article_id, article_code or article must be provided

line_number

Line Number, auto filled with (Highest+1) if value is 0/null

integer
code

Code of the article (auto filled if empty)

string

Max length: 255

supplier_code

Code of the supplier for this article

string

Max length: 255

name

Article Name (will be auto filled if article.name+description are empty)

string

Max length: 255

description

Article description (will be auto filled by article.short_description if name+description are empty)

string

Max length: 255

price

Unit Price

decimal number

Matching regular expression pattern: ^[0-9]\d*(\.\d+)?$

Range: inclusive between 0.1 and 1.79769313486232E+308

quantity

Quantity

decimal number

Required

Range: inclusive between 0.1 and 1.79769313486232E+308

memo

Line memo/remark

string
cost_price

Unit Cost Price (statistic purpose)

decimal number

Matching regular expression pattern: ^[0-9]\d*(\.\d+)?$

reference_back_office

Field used for Embedded entity (store there your ERP PK)

string

Max length: 50

modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date

Request Formats :

application/json, text/json

Sample:
{
  "id": "59b0fb45-9467-4336-af3e-75e32c7d968b",
  "purchase_order_id": "3b933e2a-07e5-419e-809c-ed4a3637c032",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "a03fb983-4db0-48e0-a141-6b81f36a19e4",
    "id2": 2,
    "jobs_id": "63a996c1-06eb-42f5-896e-7c91bac913f5",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "3346cbf4-0d0d-4028-bd01-5698374e79dd",
    "supplier_company_code": "sample string 6",
    "user_id": "155d9f66-9fb1-4c36-a380-f685d1c7945c",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-11-19T23:30:13.9064697+00:00",
    "date_update": "2026-11-19T23:30:13.9064697+00:00",
    "date_delivery": "2026-11-19T23:30:13.9064697+00:00",
    "confirmed_date_delivery": "2026-11-19T23:30:13.9064697+00:00",
    "delivery_db_address_id": "4bc66d7f-9c80-471b-bf2e-e421554a56ea",
    "approved_by_user_id": "67366fee-3bee-4a9a-a247-9b0d537eca7b",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "f85f7c24-f77e-440c-aca0-00f04c2e41ec",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "d0a1c0d9-e3b1-4d9a-9c85-da0dc0594ac5",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "a0a72b8e-0977-40ba-87fa-c7dad6c38af4",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-11-19T23:30:13.9064697+00:00"
  },
  "article_id": "02bd224f-2d2c-43e2-829b-0b8c987e1a68",
  "article_code": "sample string 5",
  "article": {
    "id": "865391c1-e41d-4983-8835-4ed11049eea2",
    "article_category_id": "dc837a9f-69d9-4b96-8c0d-0a758b40cea3",
    "article_category": {
      "id": "e58b5317-4a84-4a95-85da-31bd39c903b9",
      "parent_id": "04d10efb-63ff-439b-a629-fd120970e54f",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-11-19T23:30:13.9064697+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "0f919579-9a5c-46a7-a5f5-888fee2fcae2",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "f4b517cd-523c-4285-82cd-337c9b91df56",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "207e4884-a666-425a-914f-2f15a08ca508",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "b406c608-cd46-4725-ad80-b9ea55e41e74",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "86bb65db-650b-49c1-b7e9-ce678522a014",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "98596d45-989a-452a-8126-bc6fa7571da1",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-11-19T23:30:13.9064697+00:00",
    "article_increment": 20,
    "min_article_quantity": 21,
    "entered_price": 22.0,
    "cost_price": 23.1,
    "no_stock": true,
    "archived": true,
    "is_travel_fee": true,
    "is_mileage_fee": true,
    "code": "sample string 28",
    "name": "sample string 29",
    "description_short": "sample string 30",
    "description_long": "sample string 31",
    "barcode": "sample string 32",
    "notes": "sample string 33",
    "date_create": "2026-11-19T23:30:13.9064697+00:00",
    "date_update": "2026-11-19T23:30:13.9064697+00:00",
    "modified_dateutc": "2026-11-19T23:30:13.9064697+00:00",
    "article_color_id": "6a36c0c0-8446-4b18-9684-36cba47268fa",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "3376e348-c313-4132-b7ce-ca16bfaa51ba",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-11-19T23:30:13.9064697+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "1d5ba00c-4a32-4611-93f3-46db98e3561c",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "b97327e4-2df9-4db3-bace-10a34c58e36d",
    "db_unit_of_measure_code_selling": "sample string 44",
    "translations": [
      {
        "field_name": "sample string 1",
        "language_code": "sample string 2",
        "value_translated": "sample string 3"
      },
      {
        "field_name": "sample string 1",
        "language_code": "sample string 2",
        "value_translated": "sample string 3"
      }
    ]
  },
  "line_number": 6,
  "code": "sample string 7",
  "supplier_code": "sample string 8",
  "name": "sample string 9",
  "description": "sample string 10",
  "price": 11.0,
  "quantity": 12.0,
  "memo": "sample string 13",
  "cost_price": 14.0,
  "reference_back_office": "sample string 15",
  "modified_dateutc": "2026-11-19T23:30:13.9064697+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.