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": "18f74bb7-2808-4b0e-9d90-76efc4502e57",
"purchase_order_id": "8a54b7c5-efaa-4040-b9ff-fed895dc94f3",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "de6f3ad0-3649-40a5-a51c-58ccf694ca9f",
"id2": 2,
"jobs_id": "f859145d-03b2-485f-b73e-cbc50c807fd9",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "b9b1f99d-55c4-4bfa-ab31-da0c31be6742",
"supplier_company_code": "sample string 6",
"user_id": "b2d04118-b475-4860-a51d-4fa142993f1d",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-11-08T16:41:42.2403128+00:00",
"date_update": "2026-11-08T16:41:42.2403128+00:00",
"date_delivery": "2026-11-08T16:41:42.2403128+00:00",
"confirmed_date_delivery": "2026-11-08T16:41:42.2403128+00:00",
"delivery_db_address_id": "cc98bbbd-21df-4dc0-85e7-33a79a993f98",
"approved_by_user_id": "1ee0bcd8-a24f-46b7-89d1-9229b3682843",
"approved_by_user_code": "sample string 18",
"technical_user_id": "6f4f7bb9-08e7-42d1-b965-c3ab9a26b92e",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "3c359945-429a-4b65-bdec-5d687088f076",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "098a80a4-e299-495a-a1a9-bf5cf55393eb",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-11-08T16:41:42.2403128+00:00"
},
"article_id": "1527f9b5-fb4b-47b0-872b-c6b6e0a9af7b",
"article_code": "sample string 5",
"article": {
"id": "950bbd19-4ddb-4c47-a0d0-7dc83798cfd5",
"article_category_id": "04bfc99e-95ce-4ee1-a1bb-45cfec61714b",
"article_category": {
"id": "f5a2f5d2-4163-44df-a688-8456c6730e17",
"parent_id": "24031781-6682-4556-a1ee-fa5f13b87679",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-11-08T16:41:42.2403128+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "3e6867dc-498f-49a3-b95b-e725669513a5",
"article_group_1_code": "sample string 5",
"article_group_2_id": "9387e058-6457-4498-86a9-d9d9e61d9990",
"article_group_2_code": "sample string 7",
"article_group_3_id": "a7c84d15-694d-4b2d-8f02-30e44935a531",
"article_group_3_code": "sample string 9",
"article_group_4_id": "1cf9e75a-a47d-4cdb-a755-1eb4933251dc",
"article_group_4_code": "sample string 11",
"article_group_5_id": "692f848e-0641-4587-af1b-608c4ddb58e4",
"article_group_5_code": "sample string 13",
"article_group_6_id": "41632d25-7c20-4e58-a84f-2be4f86b9682",
"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-08T16:41:42.2403128+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-08T16:41:42.2403128+00:00",
"date_update": "2026-11-08T16:41:42.2403128+00:00",
"modified_dateutc": "2026-11-08T16:41:42.2403128+00:00",
"article_color_id": "c1f2de8d-fb28-4622-8f99-ebec73c37b4b",
"article_color_code": "sample string 38",
"article_color": {
"id": "be9f7ccf-5594-4146-b9b0-0039908b5bdd",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-11-08T16:41:42.2403128+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "9aa8a731-428d-4398-970c-d8108b2eea86",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "657f8da8-9f13-47b5-8cc7-35955de713f5",
"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-08T16:41:42.2535585+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.