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": "b5f506fb-dd7f-4024-a9b9-282c55ae79df",
"purchase_order_id": "a6b5df44-78a3-4cec-9541-fa705db1016c",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "44d4f9b1-c644-443c-aea0-01933f5000d2",
"id2": 2,
"jobs_id": "5e5259de-c6c1-4cec-b8e5-a2c636bc66ba",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "c7e7ddf0-97aa-41f7-aba8-120c9b9c5e97",
"supplier_company_code": "sample string 6",
"user_id": "7dc2b074-cb18-4a7b-ac36-853fec83bfe4",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-03-08T20:14:52.5578248+00:00",
"date_update": "2026-03-08T20:14:52.573448+00:00",
"date_delivery": "2026-03-08T20:14:52.573448+00:00",
"confirmed_date_delivery": "2026-03-08T20:14:52.573448+00:00",
"delivery_db_address_id": "99577dc1-a07f-4458-b45b-f502f63f1b95",
"approved_by_user_id": "d9d9c5ae-ed46-4063-b077-bc2e8f2f219d",
"approved_by_user_code": "sample string 18",
"technical_user_id": "034ef204-ab46-49f3-a8b3-65478863b543",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "4431521c-fcac-489f-a402-d64cd346df66",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "fdcfbee6-eb14-49fb-813f-4f1e1511af03",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-03-08T20:14:52.573448+00:00"
},
"article_id": "612ae347-8d10-47b7-9590-5b8c79527dff",
"article_code": "sample string 5",
"article": {
"id": "09d56382-3950-4cce-9dfc-339e0fa23596",
"article_category_id": "1fd9b7f8-e6d4-498f-9cd9-e3f507bd95cb",
"article_category": {
"id": "fa0afbe7-6092-4eb2-9cad-5ec83a5d3805",
"parent_id": "5f568ded-4e98-40d9-a84c-1eead316abc7",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-03-08T20:14:52.573448+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "c9d00ec4-e240-4975-a9b9-30633b8ee2b9",
"article_group_1_code": "sample string 5",
"article_group_2_id": "5295f1b2-66f4-4296-a4bc-800eb45314bf",
"article_group_2_code": "sample string 7",
"article_group_3_id": "e5d84c8d-94f0-4c45-bc4a-2a8acb55558b",
"article_group_3_code": "sample string 9",
"article_group_4_id": "e10aad32-7852-4b93-8626-d2f06cd80a36",
"article_group_4_code": "sample string 11",
"article_group_5_id": "426142d5-7474-44c0-af84-9a390b75a635",
"article_group_5_code": "sample string 13",
"article_group_6_id": "6946ab72-4cd1-40f2-8d25-0ce62ac7fd74",
"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-08T20:14:52.573448+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-08T20:14:52.573448+00:00",
"date_update": "2026-03-08T20:14:52.573448+00:00",
"modified_dateutc": "2026-03-08T20:14:52.573448+00:00",
"article_color_id": "ccd081e3-a263-42c3-ad49-c787f45bcf38",
"article_color_code": "sample string 38",
"article_color": {
"id": "ec474e74-f8e8-4c3f-821d-2f78a6f31a0f",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-03-08T20:14:52.573448+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "22d8024e-16b5-4247-90bd-9742c77b06e5",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "400bad06-1cca-4c3e-aca1-1d1412f21f8f",
"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-08T20:14:52.573448+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.