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": "5c1ccec9-b8cb-4a33-abee-ae6b9e06c0a4",
"purchase_order_id": "b9b8bd92-ec84-4a29-8016-eb79724c73fc",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "1886c74f-d911-43be-82e7-cf01b4c20a97",
"id2": 2,
"jobs_id": "d1756a23-e30d-462a-a68c-7496dc72e4d5",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "19a217a0-1a1d-4f33-ae9a-a15872e2136b",
"supplier_company_code": "sample string 6",
"user_id": "30b8a60f-4c7c-4fd5-b79d-07653fe31902",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-05-22T01:57:28.504242+00:00",
"date_update": "2026-05-22T01:57:28.504242+00:00",
"date_delivery": "2026-05-22T01:57:28.504242+00:00",
"confirmed_date_delivery": "2026-05-22T01:57:28.504242+00:00",
"delivery_db_address_id": "215d8ce3-61a7-4bb0-af06-ce85768b40a0",
"approved_by_user_id": "2e360b03-d5d0-480c-a56d-7aa91842db4e",
"approved_by_user_code": "sample string 18",
"technical_user_id": "377d8d21-5b8c-435f-b5ed-11ebe94ad059",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "700ef52a-6bb4-485d-9359-b8d45cdfb5e5",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "122110ef-0703-4fd9-b379-e7073f79baf7",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-05-22T01:57:28.504242+00:00"
},
"article_id": "46f73090-3f40-4ed0-9d18-af648e376aa0",
"article_code": "sample string 5",
"article": {
"id": "cd1c5c7b-e64f-466f-8b41-49e3954cca3f",
"article_category_id": "a4517933-1eb8-4660-a64e-a06fc08f5078",
"article_category": {
"id": "c8e05b7d-52d9-451a-ba6d-1f324d04f717",
"parent_id": "cfb26688-02f2-41b9-8a2c-dc5f4db59e11",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-05-22T01:57:28.504242+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "b2595a5e-a6ca-4a3d-9aeb-fc1f2d0ae7ff",
"article_group_1_code": "sample string 5",
"article_group_2_id": "998c7d30-3a18-41ca-9cb3-88f0c56911fc",
"article_group_2_code": "sample string 7",
"article_group_3_id": "035c0170-13a4-4f5a-8fb3-7958d11908ad",
"article_group_3_code": "sample string 9",
"article_group_4_id": "c4e07d27-2f39-4398-9c48-5f0f5292efe8",
"article_group_4_code": "sample string 11",
"article_group_5_id": "41a85b5c-3ffa-4397-aa8e-ba86d928d791",
"article_group_5_code": "sample string 13",
"article_group_6_id": "553d4f74-d424-4c7c-b70c-8b825c4ea8e9",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-05-22T01:57:28.504242+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-05-22T01:57:28.504242+00:00",
"date_update": "2026-05-22T01:57:28.504242+00:00",
"modified_dateutc": "2026-05-22T01:57:28.504242+00:00",
"article_color_id": "37d9c6f4-b9c0-4e1f-9c14-b795167ec001",
"article_color_code": "sample string 38",
"article_color": {
"id": "3d1927db-b9b5-42c2-bfda-66862dd19d37",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-05-22T01:57:28.504242+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "1bcf9ba3-d42d-4691-97ed-47c88d10062d",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "795e9d84-1fb2-47cc-af8c-fe6bba9f0524",
"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-05-22T01:57:28.504242+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.