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": "97ae3ccb-2af2-4585-abbf-072feaa286ae",
"purchase_order_id": "63f29aa1-d178-4414-9239-ba4f655791c6",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "b25e4c77-d95b-4a47-858f-d06f3208f9d6",
"id2": 2,
"jobs_id": "57eb9f8b-325e-4ed0-ab5e-c83ba68b893a",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "8d0eaf73-00c0-45aa-a669-07944c95a963",
"supplier_company_code": "sample string 6",
"user_id": "79e15253-8c7b-498b-b222-f3f7c702f011",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-03-28T03:40:35.433626+00:00",
"date_update": "2026-03-28T03:40:35.433626+00:00",
"date_delivery": "2026-03-28T03:40:35.433626+00:00",
"confirmed_date_delivery": "2026-03-28T03:40:35.433626+00:00",
"delivery_db_address_id": "7cb577f9-2c37-4dc7-a604-8d449296871a",
"approved_by_user_id": "9c5ef0d3-46cb-4c6a-810e-9c440ffe4b41",
"approved_by_user_code": "sample string 18",
"technical_user_id": "d536f6d5-e358-48c0-a00e-c0d129c3f5b6",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "00995d8a-0632-4e1a-a350-a1cb9b53e56a",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "61d96eae-baf0-4c76-8f86-c25491b9e18b",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-03-28T03:40:35.433626+00:00"
},
"article_id": "4d965a60-dbea-448a-8c60-d61cc28bb4d5",
"article_code": "sample string 5",
"article": {
"id": "cbed8ab2-83d4-4df6-9cb4-7c859175ba07",
"article_category_id": "a9b7fcf7-260d-4967-a208-30838b94085d",
"article_category": {
"id": "a9a47fd4-430f-4a0a-a36a-88067aa63e0a",
"parent_id": "4b610c3f-d754-47bf-b1d1-1256aa03b8d9",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-03-28T03:40:35.433626+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "f9d5d504-77c6-4842-b540-24edb007fefc",
"article_group_1_code": "sample string 5",
"article_group_2_id": "17aa1049-7ac2-4f4a-b610-44b6fab0b75b",
"article_group_2_code": "sample string 7",
"article_group_3_id": "957d8ecf-489b-453b-bc99-d8485fd0e13e",
"article_group_3_code": "sample string 9",
"article_group_4_id": "02ad1e17-b2e6-43e9-9a8c-4ed1cda899a3",
"article_group_4_code": "sample string 11",
"article_group_5_id": "6b24d50d-6948-449b-8fc9-4bc3f62f85e2",
"article_group_5_code": "sample string 13",
"article_group_6_id": "ac73d997-12b5-4ee0-8f63-460f6dcddc36",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-03-28T03:40:35.433626+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-03-28T03:40:35.433626+00:00",
"date_update": "2026-03-28T03:40:35.433626+00:00",
"modified_dateutc": "2026-03-28T03:40:35.433626+00:00",
"article_color_id": "6662f2d5-d4a3-4804-8373-bd77b5eef6f0",
"article_color_code": "sample string 38",
"article_color": {
"id": "a176cb82-cdb9-4a66-b0c1-8de766d6acac",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-03-28T03:40:35.433626+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "823fbe37-bee9-4750-8801-37922a145035",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "3753658c-6bfa-4cde-ad61-fb9e591f154a",
"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-03-28T03:40:35.433626+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.