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": "c0abc972-de6a-4e55-902a-fee29e5abaee",
"purchase_order_id": "b42dd123-52ec-437d-83e0-f7cde2db113d",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "5bec60fd-51ce-4048-87e4-b0d6eb19c411",
"id2": 2,
"jobs_id": "c7486e7f-d554-41a9-a409-9f11d3a0dfd9",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "c8c5c310-1bdb-4a93-888d-14db7a54067a",
"supplier_company_code": "sample string 6",
"user_id": "382429f1-7a82-4f4f-8fdd-f202e8ebfcbf",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-04-03T19:12:21.3458658+00:00",
"date_update": "2026-04-03T19:12:21.3458658+00:00",
"date_delivery": "2026-04-03T19:12:21.3458658+00:00",
"confirmed_date_delivery": "2026-04-03T19:12:21.3458658+00:00",
"delivery_db_address_id": "7822ec62-caa7-4251-8adf-492956f295ba",
"approved_by_user_id": "be6dafa1-3f36-433f-9e76-f60f0260f6a5",
"approved_by_user_code": "sample string 18",
"technical_user_id": "42ef8cc7-9ae4-458a-a192-41971e1239dd",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "182c1fa6-9fdb-4315-8556-755189b9b2fd",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "607d5f9f-2d50-4f91-90f1-0e05bf61470c",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-04-03T19:12:21.3458658+00:00"
},
"article_id": "c9107cb7-8cf9-4921-9499-c323aa7cadb2",
"article_code": "sample string 5",
"article": {
"id": "3f8b8d40-d957-4f62-aa32-1bdb0468b01b",
"article_category_id": "0aee5a9b-fc62-430e-817d-027017d431b1",
"article_category": {
"id": "2e418cb8-6c4c-40ea-b851-e01398d70f3b",
"parent_id": "d29704af-dd2a-46e4-84fa-4e679d8769fe",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-04-03T19:12:21.3458658+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "914bc6a8-4dc4-43df-824a-b56358dafd91",
"article_group_1_code": "sample string 5",
"article_group_2_id": "7c45c9c8-083e-4b06-ab2b-fd00577ae86e",
"article_group_2_code": "sample string 7",
"article_group_3_id": "ec075799-6c6f-4d0c-8769-085165fca353",
"article_group_3_code": "sample string 9",
"article_group_4_id": "b25db55e-d086-4ba6-8870-1f1aaa5df451",
"article_group_4_code": "sample string 11",
"article_group_5_id": "3443fe56-30d6-4eb2-95ea-afcda5faf80d",
"article_group_5_code": "sample string 13",
"article_group_6_id": "f4d4f36e-78df-4af7-86d2-6a7ffcfc1052",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-04-03T19:12:21.3458658+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-04-03T19:12:21.3458658+00:00",
"date_update": "2026-04-03T19:12:21.3458658+00:00",
"modified_dateutc": "2026-04-03T19:12:21.3458658+00:00",
"article_color_id": "b4d246d3-5186-45b2-b0c1-88b338503432",
"article_color_code": "sample string 38",
"article_color": {
"id": "a136db93-902a-4f75-a6e2-5ba8f2554e7e",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-04-03T19:12:21.3458658+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "e63fc797-8a3b-43f6-93f2-b65f86d85607",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "282b8efb-ab3a-46b9-8ab6-534eed1677f7",
"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-04-03T19:12:21.3458658+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.