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": "2ebd60a9-cc9a-4e92-a007-cec9d1e4b814", "purchase_order_id": "5b591919-7fdf-4840-9aa2-a8863b870780", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "1c3da9b8-38ce-492a-8456-0bbcc553cf7a", "id2": 2, "jobs_id": "93b36556-1b82-45a9-834c-c12837d6281e", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "92748657-d7f1-4f33-8590-9ec1afa16418", "supplier_company_code": "sample string 6", "user_id": "7372ef04-119f-4835-b38b-aa8c075e200b", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-07-15T19:55:35.5981002+00:00", "date_update": "2025-07-15T19:55:35.5981002+00:00", "date_delivery": "2025-07-15T19:55:35.5981002+00:00", "confirmed_date_delivery": "2025-07-15T19:55:35.5981002+00:00", "delivery_db_address_id": "d988510d-7a17-4124-8015-0d0d4cf94624", "approved_by_user_id": "d7a9b66e-4e78-4319-acfc-e39e60f071ba", "approved_by_user_code": "sample string 18", "technical_user_id": "309f550a-f1c2-4499-a15d-0b296a8d7db6", "technical_user_code": "sample string 20", "purchase_order_status_id": "a878ed11-3460-426f-ac58-b9e4f7b3d47b", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "45cfa197-3999-4b20-843a-768442da3907", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-07-15T19:55:35.5981002+00:00" }, "article_id": "8fcb8a1b-450b-4042-a60f-a5514284dd55", "article_code": "sample string 5", "article": { "id": "b6666d74-ad76-4b18-bba8-ce0cc7684ab1", "article_category_id": "b75ec597-a540-4db3-9352-16b568f6bfe6", "article_category": { "id": "957d6f40-ddda-4e8e-b108-a4a766822f1e", "parent_id": "f894a183-dcfb-4c65-a470-b1f35b250f8f", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-07-15T19:55:35.5981002+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "d605e8b1-4c57-496e-ad1b-500dd6ae9968", "article_group_1_code": "sample string 5", "article_group_2_id": "13deea2e-4409-4745-94d6-2d2059c7ab1b", "article_group_2_code": "sample string 7", "article_group_3_id": "691cf1a8-e4e0-466f-8d52-e9700dff5c1e", "article_group_3_code": "sample string 9", "article_group_4_id": "23a1507d-f1da-4a0a-8a9e-66321b5013ff", "article_group_4_code": "sample string 11", "article_group_5_id": "cc33429e-afc4-4cf3-ba7e-b08fd416534c", "article_group_5_code": "sample string 13", "article_group_6_id": "1896aa3a-f79c-4af1-941f-ed859d7b6223", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-07-15T19:55:35.5981002+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-07-15T19:55:35.5981002+00:00", "date_update": "2025-07-15T19:55:35.5981002+00:00", "modified_dateutc": "2025-07-15T19:55:35.5981002+00:00", "article_color_id": "e49817f9-1fe8-4c95-95b6-9a1c9fe86e1e", "article_color_code": "sample string 38", "article_color": { "id": "43737511-dcbd-435a-a494-650a9b36c4b8", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-07-15T19:55:35.5981002+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "56c39afa-7a69-4500-8c26-0decab8b2b95", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "5105cd1c-6ec8-43f6-8beb-92ff87a6a693", "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-07-15T19:55:35.5981002+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.