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": "2cf5a74b-cc7f-448d-9601-6b0360b07c8b",
  "purchase_order_id": "c03d61c4-1c23-4e50-8f44-b8291502f94a",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "e46e5705-3c9e-4fe9-812e-9fa4d8318c1b",
    "id2": 2,
    "jobs_id": "7d7f52d1-bb10-42c1-b069-908010f226a5",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "0820e835-abab-4b3b-a325-bb05c864b771",
    "supplier_company_code": "sample string 6",
    "user_id": "242977f2-9f1a-4fc5-881f-f94f89b49da7",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-03-12T06:10:47.4349086+00:00",
    "date_update": "2026-03-12T06:10:47.4349086+00:00",
    "date_delivery": "2026-03-12T06:10:47.4349086+00:00",
    "confirmed_date_delivery": "2026-03-12T06:10:47.4349086+00:00",
    "delivery_db_address_id": "bd1cccbd-98ab-467b-b2b5-28f8d9c79c3b",
    "approved_by_user_id": "221a7dc4-b268-4369-b2dc-5dcf8c360988",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "d437233a-a69d-430b-8518-22a7e57903f7",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "74174bf9-a1f6-4feb-a535-fbde70736f5f",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "1dbf0962-2aed-4b0c-876a-656757fc823f",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-03-12T06:10:47.4349086+00:00"
  },
  "article_id": "425762db-8abd-419f-9aa7-6f2b03635752",
  "article_code": "sample string 5",
  "article": {
    "id": "d6f0da8b-7f85-48c8-8b63-97916d6778f1",
    "article_category_id": "c35e26de-0346-4cac-a857-a7d94de26fcd",
    "article_category": {
      "id": "3bfa4b29-d984-4ba4-9b87-70c79df4aa93",
      "parent_id": "c1267f40-9355-4984-a583-fde322b38eff",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-03-12T06:10:47.4349086+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "23475efc-cb45-4593-a108-93d4e54e578b",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "7fad12cb-6205-4dbe-8e22-9353d6a1c79d",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "ec92bdc6-f316-43c0-9fbd-5ae697cbc937",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "3ab10cf9-f5a5-4f7f-8220-2c68d723b35b",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "1693779b-f13f-4b7d-be04-af9f899c5f93",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "1375ac60-90b1-4dcd-8861-248304141498",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-03-12T06:10:47.4349086+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-03-12T06:10:47.4349086+00:00",
    "date_update": "2026-03-12T06:10:47.4349086+00:00",
    "modified_dateutc": "2026-03-12T06:10:47.4349086+00:00",
    "article_color_id": "25827dd7-2993-4cbd-90ee-2a0af4e2be7d",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "84c71d26-3166-428f-b656-e5d91fbafa59",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-03-12T06:10:47.4349086+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "d4a36e56-de03-4a9c-a09d-8bbf08708ce9",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "84765653-bd44-46e1-9efb-d94140712f92",
    "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-03-12T06:10:47.4349086+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.