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": "49fe6cd1-3900-4554-9485-2ad6e3fc50df",
"purchase_order_id": "d143989e-c6d8-4326-8546-d0099509ea46",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "7343f125-25bb-4476-8663-626ce6cd4523",
"id2": 2,
"jobs_id": "707338ea-44c2-40ab-8288-4c992061b6d2",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "514b66e1-2d64-4098-a083-f51d4e6ea265",
"supplier_company_code": "sample string 6",
"user_id": "9b89c001-4022-4f06-9066-2ddf6b5db5b4",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-11-20T18:56:15.0465197+00:00",
"date_update": "2026-11-20T18:56:15.0465197+00:00",
"date_delivery": "2026-11-20T18:56:15.0465197+00:00",
"confirmed_date_delivery": "2026-11-20T18:56:15.0465197+00:00",
"delivery_db_address_id": "ee1f3c5d-6d57-482f-9bdf-68efe99d7335",
"approved_by_user_id": "b6f41f27-471b-4458-a4cd-90eb97df48dd",
"approved_by_user_code": "sample string 18",
"technical_user_id": "4077e14f-6e3e-4cb1-b9d4-7c79b9226ba7",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "b1c90429-c502-4449-8f42-8e85aae3f33f",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "4755f2a9-fd72-4f7a-8b69-9d92d0b88996",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-11-20T18:56:15.0465197+00:00"
},
"article_id": "a79ebde2-c407-4588-9242-f0bf55e8a52b",
"article_code": "sample string 5",
"article": {
"id": "7b9b72e7-70c0-42b9-aa62-78d9d2c42d03",
"article_category_id": "32a5db2d-42e1-43b3-a9e7-4dba2de9456f",
"article_category": {
"id": "31ee47bc-2ca4-4f98-ac73-ed7963351ce3",
"parent_id": "3eab2e85-a0df-4fe2-a0c3-3e3691740a3a",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-11-20T18:56:15.0465197+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "edc17507-d233-442c-ad52-35b268cfc8ac",
"article_group_1_code": "sample string 5",
"article_group_2_id": "19b85add-c7c2-477c-bc85-b39f7d8e9314",
"article_group_2_code": "sample string 7",
"article_group_3_id": "d403d694-4463-49a1-9659-8398cc69b2b6",
"article_group_3_code": "sample string 9",
"article_group_4_id": "acfc96be-a6aa-44d8-8c0f-b8e22b7e3bc8",
"article_group_4_code": "sample string 11",
"article_group_5_id": "33780b10-b030-42cb-b1bc-cd484d6f414b",
"article_group_5_code": "sample string 13",
"article_group_6_id": "d850867c-a27b-4c10-b590-65e40a7c173a",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-11-20T18:56:15.0465197+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-11-20T18:56:15.0465197+00:00",
"date_update": "2026-11-20T18:56:15.0465197+00:00",
"modified_dateutc": "2026-11-20T18:56:15.0465197+00:00",
"article_color_id": "3cd511f3-a761-4765-98f6-dadb683f33a2",
"article_color_code": "sample string 38",
"article_color": {
"id": "6133c3b0-a96a-4778-b888-3a8c4d025dd6",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-11-20T18:56:15.0465197+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "ed83075a-cfd6-4e84-a863-fcf34ab83ed0",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "5d829a57-ba8a-4996-bbd5-8ceef60b8960",
"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-11-20T18:56:15.0465197+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.