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": "e704e0f7-0cd8-4d91-8ac1-54d2a36523a1",
"purchase_order_id": "8ec52976-253e-4343-84b1-b499d77019bd",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "a05670c9-edd6-4524-ac5f-9c124e4dd00f",
"id2": 2,
"jobs_id": "acc28686-1d51-4306-bd7f-64db2223f903",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "f84fbd6f-e71d-4f6d-939c-c092345ff529",
"supplier_company_code": "sample string 6",
"user_id": "1cfffdb6-9fb1-4abb-acf4-473fdd8f9e72",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-10-22T09:50:03.798347+00:00",
"date_update": "2026-10-22T09:50:03.798347+00:00",
"date_delivery": "2026-10-22T09:50:03.798347+00:00",
"confirmed_date_delivery": "2026-10-22T09:50:03.798347+00:00",
"delivery_db_address_id": "04e13e9d-94a5-431c-9b62-3ffcaa9349e1",
"approved_by_user_id": "7f9db712-392c-4ae2-912b-7794f0c6b837",
"approved_by_user_code": "sample string 18",
"technical_user_id": "4c1c84a3-8f2b-4ede-b31f-394b3816be97",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "344db6c7-8d88-4d46-a69a-2a73fac9cec0",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "0e10aafd-54d8-4317-8271-f667fddc6fb8",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-10-22T09:50:03.798347+00:00"
},
"article_id": "1f17835a-3d8a-4282-8bc9-eea13dea2e82",
"article_code": "sample string 5",
"article": {
"id": "a2aae0b3-3997-4767-9b5e-33ff32fe3448",
"article_category_id": "59b25c4b-d45c-480b-88ee-8322d2e74c04",
"article_category": {
"id": "742240e0-938e-4d04-bf3f-64c763f96cd9",
"parent_id": "bac00206-a6c6-4278-8f80-c9b27ab98ecd",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-10-22T09:50:03.798347+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "146aae56-02f0-44d7-9805-128c55fc8dc5",
"article_group_1_code": "sample string 5",
"article_group_2_id": "ca400b38-dd8e-475f-88f6-37ceba6d4e76",
"article_group_2_code": "sample string 7",
"article_group_3_id": "322943b8-a92e-4d8b-a15a-880208740fdb",
"article_group_3_code": "sample string 9",
"article_group_4_id": "59723c60-4c05-4850-ab89-ad3ca88ce2a5",
"article_group_4_code": "sample string 11",
"article_group_5_id": "2b067163-ba6a-403f-abd1-16b432771af6",
"article_group_5_code": "sample string 13",
"article_group_6_id": "1858978f-bd81-4a6a-a2f1-6b482daba089",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-10-22T09:50:03.798347+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-10-22T09:50:03.798347+00:00",
"date_update": "2026-10-22T09:50:03.798347+00:00",
"modified_dateutc": "2026-10-22T09:50:03.798347+00:00",
"article_color_id": "09df8a6c-ae7c-48be-a5ac-c83476239409",
"article_color_code": "sample string 38",
"article_color": {
"id": "a3b3cad7-6d32-417d-8fcd-25b1321439d9",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-10-22T09:50:03.798347+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "869afa56-f562-4151-87ca-0d9c6e5a54a9",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "e1cea890-7c18-4628-8aee-d57127121619",
"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-10-22T09:50:03.8110955+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.