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": "e2892e62-7079-41a1-b66b-5e9b43e08d73",
"purchase_order_id": "e585da3a-fd88-49ab-8746-be8db64af6bd",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "588ef291-5354-4bc6-bda9-781bb3614522",
"id2": 2,
"jobs_id": "fdcfc4ea-12f9-4268-a1c1-d00b898e8fcf",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "5840e139-f854-4f60-ac6f-13c956cd95a4",
"supplier_company_code": "sample string 6",
"user_id": "7453de1d-ba1d-4df5-9b66-383c8942b3d4",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-03-19T16:54:29.224267+00:00",
"date_update": "2026-03-19T16:54:29.224267+00:00",
"date_delivery": "2026-03-19T16:54:29.224267+00:00",
"confirmed_date_delivery": "2026-03-19T16:54:29.224267+00:00",
"delivery_db_address_id": "96709c91-a925-44cf-9ee3-34ec57ccb9fc",
"approved_by_user_id": "f3ee83df-1335-4ac4-9286-28c40bfb06f0",
"approved_by_user_code": "sample string 18",
"technical_user_id": "ede6f568-9842-4240-a8ab-0c1c4b5d3948",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "889b6ba6-ca27-4d3e-b89b-8f744af8759d",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "4f59c159-ad26-4e6b-8ad5-69ffdce82f52",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-03-19T16:54:29.224267+00:00"
},
"article_id": "64f29053-fa87-427e-8e6c-3f806ad861fa",
"article_code": "sample string 5",
"article": {
"id": "3f402f3e-dbdd-439e-af20-8a8683315073",
"article_category_id": "65744159-3365-4ca7-b289-97c5e87b41eb",
"article_category": {
"id": "6c0ef705-9bae-4b50-a019-c5507554a068",
"parent_id": "02433999-7581-42dc-97cc-2023b5410a07",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-03-19T16:54:29.224267+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "31897b73-9313-49e3-ab0e-979b725471ab",
"article_group_1_code": "sample string 5",
"article_group_2_id": "f492d130-59d3-4d29-9dbe-f6ba97f5800f",
"article_group_2_code": "sample string 7",
"article_group_3_id": "1ce1718d-2895-41cb-9cac-a7b667d0a73b",
"article_group_3_code": "sample string 9",
"article_group_4_id": "c91259f0-2833-4174-b277-a4f6bba650cc",
"article_group_4_code": "sample string 11",
"article_group_5_id": "2014c3d7-6fbe-4bfd-a525-4489191fae3a",
"article_group_5_code": "sample string 13",
"article_group_6_id": "4c52739f-e8d4-47dd-9dfa-30643b1d0220",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-03-19T16:54:29.224267+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-03-19T16:54:29.224267+00:00",
"date_update": "2026-03-19T16:54:29.224267+00:00",
"modified_dateutc": "2026-03-19T16:54:29.224267+00:00",
"article_color_id": "a6a2a633-6dc0-4f47-a0b0-756f7de01794",
"article_color_code": "sample string 38",
"article_color": {
"id": "2d0424e8-8fdd-4c1a-bda0-055aa1000d8b",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-03-19T16:54:29.224267+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "3027816c-f608-45e7-8a40-aaf467562d29",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "ae7e924c-a6a4-4373-b7ec-1a906da9044c",
"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-03-19T16:54:29.224267+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.