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": "cbd676d6-fafb-420d-b06c-9de1cd7f81ef",
"purchase_order_id": "2163d5a2-c540-4d06-abb4-75ad2a320c3d",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "364bb070-13bc-431f-8094-4ce7054abf34",
"id2": 2,
"jobs_id": "40f17cae-0bb6-4562-9851-d87981a1141a",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "9c111533-a49e-4b45-9f5c-eb7c04be1586",
"supplier_company_code": "sample string 6",
"user_id": "2e927e92-6d1a-40c9-b5c4-cce5832d1b1d",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2025-11-29T23:17:52.392536+00:00",
"date_update": "2025-11-29T23:17:52.392536+00:00",
"date_delivery": "2025-11-29T23:17:52.392536+00:00",
"confirmed_date_delivery": "2025-11-29T23:17:52.392536+00:00",
"delivery_db_address_id": "8f79dfe5-0078-4314-a2c2-0d9ded9b0604",
"approved_by_user_id": "242f49d9-8d67-430f-b221-d9e41c5ef341",
"approved_by_user_code": "sample string 18",
"technical_user_id": "cc8cefee-2e3c-4c60-9aaa-2574d396e53f",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "a9536105-ebc9-47d5-93c4-2928f585698f",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "d8f235d3-df9b-4b3e-85b8-0cb82df8f8c9",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2025-11-29T23:17:52.392536+00:00"
},
"article_id": "8a7b48b2-7a8a-4adb-b76d-e450504b3827",
"article_code": "sample string 5",
"article": {
"id": "fa7995d7-f028-4379-9bc3-5bca96e353da",
"article_category_id": "457eb81c-9aa1-4913-8365-272d89bdb2f1",
"article_category": {
"id": "a27a7e0d-f4e3-447b-a63f-66491d91aca6",
"parent_id": "cf537e53-673d-4241-b513-95c6df4ebd0b",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2025-11-29T23:17:52.392536+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "187754eb-24e6-4fb2-8599-2a180bb1e25d",
"article_group_1_code": "sample string 5",
"article_group_2_id": "efb2ad34-7ed2-4d14-ae64-a2a14609c228",
"article_group_2_code": "sample string 7",
"article_group_3_id": "696606a4-0ee4-46fa-801d-0969c3821d02",
"article_group_3_code": "sample string 9",
"article_group_4_id": "cc5370e4-ce5e-4b7e-9c06-9382189cffbf",
"article_group_4_code": "sample string 11",
"article_group_5_id": "4ca18bf2-8cc3-4332-9504-5d48c73f6444",
"article_group_5_code": "sample string 13",
"article_group_6_id": "18e281a8-3791-485c-a03f-efadb1667ad6",
"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-29T23:17:52.392536+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-29T23:17:52.392536+00:00",
"date_update": "2025-11-29T23:17:52.392536+00:00",
"modified_dateutc": "2025-11-29T23:17:52.392536+00:00",
"article_color_id": "861d43f5-cde9-4c80-b03b-37b3a6e03b90",
"article_color_code": "sample string 38",
"article_color": {
"id": "d02ec52c-cfa4-40f6-a9f9-9b886183133b",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2025-11-29T23:17:52.392536+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "c1803922-a157-4418-b979-892c7b667b41",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "571a7fe9-af97-4666-8006-682eb09e2104",
"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-29T23:17:52.392536+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.