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": "accd7401-e3db-4805-a321-8f028ac69597",
"purchase_order_id": "b50dc2ac-5149-4b17-8f99-bd5df804808a",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "e5c650e5-7156-42b2-a9e8-f7865db3bb7d",
"id2": 2,
"jobs_id": "1e964586-7dcf-4a6e-9440-cea48d4a354c",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "14f9aa8d-db36-4603-9cc5-426e7706b4e2",
"supplier_company_code": "sample string 6",
"user_id": "fbdca43a-656c-46a8-807d-21116ef3a34d",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-06-10T08:12:07.2268607+00:00",
"date_update": "2026-06-10T08:12:07.2268607+00:00",
"date_delivery": "2026-06-10T08:12:07.2268607+00:00",
"confirmed_date_delivery": "2026-06-10T08:12:07.2268607+00:00",
"delivery_db_address_id": "63819476-9049-40c1-92c3-f2d51e5cabbc",
"approved_by_user_id": "d45f396e-a4a4-4abe-80a0-55072aa9e4a9",
"approved_by_user_code": "sample string 18",
"technical_user_id": "76195c85-382e-435f-8cb0-9df083c1eb57",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "9de29aad-67f5-4573-bc4d-0b78a384b4a1",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "47102db9-d65e-4fcf-b988-5400ae40769a",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-06-10T08:12:07.2268607+00:00"
},
"article_id": "5655a65c-6d49-4d21-b4d1-bef0af0e43cf",
"article_code": "sample string 5",
"article": {
"id": "c4fb93e0-ebe6-4ac9-826c-6b1348441580",
"article_category_id": "badf6052-c17a-4040-9cf6-774dc609057a",
"article_category": {
"id": "c8375295-490e-46dc-ae56-2276270d01e5",
"parent_id": "a9079112-ec50-48a8-b7b0-3746b4fb8760",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-06-10T08:12:07.2268607+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "8cd0a17a-fdbd-4530-a125-f2c16e108b69",
"article_group_1_code": "sample string 5",
"article_group_2_id": "13e729dd-81d4-4013-bb7a-241e7d94639f",
"article_group_2_code": "sample string 7",
"article_group_3_id": "8ced3311-fd8a-4d06-a22d-18e4c7fc97c4",
"article_group_3_code": "sample string 9",
"article_group_4_id": "41c28af5-253c-40e6-bf61-c1417f9c3ced",
"article_group_4_code": "sample string 11",
"article_group_5_id": "f186bcb7-ca0b-4b81-8e7a-6db98080c278",
"article_group_5_code": "sample string 13",
"article_group_6_id": "79664dc1-0b6a-4195-bdc9-1f525ce85cef",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-06-10T08:12:07.2268607+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-06-10T08:12:07.2268607+00:00",
"date_update": "2026-06-10T08:12:07.2268607+00:00",
"modified_dateutc": "2026-06-10T08:12:07.2268607+00:00",
"article_color_id": "1d0c7f77-5f3e-41fd-ac13-2f3e7c3fae4e",
"article_color_code": "sample string 38",
"article_color": {
"id": "5bf083aa-a862-4cec-aa3d-a29b15da048d",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-06-10T08:12:07.2268607+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "808c7d05-0ea1-4fcf-9574-0af34edcde0c",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "50b9c4d0-b6dd-4669-9679-d864555c3b10",
"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-06-10T08:12:07.2268607+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.