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": "0f1967b7-21bd-47e7-a6db-59ff66f7b44d",
"purchase_order_id": "5ff07cd8-e58b-4aee-bd80-0ebdd28798fd",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "c410ac38-f2f0-4a2d-a5e8-90b8d10c936a",
"id2": 2,
"jobs_id": "18277b03-b592-4941-9c66-194ac0a54710",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "49c05cd9-762a-43db-8a75-e8847be766d0",
"supplier_company_code": "sample string 6",
"user_id": "c8682718-a67b-4d32-9ea3-20a60c35e97a",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-02-06T08:20:43.1354583+00:00",
"date_update": "2026-02-06T08:20:43.1354583+00:00",
"date_delivery": "2026-02-06T08:20:43.1354583+00:00",
"confirmed_date_delivery": "2026-02-06T08:20:43.1354583+00:00",
"delivery_db_address_id": "eab9ff97-3833-491e-a7d9-a153262a620b",
"approved_by_user_id": "ba98d4a7-1890-455b-8801-b5b00fbff2be",
"approved_by_user_code": "sample string 18",
"technical_user_id": "de11a60c-412b-4ee1-a86a-18c4ce343b11",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "f170112b-087b-435f-8eba-75af31614573",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "9f90edba-0280-4c23-ab54-0a1459084551",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-02-06T08:20:43.1354583+00:00"
},
"article_id": "44556b37-67a7-4f98-943f-3481bed1f3bf",
"article_code": "sample string 5",
"article": {
"id": "69128810-811f-41da-8db5-e698916ab110",
"article_category_id": "c8d07f39-0c3c-4dfd-ac4d-fb41a81d453f",
"article_category": {
"id": "a93e4ad0-df0d-4a50-a241-37cb4355864b",
"parent_id": "8eb21b06-f03e-4cc8-833e-6ebf6ba68365",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-02-06T08:20:43.1354583+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "393a7593-1f79-4cf4-8f44-dd676bbf3144",
"article_group_1_code": "sample string 5",
"article_group_2_id": "ab57a8e8-44e2-42e0-9d7f-2c6a1dfe282e",
"article_group_2_code": "sample string 7",
"article_group_3_id": "92f23a41-3065-4514-b68f-642d7b1bc5ca",
"article_group_3_code": "sample string 9",
"article_group_4_id": "99e4ef92-0c03-491b-925a-dafe763dc607",
"article_group_4_code": "sample string 11",
"article_group_5_id": "989777c9-ef37-4432-9666-a8e33dfadcc5",
"article_group_5_code": "sample string 13",
"article_group_6_id": "a3c0721c-5b6e-4dff-a054-107ba7c7a7ea",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-02-06T08:20:43.1354583+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-02-06T08:20:43.1354583+00:00",
"date_update": "2026-02-06T08:20:43.1354583+00:00",
"modified_dateutc": "2026-02-06T08:20:43.1354583+00:00",
"article_color_id": "7e48e855-abb5-4282-bf37-f91dd3cfa273",
"article_color_code": "sample string 38",
"article_color": {
"id": "13689c44-9baa-43df-8262-c02e89c72e4d",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-02-06T08:20:43.1354583+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "f139cd97-4338-49a0-96ff-7fa0d470566b",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "209ea10d-0e29-4ed5-af16-51170147e60e",
"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-02-06T08:20:43.1354583+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.