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": "983fd97b-6d14-4e1c-ba18-00ba7301b085", "purchase_order_id": "f2918c65-0ae7-443b-b9d5-a756452c1e85", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "73c8398b-3541-4ab5-b582-3b786d7bbfa5", "id2": 2, "jobs_id": "324a1dc1-7598-4e64-88b4-045f8687b288", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "e5cdef94-deb9-4e7b-be02-5e170a5c4dd7", "supplier_company_code": "sample string 6", "user_id": "29cda65a-656e-4edc-92ba-aa470e885abf", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-09-16T14:15:58.1745552+00:00", "date_update": "2025-09-16T14:15:58.1745552+00:00", "date_delivery": "2025-09-16T14:15:58.1745552+00:00", "confirmed_date_delivery": "2025-09-16T14:15:58.1745552+00:00", "delivery_db_address_id": "3994d25d-1eb1-41b5-8664-c6733e8cda0d", "approved_by_user_id": "60305ce5-92b7-4e5f-a331-4d2612c3b403", "approved_by_user_code": "sample string 18", "technical_user_id": "d0a330a3-edfd-4fa2-8396-59ffdb02a264", "technical_user_code": "sample string 20", "purchase_order_status_id": "75072547-da45-414b-aef9-c7576f3d2d60", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "b687e1ab-cb85-4c38-8d5f-86c79cd1511c", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-09-16T14:15:58.1745552+00:00" }, "article_id": "555040f4-2940-4462-90b5-1cc75518b2d2", "article_code": "sample string 5", "article": { "id": "50d8e38b-2875-42a3-8c79-b7dd22c9cd80", "article_category_id": "396c42ec-3807-4388-8dde-26787f9feef1", "article_category": { "id": "a37874d6-d775-44bc-9d9a-18ff95aba25d", "parent_id": "fd3aae3a-5337-41eb-901f-15d1ac3db830", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-09-16T14:15:58.1745552+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "ddd52d0d-9bcc-442f-935b-202deee083a5", "article_group_1_code": "sample string 5", "article_group_2_id": "9d8c0244-6bcf-4199-a61b-3eee7863d174", "article_group_2_code": "sample string 7", "article_group_3_id": "cc2c946e-f7ca-4279-932d-5c4aa4a3416a", "article_group_3_code": "sample string 9", "article_group_4_id": "1dd7144e-b7b0-4982-925f-2eab846d462f", "article_group_4_code": "sample string 11", "article_group_5_id": "12fb26df-e730-44f3-920d-630609940360", "article_group_5_code": "sample string 13", "article_group_6_id": "a67696e3-fb2b-4002-87be-151fb70ecfdf", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-09-16T14:15:58.1745552+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-09-16T14:15:58.1745552+00:00", "date_update": "2025-09-16T14:15:58.1745552+00:00", "modified_dateutc": "2025-09-16T14:15:58.1745552+00:00", "article_color_id": "2261c833-12b2-49df-98e3-353debe43a97", "article_color_code": "sample string 38", "article_color": { "id": "2946c928-0fb8-4800-9f02-7838153a0188", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-09-16T14:15:58.1745552+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "e8bdc33a-db16-4702-b673-5eb21d7156bf", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "1fc3deed-d30a-4a8c-b097-936e81108d68", "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-09-16T14:15:58.1745552+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.