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": "04e7ff4a-a8b1-4ecd-8b58-31a551764549",
"purchase_order_id": "4897a1eb-52f0-4f88-9fb6-172f65c2b812",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "b5531f84-42af-44bd-ab3b-1ecf02a2a345",
"id2": 2,
"jobs_id": "4ac4a317-106d-4399-931d-2465d4a7cb54",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "5e59a107-78e2-41ba-b2a6-e1b08e3455af",
"supplier_company_code": "sample string 6",
"user_id": "59c44824-e032-4d04-acca-29bd0cd95794",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-07-16T16:24:34.0635463+00:00",
"date_update": "2026-07-16T16:24:34.0635463+00:00",
"date_delivery": "2026-07-16T16:24:34.0635463+00:00",
"confirmed_date_delivery": "2026-07-16T16:24:34.0635463+00:00",
"delivery_db_address_id": "4a23580f-9e98-41ab-bcdf-b15c0c1a1ede",
"approved_by_user_id": "e41e000f-0398-42e4-a1e4-da7585e422ff",
"approved_by_user_code": "sample string 18",
"technical_user_id": "0053ca61-dd9d-4106-9f49-19b9be259ebc",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "d4457b03-8153-4990-b44c-9cb478e0a14f",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "6db33f82-ba0c-405c-b261-bdc0cd494e7b",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-07-16T16:24:34.0635463+00:00"
},
"article_id": "0643be7a-933e-4b4a-a7c1-51c69f0c96e3",
"article_code": "sample string 5",
"article": {
"id": "0c65c170-219e-46f7-9bcb-c1d23ce961aa",
"article_category_id": "177ff205-df0f-4740-9ab9-83fa36360c2e",
"article_category": {
"id": "562f056f-e5a8-429c-8dac-827823a08f20",
"parent_id": "659ec185-92b5-42ae-98bf-a08985315917",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-07-16T16:24:34.0635463+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "27e36628-3a6a-4e6b-bf5c-0a30a8af5405",
"article_group_1_code": "sample string 5",
"article_group_2_id": "29e28993-e702-4152-a48d-01c0c0c8cbdf",
"article_group_2_code": "sample string 7",
"article_group_3_id": "21ff84a1-8d39-4c59-97f9-0c8d12bc7e02",
"article_group_3_code": "sample string 9",
"article_group_4_id": "c0c8f078-f70d-4d17-bf82-f1417dad3279",
"article_group_4_code": "sample string 11",
"article_group_5_id": "e0a3fde3-2696-4756-a730-02146ab88295",
"article_group_5_code": "sample string 13",
"article_group_6_id": "9fb4cf7f-71ce-44ce-8488-94445453929d",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-07-16T16:24:34.0635463+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-07-16T16:24:34.0635463+00:00",
"date_update": "2026-07-16T16:24:34.0635463+00:00",
"modified_dateutc": "2026-07-16T16:24:34.0635463+00:00",
"article_color_id": "64965851-50a1-4063-8f0a-67906262d463",
"article_color_code": "sample string 38",
"article_color": {
"id": "7fd3b636-44b2-48f7-aa9e-b56ea8853ecf",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-07-16T16:24:34.0635463+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "ff4da94d-bad5-4eb1-acca-c5dc6d3ef3e0",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "6e05bfb6-a04f-4337-9807-d89ea1bd75b4",
"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-07-16T16:24:34.0635463+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.