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": "637fa6e7-ec9f-4a34-b483-c1ee2447f2e0", "purchase_order_id": "43ab5361-3a09-4a50-92fd-8ee0411e2aaa", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "28d161ad-7ce2-4ec7-a7a1-80047dd4e21a", "id2": 2, "jobs_id": "95b6ac4f-0acb-40bc-b4ee-ef094a11bb66", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "2118055f-91a5-4e9d-a4ed-bbeb0890371e", "supplier_company_code": "sample string 6", "user_id": "7ac5975a-f238-4cb1-b272-c832d07f804a", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2023-03-23T22:07:44.0187934+00:00", "date_update": "2023-03-23T22:07:44.0187934+00:00", "date_delivery": "2023-03-23T22:07:44.0187934+00:00", "confirmed_date_delivery": "2023-03-23T22:07:44.0187934+00:00", "delivery_db_address_id": "acb8ab2f-2508-43f1-8228-df193a4090ba", "approved_by_user_id": "743152a0-9344-4beb-be2b-350949d3ab41", "approved_by_user_code": "sample string 18", "technical_user_id": "f735bbb0-566b-4ab9-818c-c65fc13c8c22", "technical_user_code": "sample string 20", "purchase_order_status_id": "a59db0c5-285b-49c9-ad14-8b9e64457fec", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "a8d7ede8-90be-4a01-bc0f-1d33b25dcf74", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2023-03-23T22:07:44.0187934+00:00" }, "article_id": "4c9009c3-2d8a-414d-a48f-4d8ed96140f3", "article_code": "sample string 5", "article": { "id": "9a0a9a95-b778-44de-9bd8-e382f5783b30", "article_category_id": "ddab3b65-8ae2-44f5-968a-4a540cafbd9a", "article_category": { "id": "a387434e-b673-4ec1-bfa5-1936c33b6eac", "parent_id": "ea7ea2d2-e1fc-4b09-a2a9-44b51b5c2d00", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2023-03-23T22:07:44.0187934+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "1808cfe2-e020-4f15-a253-f06ec785f38a", "article_group_1_code": "sample string 5", "article_group_2_id": "7c7744ac-af4b-4980-b0cd-7f7f60b992cb", "article_group_2_code": "sample string 7", "article_group_3_id": "b93ca78b-1ada-4f30-bd98-b300faee0f70", "article_group_3_code": "sample string 9", "article_group_4_id": "7635679b-a0b7-4e9c-9170-c9c2cc11901c", "article_group_4_code": "sample string 11", "article_group_5_id": "35e3000c-7909-409b-801f-e7c190f58625", "article_group_5_code": "sample string 13", "article_group_6_id": "e6db5813-af3a-4f13-b0ca-9b3380bfd0e4", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2023-03-23T22:07:44.0187934+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": "2023-03-23T22:07:44.0187934+00:00", "date_update": "2023-03-23T22:07:44.0187934+00:00", "modified_dateutc": "2023-03-23T22:07:44.0187934+00:00", "article_color_id": "11d2b1f5-e2e3-4526-b5da-d26a21883960", "article_color_code": "sample string 38", "article_color": { "id": "c415d0c2-eaf5-43ff-abf0-74e0e4c9f367", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2023-03-23T22:07:44.0187934+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "6eb75109-b875-4f58-97d4-6e420eb0df79", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "63201c7b-e9bd-47ab-8080-0fecc6ca02f2", "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": "2023-03-23T22:07:44.0187934+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.