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": "70f0e031-d48c-4681-8352-8955066f17b0",
"purchase_order_id": "460d5e11-1e3c-4661-95f7-03a6a42936ba",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "5b770121-2602-442c-b8d8-a8281cb64ab7",
"id2": 2,
"jobs_id": "297a5325-ea7a-4b1f-8ff3-b3217dd5f1ed",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "f17370b0-f97f-4b6f-99cf-77eda51f0957",
"supplier_company_code": "sample string 6",
"user_id": "3e2ce8cf-cdc2-4f7b-ba90-0a4fb36affe2",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-07-09T22:28:52.113151+00:00",
"date_update": "2026-07-09T22:28:52.113151+00:00",
"date_delivery": "2026-07-09T22:28:52.113151+00:00",
"confirmed_date_delivery": "2026-07-09T22:28:52.113151+00:00",
"delivery_db_address_id": "618b59c6-d75d-436b-a6f5-022d80a867d8",
"approved_by_user_id": "409663d9-2df5-411d-b2c4-aab77a6b2698",
"approved_by_user_code": "sample string 18",
"technical_user_id": "33d1c9b6-2a25-4e5e-8159-a3a68eac91a8",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "98efd236-a23e-471e-9053-ddeb0e5ee7ed",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "4fd0e5f2-01f1-4f65-b7a3-0fabf637887c",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-07-09T22:28:52.113151+00:00"
},
"article_id": "58bc7426-d94c-4e4e-8a6d-20927495da0a",
"article_code": "sample string 5",
"article": {
"id": "293151db-00d4-412a-9edf-a6ab1728efe1",
"article_category_id": "8ab38400-0c65-4764-b94e-acbfed905571",
"article_category": {
"id": "9cdd841c-1969-4153-9d34-79f127ce7c8f",
"parent_id": "2505909c-ec10-4601-80ea-607ac4f69909",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-07-09T22:28:52.113151+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "a4fa6b59-3657-400c-b1fe-4039e6359450",
"article_group_1_code": "sample string 5",
"article_group_2_id": "23237a38-5b77-4cb5-92d2-54daaa2b5719",
"article_group_2_code": "sample string 7",
"article_group_3_id": "873a3be2-2f53-4442-ad9c-e19af7973c9f",
"article_group_3_code": "sample string 9",
"article_group_4_id": "24f00d2b-f752-4b2d-9a89-49dd2e7bbd10",
"article_group_4_code": "sample string 11",
"article_group_5_id": "de68c6c1-6ae8-4dcd-a94e-b756ce5ea3b6",
"article_group_5_code": "sample string 13",
"article_group_6_id": "e939a23c-1158-4df9-aff2-8e806487bc31",
"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-09T22:28:52.113151+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-09T22:28:52.113151+00:00",
"date_update": "2026-07-09T22:28:52.113151+00:00",
"modified_dateutc": "2026-07-09T22:28:52.113151+00:00",
"article_color_id": "9515b9cc-c925-45a4-bb4b-9bd17ef8af17",
"article_color_code": "sample string 38",
"article_color": {
"id": "9d045f17-4b57-456b-95fc-5a3ed26a6d6e",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-07-09T22:28:52.113151+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "bcfffe15-6018-4fe2-a14c-ed2a87ba40e4",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "d21f19ba-e5e8-4212-b3de-b0e3d9455016",
"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-09T22:28:52.1287717+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.