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": "2c04e043-b72c-4983-8bf0-42c28a1b5676",
"purchase_order_id": "5929fcfe-0015-42b1-8065-355f92228cc6",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "fae5b5b5-9ba6-4e8d-867d-b7c338509152",
"id2": 2,
"jobs_id": "190581db-6f12-4ff4-a33e-8409d1575b5a",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "30345803-412a-450c-8247-fafaf292b644",
"supplier_company_code": "sample string 6",
"user_id": "7550565b-2ac1-4c5a-b5a3-998cf5ce092b",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-11-14T16:40:26.5076338+00:00",
"date_update": "2026-11-14T16:40:26.5076338+00:00",
"date_delivery": "2026-11-14T16:40:26.5076338+00:00",
"confirmed_date_delivery": "2026-11-14T16:40:26.5076338+00:00",
"delivery_db_address_id": "5e1ba8f8-fa6e-4e56-abef-22ea7c4066ef",
"approved_by_user_id": "9a67e9f2-f31e-40af-9ac2-9ed8996b1dc9",
"approved_by_user_code": "sample string 18",
"technical_user_id": "abdc7874-46bf-4bce-879c-8f768ae6ad2a",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "9ea1d2a9-aed9-4452-a826-2edc4c9be8c8",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "38ea6c38-f878-4bbf-bf2a-4fab563beafe",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-11-14T16:40:26.5076338+00:00"
},
"article_id": "7240ae31-b348-48ce-8ccd-db79a9d52f91",
"article_code": "sample string 5",
"article": {
"id": "9cb3823e-0a67-4a1a-ae31-b9aec71ecf33",
"article_category_id": "f16380d7-71f7-41b9-82e7-d0d3b7c38eab",
"article_category": {
"id": "07fb9d1b-e75a-4592-b7b1-38720d13087f",
"parent_id": "5c93f8bf-eaef-4ad1-9241-248909a83ac6",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-11-14T16:40:26.5076338+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "4a4ec24c-1b4f-41ba-824c-90c66ca771ed",
"article_group_1_code": "sample string 5",
"article_group_2_id": "fdf47d97-134c-414e-baa7-9f4c7fbd1a7d",
"article_group_2_code": "sample string 7",
"article_group_3_id": "415f6f06-a6e7-4f4b-a90e-68bcc55a6db3",
"article_group_3_code": "sample string 9",
"article_group_4_id": "4471074d-dba3-433e-be04-d621b3361e58",
"article_group_4_code": "sample string 11",
"article_group_5_id": "f3ca5917-aae9-4ec2-9b1e-2ecd0c341950",
"article_group_5_code": "sample string 13",
"article_group_6_id": "936838e6-fe4b-4334-a81e-15f270f4627b",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-11-14T16:40:26.5076338+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-11-14T16:40:26.5076338+00:00",
"date_update": "2026-11-14T16:40:26.5076338+00:00",
"modified_dateutc": "2026-11-14T16:40:26.5076338+00:00",
"article_color_id": "2d885534-ef1e-4613-b586-7dbf4cdb527f",
"article_color_code": "sample string 38",
"article_color": {
"id": "45007f09-22df-49d2-95e2-975da4441efb",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-11-14T16:40:26.5076338+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "4ab9ee12-7458-490d-951e-18d6e0bfa21c",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "76a4275f-5f67-4fbd-9ead-e0d30ab3098c",
"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-11-14T16:40:26.5184329+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.