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": "8dd25ce2-7001-4014-94d8-bf7f19c428b0", "purchase_order_id": "53710ff9-e85b-47a9-8021-ed556ebcef32", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "b6e1d241-4e2a-4aa7-8509-821343ff76e1", "id2": 2, "jobs_id": "4682dbcf-4d53-4b2c-8031-952b2ac24d1d", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "2dda8f41-147c-40be-bcb2-be10c2ebaad8", "supplier_company_code": "sample string 6", "user_id": "abf22afb-c662-4e3d-a7e7-fd6940a571d6", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-07-06T08:40:08.6683519+00:00", "date_update": "2025-07-06T08:40:08.6683519+00:00", "date_delivery": "2025-07-06T08:40:08.6683519+00:00", "confirmed_date_delivery": "2025-07-06T08:40:08.6683519+00:00", "delivery_db_address_id": "b96fcc19-85f5-4582-b41c-50cc11c87a87", "approved_by_user_id": "6e7069cb-412c-44a8-8184-52e007b362fd", "approved_by_user_code": "sample string 18", "technical_user_id": "9f8beea5-2a65-47ff-8391-b2fff1e60eb2", "technical_user_code": "sample string 20", "purchase_order_status_id": "f2919c03-6a01-4dca-8454-cfb03f8e038c", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "043f059a-53d4-4df9-8569-ca1ca40588c4", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-07-06T08:40:08.6683519+00:00" }, "article_id": "f950bb41-4391-43c3-8826-c0338e6127cc", "article_code": "sample string 5", "article": { "id": "f3ead931-1252-4350-9b1d-810918ce5232", "article_category_id": "db0f0cc4-2863-40a7-9372-d1cb83399fe7", "article_category": { "id": "4fd6c6eb-2dcb-4fe3-8173-d769af64ba84", "parent_id": "30221ba2-d172-46e5-9f71-59a82985124c", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-07-06T08:40:08.6683519+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "790c7e8d-870f-4389-b9cc-2d712d517c6d", "article_group_1_code": "sample string 5", "article_group_2_id": "9d6efab4-bdda-4ea9-a3fd-d10a8979347b", "article_group_2_code": "sample string 7", "article_group_3_id": "a94cd378-fd06-4ac0-b676-13d0244a2dae", "article_group_3_code": "sample string 9", "article_group_4_id": "4d9051c5-b6d6-4ed9-927b-a100e57aa843", "article_group_4_code": "sample string 11", "article_group_5_id": "30303ac7-231b-4e6b-8507-5d7d7ffc7c5a", "article_group_5_code": "sample string 13", "article_group_6_id": "43fc5061-bb14-4f14-8989-6a33c1116656", "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-06T08:40:08.6683519+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-06T08:40:08.6683519+00:00", "date_update": "2025-07-06T08:40:08.6683519+00:00", "modified_dateutc": "2025-07-06T08:40:08.6683519+00:00", "article_color_id": "9fd4e971-9567-4958-901d-43bb9255c2c9", "article_color_code": "sample string 38", "article_color": { "id": "25dbf64b-457e-4d40-8ecc-7b61d82d97fc", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-07-06T08:40:08.6683519+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "cbcc769a-0f37-4b6f-9bc0-df6cbf4a0755", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "6f72771f-92e5-41f8-a1a8-086e3d719d66", "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-06T08:40:08.6683519+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.