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": "2e6a7cc0-5483-4a8a-9f53-370a72153ec7",
"purchase_order_id": "7d67f0e6-c378-4a46-b28c-0e8318cb9939",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "2fd82ab0-97ab-4dd8-aed1-253512f4fce7",
"id2": 2,
"jobs_id": "5c34cf63-021c-48c7-ad91-9d24cce906dd",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "1ceb5dd8-b7bb-465d-925f-677d57ef5f46",
"supplier_company_code": "sample string 6",
"user_id": "d4dc0590-605b-4638-b25f-e3a05e19fff3",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-01-13T03:49:30.3115011+00:00",
"date_update": "2026-01-13T03:49:30.3115011+00:00",
"date_delivery": "2026-01-13T03:49:30.3115011+00:00",
"confirmed_date_delivery": "2026-01-13T03:49:30.3115011+00:00",
"delivery_db_address_id": "32a8e802-308e-4a95-af59-289887f2f3df",
"approved_by_user_id": "3cf35d39-f678-4edd-97c5-bbff9f56eb72",
"approved_by_user_code": "sample string 18",
"technical_user_id": "540ceaf9-a770-4a20-a784-dba56312a4d1",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "0bfeb695-6626-4eb5-b05b-bf2c5483e506",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "70ed5a94-16b4-44ed-a705-1eb659f491be",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-01-13T03:49:30.3115011+00:00"
},
"article_id": "ea645ed3-6121-4f80-9e1f-8314ba35b875",
"article_code": "sample string 5",
"article": {
"id": "3364c601-9f05-42cf-a238-746d77f5db4c",
"article_category_id": "2bf71cc6-9d2c-4d2b-9244-eae331e619d0",
"article_category": {
"id": "7fe3232d-f529-4085-b27f-507bc74772ae",
"parent_id": "112a6d82-69bc-4be0-92a2-10d6c6b5a058",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-01-13T03:49:30.3115011+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "e0eacd8e-46be-4ac2-9b3f-6f5ce3f9f660",
"article_group_1_code": "sample string 5",
"article_group_2_id": "916b77f1-ed14-4028-af25-dc9645167c8a",
"article_group_2_code": "sample string 7",
"article_group_3_id": "062e2624-eb84-4958-8c28-822b9b1156a3",
"article_group_3_code": "sample string 9",
"article_group_4_id": "142744d0-e2b3-4c73-9c39-0c488124c60c",
"article_group_4_code": "sample string 11",
"article_group_5_id": "a2f72ea1-1e10-4849-825b-3bc6b0da9c54",
"article_group_5_code": "sample string 13",
"article_group_6_id": "29250839-6c28-4339-9fd2-52b58bf1c1d7",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-01-13T03:49:30.3115011+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-01-13T03:49:30.3115011+00:00",
"date_update": "2026-01-13T03:49:30.3115011+00:00",
"modified_dateutc": "2026-01-13T03:49:30.3115011+00:00",
"article_color_id": "b8c663e3-7767-449c-8760-f7d4b743bf18",
"article_color_code": "sample string 38",
"article_color": {
"id": "19b189db-e945-469b-9f7a-8c04519b5802",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-01-13T03:49:30.3115011+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "ba53a16f-bc0e-46f9-b790-1a0206eb9b9a",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "5cd57952-caa0-4807-8fea-c3eb68a2819f",
"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-01-13T03:49:30.3115011+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.