Updates the purchase order order lines with the specified key
Request Information
URI Parameters :
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters :
purchase_order_details| Name | Description | Type | Additional 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
{
"id": "355477ef-75c3-48db-9615-7be5a4362225",
"purchase_order_id": "c6331fd3-b5b5-434b-80d4-e51ece8d7517",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "3ab87414-a630-4fc5-a18e-79741f10a0d2",
"id2": 2,
"jobs_id": "adcbf04c-4553-42e3-a5b6-e0c3fe7cf93e",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "077aba80-46b4-4f1f-a006-48eb99db38f7",
"supplier_company_code": "sample string 6",
"user_id": "0047850d-daf9-475a-b334-ffa1d7042cc6",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-04-21T21:59:13.2106039+00:00",
"date_update": "2026-04-21T21:59:13.2106039+00:00",
"date_delivery": "2026-04-21T21:59:13.2106039+00:00",
"confirmed_date_delivery": "2026-04-21T21:59:13.2106039+00:00",
"delivery_db_address_id": "1fc94ee8-1d4e-4e0c-ba0d-3a92f71510f4",
"approved_by_user_id": "79e5fbda-a3a7-438c-984a-322fd9f31cbb",
"approved_by_user_code": "sample string 18",
"technical_user_id": "5d9c8850-716e-4ea5-9355-73e489b7cbea",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "6f730e0e-68b8-43e9-9bcd-180cbb415dc5",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "101a07a9-1f92-48f7-a405-c9aeb12df3fc",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-04-21T21:59:13.2106039+00:00"
},
"article_id": "ba0548f3-53b9-4cda-96b3-96baaf40c91b",
"article_code": "sample string 5",
"article": {
"id": "e39e0652-da6f-400f-96c4-a2fec125762f",
"article_category_id": "1e3a072e-6ce8-477e-9d58-ece44ba49935",
"article_category": {
"id": "516c0905-4e08-4892-a895-57b404f93559",
"parent_id": "78c3b801-f0ef-4a0b-b727-7c3f83e58a26",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-04-21T21:59:13.2106039+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "d5de5ac1-780d-4d30-bb85-3073849774a3",
"article_group_1_code": "sample string 5",
"article_group_2_id": "82e31b6b-fea9-45ec-9f85-b51bf202da76",
"article_group_2_code": "sample string 7",
"article_group_3_id": "90c907be-7e39-4cf2-a5c0-7ef5cd8523eb",
"article_group_3_code": "sample string 9",
"article_group_4_id": "b4aceb7e-014d-474b-bba4-32bd8950d472",
"article_group_4_code": "sample string 11",
"article_group_5_id": "e4c806b5-09f7-4375-a120-19b4859b6e20",
"article_group_5_code": "sample string 13",
"article_group_6_id": "d3431dff-00b5-4d9e-a914-50b70a01f10e",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-04-21T21:59:13.2106039+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-04-21T21:59:13.2106039+00:00",
"date_update": "2026-04-21T21:59:13.2106039+00:00",
"modified_dateutc": "2026-04-21T21:59:13.2106039+00:00",
"article_color_id": "d1add156-fb0c-4107-869c-81515d4d9bee",
"article_color_code": "sample string 38",
"article_color": {
"id": "3c83ef03-1de4-4cea-9bd3-c32bb3ddb6c5",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-04-21T21:59:13.2106039+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "0947eae7-26d6-4a9f-ad07-b6670bb88db5",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "74971bf2-7cd2-49fd-9de6-0805ed1a3b5d",
"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-04-21T21:59:13.2262273+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.