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": "3028fb60-3f89-4616-adce-fa58b799247e",
"purchase_order_id": "eeac3867-f308-499c-9375-a40bda4ba0d2",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "35a205b1-e6be-451d-8bbf-8ed9965215c0",
"id2": 2,
"jobs_id": "d3d07927-1b47-4344-8a8c-9165f3d816e6",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "14f50890-3942-4f62-a748-c5e08d93a92b",
"supplier_company_code": "sample string 6",
"user_id": "1b0b9340-43dd-48fa-a5a7-9a816e9e6c5d",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-10-21T12:58:09.2048555+00:00",
"date_update": "2026-10-21T12:58:09.2180026+00:00",
"date_delivery": "2026-10-21T12:58:09.2180026+00:00",
"confirmed_date_delivery": "2026-10-21T12:58:09.2180026+00:00",
"delivery_db_address_id": "22da99a8-e544-4940-bd47-2734d3286345",
"approved_by_user_id": "2fc84864-64c1-4d39-b253-0cef3c2dfa18",
"approved_by_user_code": "sample string 18",
"technical_user_id": "638aab8c-5231-420d-a0f6-de58d9aa4006",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "d3943964-a64d-42e8-9faa-a9b7f44575d0",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "87eb8d78-9bef-4cd0-a5bf-caaf04678fdd",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-10-21T12:58:09.2180026+00:00"
},
"article_id": "ea103287-dc30-4cfd-aeb0-3ef3334ee233",
"article_code": "sample string 5",
"article": {
"id": "7f8920db-2628-42f9-9b2e-af394b191d37",
"article_category_id": "b16e622c-e9b5-4148-a08f-5e3690ced705",
"article_category": {
"id": "dabde160-8a9b-47b4-a338-15bfeafeb261",
"parent_id": "fc492217-bd1a-4ca7-a4cd-d6599ba977c6",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-10-21T12:58:09.2337681+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "3e1638a5-8105-41e2-bc59-77d577824c8f",
"article_group_1_code": "sample string 5",
"article_group_2_id": "0bb46299-1b6c-452e-8b35-d17609e43a2a",
"article_group_2_code": "sample string 7",
"article_group_3_id": "ddc6cc1f-dad6-4a00-aef2-ae2cdddd573a",
"article_group_3_code": "sample string 9",
"article_group_4_id": "abc7a7eb-0b3a-4bc4-8171-2d0599498fa1",
"article_group_4_code": "sample string 11",
"article_group_5_id": "25f11adf-3db4-4ab5-b4dd-2a448de54c18",
"article_group_5_code": "sample string 13",
"article_group_6_id": "0f462e93-e2a8-43d7-a4a1-2f506aef0437",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-10-21T12:58:09.2337681+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-10-21T12:58:09.2337681+00:00",
"date_update": "2026-10-21T12:58:09.2337681+00:00",
"modified_dateutc": "2026-10-21T12:58:09.2337681+00:00",
"article_color_id": "05abf698-dee4-491a-bb7e-3d3fb21e35bf",
"article_color_code": "sample string 38",
"article_color": {
"id": "2448b5a2-bdcb-4d59-beb4-4d0bc107e5c6",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-10-21T12:58:09.2337681+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "5c9cf03b-bc6f-4c3e-8397-ff48236c6915",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "c5cc422f-5238-416e-bdc0-0309a8f8f6b4",
"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-10-21T12:58:09.253047+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.