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": "1bc276cb-ca7a-45d7-b13b-f49d95b81c9a",
"purchase_order_id": "08153b22-5600-41c0-8e3a-e3845fe167c7",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "b054fbfd-c293-4cb0-87fb-ec446eaaff8c",
"id2": 2,
"jobs_id": "9ba15447-e5f6-4c2b-88f7-735e72d143c2",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "c9ebdad1-259c-4427-8366-3f247f475d55",
"supplier_company_code": "sample string 6",
"user_id": "cbea991c-b0cc-40e5-9f55-0fd31ea28893",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-08-11T09:22:06.9245698+00:00",
"date_update": "2026-08-11T09:22:06.9245698+00:00",
"date_delivery": "2026-08-11T09:22:06.9245698+00:00",
"confirmed_date_delivery": "2026-08-11T09:22:06.9245698+00:00",
"delivery_db_address_id": "6503281f-c282-40a4-a973-2ed3685be403",
"approved_by_user_id": "d15aed7b-3647-4786-99bf-f80ed616bf44",
"approved_by_user_code": "sample string 18",
"technical_user_id": "e0300c98-2d15-44cf-8ea7-38beb61a8e8e",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "c6b637f3-10e2-4070-abaf-2feaf2290323",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "27a29ee5-4729-497e-8806-a9b762d70001",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-08-11T09:22:06.9245698+00:00"
},
"article_id": "91981b8f-5859-4bc5-a170-74cf1c3aed59",
"article_code": "sample string 5",
"article": {
"id": "ecf62277-ba06-434a-a1d8-85a115972cd6",
"article_category_id": "1264636d-01c7-44b2-948f-4189b84ec76c",
"article_category": {
"id": "42797682-d745-4de3-aa90-fb6144af161f",
"parent_id": "efcdabdf-7da2-4bb6-92b4-152807b03bc2",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-08-11T09:22:06.9245698+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "5db712a3-b700-4fd7-97d5-fa5f792a2705",
"article_group_1_code": "sample string 5",
"article_group_2_id": "a585396b-2b65-4ff6-836f-e95ba61308d1",
"article_group_2_code": "sample string 7",
"article_group_3_id": "2a9970e8-8660-4c9c-b368-814c39e977ac",
"article_group_3_code": "sample string 9",
"article_group_4_id": "854e1694-f797-4b4c-9a69-b49de5e92bff",
"article_group_4_code": "sample string 11",
"article_group_5_id": "a1dd6322-b28a-4a25-8f99-e2c9aff8668a",
"article_group_5_code": "sample string 13",
"article_group_6_id": "255a3bbe-d073-4215-8db6-7c48e733f319",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-08-11T09:22:06.9245698+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-08-11T09:22:06.9245698+00:00",
"date_update": "2026-08-11T09:22:06.9245698+00:00",
"modified_dateutc": "2026-08-11T09:22:06.9245698+00:00",
"article_color_id": "f6935f2d-ca41-4033-898a-1c963e565f06",
"article_color_code": "sample string 38",
"article_color": {
"id": "528e7a27-b42c-480a-bbc2-a29064907d04",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-08-11T09:22:06.9245698+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "c02462b6-4e78-4a1f-8f31-1b8b1b131783",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "e7b3bf71-5c6f-479f-8a83-d2487b2b1ba1",
"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-08-11T09:22:06.9245698+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.