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": "196d8f2b-47d7-4a51-955b-ba909a02d162", "purchase_order_id": "43a6dedf-9e5a-4df9-9466-0f52ee2a8b18", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "9ef8ee10-a7cf-4654-a4a9-42d12d373421", "id2": 2, "jobs_id": "fbd177df-4395-44d9-97eb-abe40f15876d", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "55ec61cc-c0c5-4317-b695-67d93a1283ae", "supplier_company_code": "sample string 6", "user_id": "a74d8b3d-aa60-4fa9-9d51-90f0ce994ce5", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-06-01T00:33:09.2813572+00:00", "date_update": "2025-06-01T00:33:09.2813572+00:00", "date_delivery": "2025-06-01T00:33:09.2813572+00:00", "confirmed_date_delivery": "2025-06-01T00:33:09.2813572+00:00", "delivery_db_address_id": "43e027da-17d6-4f07-bf03-030a410d8cf5", "approved_by_user_id": "2e0d9f8c-4d4c-4ce8-8bb8-ea2c32509a51", "approved_by_user_code": "sample string 18", "technical_user_id": "c712948d-4d1a-4254-9705-5ef7dee2a65c", "technical_user_code": "sample string 20", "purchase_order_status_id": "7f2bd812-921d-4123-bbbb-f9cc579fb642", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "aa34def6-81ca-4e75-b9a6-89ecb21146f1", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-06-01T00:33:09.2813572+00:00" }, "article_id": "59f47e62-8169-4dd5-944e-c26e631756a2", "article_code": "sample string 5", "article": { "id": "ec2d4368-d9ee-4803-b011-ee4e3065e729", "article_category_id": "e0eb3dd6-0f71-4301-8526-0869d65d69c0", "article_category": { "id": "ca32de24-82a5-4153-9b03-3b48189574ca", "parent_id": "90956b18-fcde-4ca8-973c-973c4fe8f32c", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-06-01T00:33:09.2813572+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "02605785-e6dc-42a2-8806-0d45f473e9c7", "article_group_1_code": "sample string 5", "article_group_2_id": "c004eb79-f41a-45eb-9a99-b7f930a98cba", "article_group_2_code": "sample string 7", "article_group_3_id": "709af88a-715d-409e-a1c9-4a5edea48c6d", "article_group_3_code": "sample string 9", "article_group_4_id": "9f305ef9-af2b-4516-a1a9-006bc7e81cba", "article_group_4_code": "sample string 11", "article_group_5_id": "d00e367b-ff90-4904-8198-d53a76351167", "article_group_5_code": "sample string 13", "article_group_6_id": "1a1e1953-3460-498d-a3ad-f942f4b875c4", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-06-01T00:33:09.2813572+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-06-01T00:33:09.2813572+00:00", "date_update": "2025-06-01T00:33:09.2813572+00:00", "modified_dateutc": "2025-06-01T00:33:09.2813572+00:00", "article_color_id": "7f71a74d-0c22-4be0-a009-57e83128c6b8", "article_color_code": "sample string 38", "article_color": { "id": "35c11940-50bb-4e21-9971-cebf7bcfb146", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-06-01T00:33:09.2813572+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "73c5b729-42d3-4aee-986d-11da3e1ece88", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "bf346a04-5856-49da-9922-d6e69bf56114", "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-06-01T00:33:09.2813572+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.