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": "b3f0e8ad-5225-4d8c-a2da-3782e5819572", "purchase_order_id": "32ce5092-f80b-47c3-8eb2-b971c51a4161", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "2c6378bb-61a9-42f1-8cc0-78b4f4cb90cc", "id2": 2, "jobs_id": "bfefd881-3e94-472c-a2af-e78b31559074", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "8f1ca1a8-7525-4e6d-861a-6c4438eddae0", "supplier_company_code": "sample string 6", "user_id": "88a85b56-f729-45e3-89dc-d860f04756aa", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-09-17T21:44:54.0920829+00:00", "date_update": "2025-09-17T21:44:54.1077058+00:00", "date_delivery": "2025-09-17T21:44:54.1077058+00:00", "confirmed_date_delivery": "2025-09-17T21:44:54.1077058+00:00", "delivery_db_address_id": "92a4cd11-d1bc-43ae-8c6b-a0dbcc08858b", "approved_by_user_id": "48add014-4184-4bff-b0ee-fd04644c89bb", "approved_by_user_code": "sample string 18", "technical_user_id": "eeb76416-6b7f-40e7-bd8c-ccbbecd3af65", "technical_user_code": "sample string 20", "purchase_order_status_id": "dc4191ed-0a4e-45cf-82a3-b14b3a4543d1", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "bef3c0c0-5a3d-43ec-8800-282f71f664ba", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-09-17T21:44:54.1077058+00:00" }, "article_id": "483c4be3-f7bb-47a1-925f-b6d4b4131f68", "article_code": "sample string 5", "article": { "id": "8923dff4-ad7d-425d-adc2-184b3954d370", "article_category_id": "2e093533-f4cc-4a29-bc6c-30bc6b874315", "article_category": { "id": "1ee9ace6-b169-465e-b37e-ff3af3f9201c", "parent_id": "d4a86201-b49e-4f4c-89d2-a7d42159fda5", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-09-17T21:44:54.1077058+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "e357da56-01d4-4663-98c1-04183faa9ec5", "article_group_1_code": "sample string 5", "article_group_2_id": "8e6b6303-1042-4b50-a267-6d7aedf337f9", "article_group_2_code": "sample string 7", "article_group_3_id": "c9883b15-5ece-4f91-921b-1d417ea1606f", "article_group_3_code": "sample string 9", "article_group_4_id": "67cd82cd-2dee-414c-9f74-620098fdba42", "article_group_4_code": "sample string 11", "article_group_5_id": "9b9daa5c-b7c2-4073-aea4-67b13844d5d7", "article_group_5_code": "sample string 13", "article_group_6_id": "e3a40d35-dd2f-49a3-bc82-a2e518fd764c", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-09-17T21:44:54.1077058+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-09-17T21:44:54.1077058+00:00", "date_update": "2025-09-17T21:44:54.1077058+00:00", "modified_dateutc": "2025-09-17T21:44:54.1077058+00:00", "article_color_id": "8e7470d9-31ea-43f0-ab5a-51ea5666b682", "article_color_code": "sample string 38", "article_color": { "id": "55ffc74c-6fdb-4daa-8f6d-fe06abc47117", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-09-17T21:44:54.1077058+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "5456185b-d546-4835-8b0d-90a75a1d4f8a", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "b81c197c-c9a1-4efd-af56-6ae412bd1d23", "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-09-17T21:44:54.1077058+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.