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": "379e6875-4c11-4f31-91c0-9f41f50fcb9d",
"purchase_order_id": "1267c0d7-2165-4ef1-b591-f024e9bc4568",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "b411f33c-711c-4c58-a0d9-eeae2b997a83",
"id2": 2,
"jobs_id": "03ceb9fa-2a61-4193-93e5-5b7dd7bb6577",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "2054d7c1-1d91-4198-aa7a-a4d770ca0c78",
"supplier_company_code": "sample string 6",
"user_id": "d6cad748-13f2-4bd9-b45e-52cd2c3d1dd1",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-08-14T16:59:36.9088717+00:00",
"date_update": "2026-08-14T16:59:36.9088717+00:00",
"date_delivery": "2026-08-14T16:59:36.9088717+00:00",
"confirmed_date_delivery": "2026-08-14T16:59:36.9088717+00:00",
"delivery_db_address_id": "0614dfea-c6ac-498b-a3f9-3c61a1a2f8a6",
"approved_by_user_id": "4df1cbac-e4e8-4308-957b-aecbc7b0eaf5",
"approved_by_user_code": "sample string 18",
"technical_user_id": "85a2cdf0-2ab0-4185-b1b9-d00d936b411b",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "4cad6b64-98f4-497e-8679-d52a046d5a99",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "1c9051e1-38b2-4af0-bd37-9be952decdcb",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-08-14T16:59:36.9088717+00:00"
},
"article_id": "98503ddd-cf41-447e-a464-3a387d56632b",
"article_code": "sample string 5",
"article": {
"id": "ccb87dc3-a947-4518-b12e-0c9b1b2100bb",
"article_category_id": "aab193e2-80df-4e43-8808-4e35d2903db2",
"article_category": {
"id": "6cf65d1a-2e69-4ba5-af14-6adf1bba8cbb",
"parent_id": "cfaf8cd0-5a4e-4a1c-9e93-408ae54cf608",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-08-14T16:59:36.9088717+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "9f4be3bb-112a-4dfe-ab7d-b6d6751651c4",
"article_group_1_code": "sample string 5",
"article_group_2_id": "96e4e99f-464c-48f7-97e2-dc4bf2b13008",
"article_group_2_code": "sample string 7",
"article_group_3_id": "3c9bd593-01cf-4bf1-9973-9d622a9ad511",
"article_group_3_code": "sample string 9",
"article_group_4_id": "041b236c-e43a-453a-a3cd-f13a8ccfe2ba",
"article_group_4_code": "sample string 11",
"article_group_5_id": "ee6f1a86-a5f9-4dfa-908c-8b4d52753e27",
"article_group_5_code": "sample string 13",
"article_group_6_id": "a172ec76-71da-4419-bd0a-b42ceb2a47f4",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-08-14T16:59:36.9088717+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-08-14T16:59:36.9088717+00:00",
"date_update": "2026-08-14T16:59:36.9088717+00:00",
"modified_dateutc": "2026-08-14T16:59:36.9088717+00:00",
"article_color_id": "1e25064b-30d8-474f-a4e1-e8ff034edc86",
"article_color_code": "sample string 38",
"article_color": {
"id": "00110c4f-4cfe-4279-8526-eff91a8281f3",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-08-14T16:59:36.9088717+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "624c6029-12a3-423e-b8c8-9aa990ded83a",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "f4ec5c5c-ca38-43be-a8e3-ac5077b2acf5",
"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-08-14T16:59:36.9088717+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.