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": "8403b0cd-fdbb-4350-990b-ac9c781ae0ac", "purchase_order_id": "31b57270-f07b-4755-ab1e-ca824b313c26", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "c1fd1bdd-9700-4600-9d85-691e219cf473", "id2": 2, "jobs_id": "01d44915-93a1-4c72-802e-7a169adcb874", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "2200f0cf-5ba7-4060-8f5b-7ee13d87686b", "supplier_company_code": "sample string 6", "user_id": "53447c57-3e64-4884-9a8c-d04fdd95220e", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-10-15T21:50:48.1965918+00:00", "date_update": "2025-10-15T21:50:48.1965918+00:00", "date_delivery": "2025-10-15T21:50:48.1965918+00:00", "confirmed_date_delivery": "2025-10-15T21:50:48.1965918+00:00", "delivery_db_address_id": "1083c81e-fa1b-4dcf-916f-e630cefbb829", "approved_by_user_id": "f4a27fd6-58cd-4d5d-ab4a-0d020b66769f", "approved_by_user_code": "sample string 18", "technical_user_id": "6d3d05f9-45ff-42fe-ae4d-844bea665c1d", "technical_user_code": "sample string 20", "purchase_order_status_id": "2414080f-e49f-4375-914a-473e21ad5680", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "7b2fe664-96f3-4a36-8b6b-ffb93d192fb0", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-10-15T21:50:48.1965918+00:00" }, "article_id": "582bb9e6-f29b-4000-95b8-04801fd2d8d7", "article_code": "sample string 5", "article": { "id": "ec5ba5c3-ae99-4722-b472-37f9b7fdd6df", "article_category_id": "4f56269f-8813-4d72-999b-95a9bc8b3140", "article_category": { "id": "098c71ce-1eac-49f6-8f57-ea3b2ba9a0e6", "parent_id": "5a71d33e-4f00-4cdc-8c98-abb791265a20", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-10-15T21:50:48.1965918+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "34b18181-b5a5-405d-9950-562aaed8abc6", "article_group_1_code": "sample string 5", "article_group_2_id": "c0f3f86e-bdec-441b-916a-e250c656d9cc", "article_group_2_code": "sample string 7", "article_group_3_id": "393d6f4e-bea4-4d21-bd8a-aa1299f7e690", "article_group_3_code": "sample string 9", "article_group_4_id": "b4928554-aae3-454d-a055-b40b2ca69cb7", "article_group_4_code": "sample string 11", "article_group_5_id": "ccf82755-f3a6-418c-bdcf-3913a6e38296", "article_group_5_code": "sample string 13", "article_group_6_id": "a3580c72-8cbb-492f-8b06-4c91927ffab7", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-10-15T21:50:48.1965918+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-10-15T21:50:48.2122104+00:00", "date_update": "2025-10-15T21:50:48.2122104+00:00", "modified_dateutc": "2025-10-15T21:50:48.2122104+00:00", "article_color_id": "e07e06dd-7cc1-4465-abd2-77124a76c159", "article_color_code": "sample string 38", "article_color": { "id": "ffde6c3f-50be-4fcb-8797-ae5212a6e119", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-10-15T21:50:48.2122104+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "f15ef409-056f-4f44-8181-9ef71321249b", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "3906d83e-16d6-49f4-a61c-be2c67ccd1ea", "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-10-15T21:50:48.2122104+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.