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_detailsName | 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": "ff06fb92-a213-42d7-8a22-c6bc22ee3b9b", "purchase_order_id": "92562375-cb0c-4bba-a677-a169aaa0437a", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "4bc16477-a6f0-4861-8867-33825e1a23e2", "id2": 2, "jobs_id": "04a0c96c-78b6-4f9a-afe9-5a4d50fb5818", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "cbf45805-c57b-4e23-a751-cacaec3eb731", "supplier_company_code": "sample string 6", "user_id": "e53c37b9-ebf4-4703-9d93-12dfc14ed485", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-10-23T16:39:54.8269755+00:00", "date_update": "2025-10-23T16:39:54.8269755+00:00", "date_delivery": "2025-10-23T16:39:54.8269755+00:00", "confirmed_date_delivery": "2025-10-23T16:39:54.8269755+00:00", "delivery_db_address_id": "8fa052f5-57d4-4d0a-9b11-60faf8ff346f", "approved_by_user_id": "225cf0b5-7613-4275-af0c-d5b1a6a86bee", "approved_by_user_code": "sample string 18", "technical_user_id": "b3190ae9-49af-401a-b77f-275cda08b77b", "technical_user_code": "sample string 20", "purchase_order_status_id": "c613a0e3-add7-4ea0-8801-36ebdc8f248f", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "98ecc3f2-7b16-47b4-b33a-d177a9f5196b", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-10-23T16:39:54.8269755+00:00" }, "article_id": "12dc1d31-5e8e-4eca-89bc-d423a7dd4e01", "article_code": "sample string 5", "article": { "id": "bfc4af66-bdc0-40f0-9c26-72cf94821966", "article_category_id": "6a0f9d22-babe-44db-9366-80c5ec8c9a52", "article_category": { "id": "6bc19f8e-18b9-45f9-a6d9-be1e7e1f0d82", "parent_id": "91039400-8d38-4ce3-8854-5aa55f4b5553", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-10-23T16:39:54.8269755+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "bb9cbff3-ce4b-4fd0-82d7-03904d7591c3", "article_group_1_code": "sample string 5", "article_group_2_id": "902abd2e-047f-4196-b65a-d6759ea19fbe", "article_group_2_code": "sample string 7", "article_group_3_id": "47fb8bb9-ba21-4eca-8e85-76812862452c", "article_group_3_code": "sample string 9", "article_group_4_id": "5b5f397a-a34d-43bc-a2cd-d8fcc700397d", "article_group_4_code": "sample string 11", "article_group_5_id": "3f4444e6-2fe0-4188-814d-79e858257f50", "article_group_5_code": "sample string 13", "article_group_6_id": "63b2a8e7-4c40-4283-8d3c-65106038a1d8", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-10-23T16:39:54.8269755+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-10-23T16:39:54.8269755+00:00", "date_update": "2025-10-23T16:39:54.8269755+00:00", "modified_dateutc": "2025-10-23T16:39:54.8269755+00:00", "article_color_id": "0177a784-968c-4096-93d3-e6f0bc4f9069", "article_color_code": "sample string 38", "article_color": { "id": "4bd9841d-4beb-49ab-b01e-33a79dff55df", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-10-23T16:39:54.8269755+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "a9eff3e3-a764-4be6-a977-e24196431c50", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "e97e6fc9-7800-4e7e-8152-014ad0fe3c8e", "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-10-23T16:39:54.8269755+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.