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": "6bad3dae-151f-43db-92ec-5cab33f38d64", "purchase_order_id": "e0a4cc9e-35ec-406c-b9b9-f25d47edbf77", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "25c6e493-73ef-4d91-872a-e7f03627dc88", "id2": 2, "jobs_id": "985e3b39-5d22-4452-9af0-db9654bcce1a", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "429daacf-1d79-4ee4-b772-9fe602f98423", "supplier_company_code": "sample string 6", "user_id": "c0925317-18de-45c7-88fe-e42d670afcc6", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-01-22T01:19:47.8834227+00:00", "date_update": "2025-01-22T01:19:47.8834227+00:00", "date_delivery": "2025-01-22T01:19:47.8834227+00:00", "confirmed_date_delivery": "2025-01-22T01:19:47.8834227+00:00", "delivery_db_address_id": "28396830-7fc2-46cf-b8c3-65a4435391c2", "approved_by_user_id": "7270e311-51aa-4dc2-8e2d-24ee25900b5e", "approved_by_user_code": "sample string 18", "technical_user_id": "3a338e81-5594-4a0e-a31c-28e006fed652", "technical_user_code": "sample string 20", "purchase_order_status_id": "944e0d98-edca-4a1d-aeeb-57054d87f0eb", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "8df0736f-2491-4296-90a0-c446c1f01ab7", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-01-22T01:19:47.8834227+00:00" }, "article_id": "20863384-c283-4030-bc1a-16bc216191aa", "article_code": "sample string 5", "article": { "id": "e01846c6-c985-4bcf-8051-1b3ae690abeb", "article_category_id": "e779f01e-6971-4072-afb9-b001ada7353b", "article_category": { "id": "33250745-68d8-4723-a5bb-c22d38b2c2e6", "parent_id": "edfefb49-7f9f-4f74-a75b-7ef51ed6333b", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-01-22T01:19:47.8834227+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "270f227e-f908-4ebc-813d-bb7dee8bb70f", "article_group_1_code": "sample string 5", "article_group_2_id": "5ef4a1bc-f6bc-48cd-b42f-53b7e4ee6db9", "article_group_2_code": "sample string 7", "article_group_3_id": "7be251f2-73f4-498c-824c-f887fdded5a3", "article_group_3_code": "sample string 9", "article_group_4_id": "56a3158a-fc01-4c7a-b26c-b8817cbe0145", "article_group_4_code": "sample string 11", "article_group_5_id": "9c57ba76-777c-4bbf-a07f-4da7dedd9c8d", "article_group_5_code": "sample string 13", "article_group_6_id": "16753065-16cb-4e3a-82b6-a4abe22fdb68", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-01-22T01:19:47.8834227+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-01-22T01:19:47.8834227+00:00", "date_update": "2025-01-22T01:19:47.8834227+00:00", "modified_dateutc": "2025-01-22T01:19:47.8834227+00:00", "article_color_id": "8944f1f3-0772-4d3c-9efc-65802b3fe1b7", "article_color_code": "sample string 38", "article_color": { "id": "91069af6-7051-4924-a0dd-064737bfb020", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-01-22T01:19:47.8834227+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "a0596786-28fb-42a3-b3c3-7e3875e19169", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "49cef06e-aeba-453c-b5f8-f3cb2c98c7a0", "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-01-22T01:19:47.8834227+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.