Creates a new purchase order order line
Request Information
URI Parameters :
None.
Body Parameters :
purchase_order_details| Name | 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": "f364c5df-3f69-4f28-9690-b53fb863f569",
"purchase_order_id": "71da6ddc-18a4-4a81-b2fb-f7bc3c6eda91",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "945e34e2-4417-41f4-8dc8-5f94fc891c75",
"id2": 2,
"jobs_id": "d8c5666f-c70d-4f82-bbf4-c905d5b325cb",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "294ba3ad-3b40-494b-96df-459e7e0a5937",
"supplier_company_code": "sample string 6",
"user_id": "156df26a-fe73-4d58-9e09-a49dabfcafd8",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-06-26T01:52:51.210809+00:00",
"date_update": "2026-06-26T01:52:51.210809+00:00",
"date_delivery": "2026-06-26T01:52:51.210809+00:00",
"confirmed_date_delivery": "2026-06-26T01:52:51.210809+00:00",
"delivery_db_address_id": "0680ea68-5454-4f2f-94ad-e8e0bfe03724",
"approved_by_user_id": "2c5e186c-82ba-46dc-853c-a13a2b8530dc",
"approved_by_user_code": "sample string 18",
"technical_user_id": "42274b21-140f-475a-b9b7-e32647232161",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "6ce32a93-9648-433d-874b-6f3c8c5a234d",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "9d0c31de-0e82-4581-929e-66b23aeca96c",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-06-26T01:52:51.210809+00:00"
},
"article_id": "6d4c7b8b-dfb2-4823-bad6-286500d473d9",
"article_code": "sample string 5",
"article": {
"id": "c6e60a2f-d5b5-4090-80cf-ff26c7d7ebc1",
"article_category_id": "e3517209-ac46-4b0c-bd8d-b926f29b6a12",
"article_category": {
"id": "83eafedf-679b-41c1-9e70-bd43befccdf0",
"parent_id": "7c9cc8e5-4223-49a0-8e2d-a854dbacee9c",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-06-26T01:52:51.210809+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "5c5f1080-de2b-4e75-8389-5950b9189c31",
"article_group_1_code": "sample string 5",
"article_group_2_id": "89d99c2e-52da-4ad9-b03e-d1c24e39355d",
"article_group_2_code": "sample string 7",
"article_group_3_id": "5407f7bc-79bc-43c7-b4a3-9368a0533171",
"article_group_3_code": "sample string 9",
"article_group_4_id": "9e06553c-1aee-47b2-b954-d3be07f1c985",
"article_group_4_code": "sample string 11",
"article_group_5_id": "2e31905a-a6b1-4b0f-9476-4236100a0cfa",
"article_group_5_code": "sample string 13",
"article_group_6_id": "f3738979-c194-4b13-8358-1e327e1de727",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-06-26T01:52:51.210809+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": "2026-06-26T01:52:51.210809+00:00",
"date_update": "2026-06-26T01:52:51.210809+00:00",
"modified_dateutc": "2026-06-26T01:52:51.210809+00:00",
"article_color_id": "b7f0365b-54f6-458d-aa27-139aebeeebe0",
"article_color_code": "sample string 38",
"article_color": {
"id": "57fe86ef-c5fe-4ce9-97ac-16e4cd0eedca",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-06-26T01:52:51.210809+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "b7e25978-98fe-4416-b053-5ef50b75330d",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "7ee336c6-c2f1-41d2-a8ba-9a67c363350d",
"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": "2026-06-26T01:52:51.210809+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.