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": "ce1cf13e-ea0c-4961-bd98-33674023e260",
  "purchase_order_id": "21b7ad47-65df-4aa7-9478-d99b8dae8e84",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "11907e24-bb62-46c5-9193-eeff66b8b0d4",
    "id2": 2,
    "jobs_id": "88fa1d91-2c25-4b01-8e81-c131f5c67547",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "0fa0b0eb-b0a5-40cc-8e55-a619e1799568",
    "supplier_company_code": "sample string 6",
    "user_id": "310070ec-2c26-41de-b11d-08409efb1f67",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-05-21T11:45:15.3067272+00:00",
    "date_update": "2026-05-21T11:45:15.3067272+00:00",
    "date_delivery": "2026-05-21T11:45:15.3067272+00:00",
    "confirmed_date_delivery": "2026-05-21T11:45:15.3067272+00:00",
    "delivery_db_address_id": "988ae019-8f4d-4bb7-9ed6-24757dfa68a8",
    "approved_by_user_id": "f5546fe0-49df-4c19-8d45-7aeeff6b9bf8",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "cd96c9fd-66c2-40f4-a8c8-77e8382a8ded",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "07581eb1-6ab8-463a-8a41-f366f612dd5a",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "2d4ccdb5-fa04-48a7-931a-6a8e1722e789",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-05-21T11:45:15.3067272+00:00"
  },
  "article_id": "03677f28-074b-4518-89b5-ff63ae790988",
  "article_code": "sample string 5",
  "article": {
    "id": "b944b0a2-78a9-4054-92a4-ca757f6cca50",
    "article_category_id": "904fca6e-b996-4283-8924-49cef3b044b2",
    "article_category": {
      "id": "cf685b8b-63c4-44b1-b42d-2631bea0f0bf",
      "parent_id": "c904a29f-e903-4012-9cdd-0443a9abcf88",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-05-21T11:45:15.3067272+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "199454fb-cab9-4e4b-8345-18fcb91345ae",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "3c81774a-ee54-4ac9-ac6b-1d37f7dbf099",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "623e6c7e-09e7-414e-ac1e-074e15ad0508",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "da9cb315-c891-4972-ad4a-406539fed7fa",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "b6d721cd-b8c5-4a20-b15a-3c6e262c1e02",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "ff4d9d3e-d3eb-4418-a8cf-79de8eba60c9",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-05-21T11:45:15.3067272+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-05-21T11:45:15.3067272+00:00",
    "date_update": "2026-05-21T11:45:15.3067272+00:00",
    "modified_dateutc": "2026-05-21T11:45:15.3067272+00:00",
    "article_color_id": "46313766-73d0-4583-bdce-556f8cc2c9a4",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "c4685dd1-bb6f-4411-9825-e4cc07dd2f09",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-05-21T11:45:15.3067272+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "aa9d5362-2c93-4544-b049-a0f687a99931",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "05501044-04ff-4fde-a4c2-44e7fddecf04",
    "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-05-21T11:45:15.3067272+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.