Creates a new purchase order order line
Request Information
URI Parameters :
None.
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": "bda1e6f9-3415-4075-836d-7c0c3901783d", "purchase_order_id": "45751ea3-0719-4251-b61f-ddcc25a51c30", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "bd3430ab-ec2f-4b18-affd-37ecac7570eb", "id2": 2, "jobs_id": "6f1632b9-773e-4160-b93d-638d986247ea", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "117b800a-8723-4c47-8c52-6148f45e68e7", "supplier_company_code": "sample string 6", "user_id": "8b1b34b1-2015-4e77-9b09-08daeb9e6109", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-08-04T13:57:53.6848737+00:00", "date_update": "2025-08-04T13:57:53.6848737+00:00", "date_delivery": "2025-08-04T13:57:53.6848737+00:00", "confirmed_date_delivery": "2025-08-04T13:57:53.6848737+00:00", "delivery_db_address_id": "105e6fb1-b957-48cc-ad93-2f65d9c7f24d", "approved_by_user_id": "4ca3d058-68d4-4bef-911a-644802e32df1", "approved_by_user_code": "sample string 18", "technical_user_id": "43a8da70-a0e4-4d2a-84c7-196d151d456b", "technical_user_code": "sample string 20", "purchase_order_status_id": "4f36b98b-856e-4982-bf01-63794684846f", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "e65675e5-5633-44c2-a54a-a4add2173043", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-08-04T13:57:53.6848737+00:00" }, "article_id": "495b1c83-c947-4976-9002-9c304554f208", "article_code": "sample string 5", "article": { "id": "795894f7-4c70-45d9-b970-d048cd763e27", "article_category_id": "e8cc05b1-a238-41da-87cb-de5c428a42a1", "article_category": { "id": "0befe95c-e641-4e85-b852-0be77a4bc093", "parent_id": "c578a105-176a-494f-a45b-643f523f831b", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-08-04T13:57:53.6848737+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "bb14b66a-d3dc-4c01-b805-5bb35069db7f", "article_group_1_code": "sample string 5", "article_group_2_id": "e73bd16f-e963-4a25-b113-03d1e96bf91d", "article_group_2_code": "sample string 7", "article_group_3_id": "6a62f78f-a04e-42a8-acbf-907a2356728c", "article_group_3_code": "sample string 9", "article_group_4_id": "ef7fb271-2a22-4b47-9a6d-eebd5d5de691", "article_group_4_code": "sample string 11", "article_group_5_id": "a31c1a4c-1a4d-4afe-878f-9425a709ea64", "article_group_5_code": "sample string 13", "article_group_6_id": "9e03bb85-7ebb-4a3b-9ffc-5f9ae4dbbe85", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-08-04T13:57:53.7005003+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-08-04T13:57:53.7005003+00:00", "date_update": "2025-08-04T13:57:53.7005003+00:00", "modified_dateutc": "2025-08-04T13:57:53.7005003+00:00", "article_color_id": "2ebf75bf-05bb-43ca-939f-7f87692dd7a5", "article_color_code": "sample string 38", "article_color": { "id": "6481c2bd-01bd-4f89-b1d2-768e0105a1e1", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-08-04T13:57:53.7005003+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "a30d8bd5-d3af-437c-8685-f04f65aad14e", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "930b5493-7e47-49cc-911b-7afca59a5ca4", "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-08-04T13:57:53.7005003+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.