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": "cc7761d1-90c5-4d8e-97bc-a28488447e1d",
  "purchase_order_id": "7a5dbc79-dee3-413d-860a-1d2f8da0ae75",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "f3bfcd88-6469-4684-8abe-8585218c2ca4",
    "id2": 2,
    "jobs_id": "259769dd-83b6-42d1-a5bc-a90800597bda",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "de3c30fd-1f98-49b6-b415-b6bab9e58298",
    "supplier_company_code": "sample string 6",
    "user_id": "03cd3b4f-129b-460e-b1f2-b43e1d8480fc",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-11-16T11:59:55.4819155+00:00",
    "date_update": "2025-11-16T11:59:55.4819155+00:00",
    "date_delivery": "2025-11-16T11:59:55.4819155+00:00",
    "confirmed_date_delivery": "2025-11-16T11:59:55.4819155+00:00",
    "delivery_db_address_id": "c1e33c0c-87f0-406a-b930-20660c087aec",
    "approved_by_user_id": "ac399686-aac3-4ba2-a07e-39280a1336f0",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "c6e64850-39df-467e-979c-35f4a441495a",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "773287c8-b98e-499a-9e0c-6ebc3511fa08",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "dbf517a2-5c79-4762-a40e-3a380c995c9c",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-11-16T11:59:55.4819155+00:00"
  },
  "article_id": "2218da92-4c37-490c-9ed4-dc83e0e19d74",
  "article_code": "sample string 5",
  "article": {
    "id": "f70fdbb8-451b-439a-a9fa-ab667ccf25dd",
    "article_category_id": "cba1c343-392d-4507-a126-16653cacbe6f",
    "article_category": {
      "id": "4650462f-9847-4172-93e4-ad737856cdca",
      "parent_id": "74f4a378-a6a7-42a5-819a-d51b9c4b84ac",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-11-16T11:59:55.4819155+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "18499585-2c45-473b-a0a7-778d6708c78f",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "15fbd62f-5b01-4383-816c-2740ec36d7f0",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "fb0d7a86-f104-4213-a2e3-db560056e9ed",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "e2c0c58e-0d24-4580-b81a-7083131835b3",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "b080736f-76d3-4c3a-8162-6fb6be1371d6",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "86495a74-4c86-41da-95b8-c2b969e5fced",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2025-11-16T11:59:55.4819155+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": "2025-11-16T11:59:55.4819155+00:00",
    "date_update": "2025-11-16T11:59:55.4819155+00:00",
    "modified_dateutc": "2025-11-16T11:59:55.4819155+00:00",
    "article_color_id": "3f9c89a6-fcae-42c4-8dcf-1acec78bbaca",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "e6527717-87a6-4876-8c33-7e6b090034e4",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-11-16T11:59:55.4819155+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "51040a23-ddd6-4479-9fe2-d164e29b7ea5",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "9e465302-ea43-45d4-b91c-2eb9026d0d7c",
    "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": "2025-11-16T11:59:55.4819155+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.