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": "ff4d9612-7881-4f9e-9730-974b8eea3b10",
"purchase_order_id": "cfebbc37-22f2-4d96-b1e8-70b0078b2aa0",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "b4e7ea33-0758-4242-a66b-2403fcb5af34",
"id2": 2,
"jobs_id": "f0fdc34a-a62c-45ce-94c8-aa5aa6f2bc20",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "84cd5be9-05cf-4976-a503-64c19dc25631",
"supplier_company_code": "sample string 6",
"user_id": "5989024c-046d-41c5-b502-08fd94427c72",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-08-12T11:08:33.1133066+00:00",
"date_update": "2026-08-12T11:08:33.1133066+00:00",
"date_delivery": "2026-08-12T11:08:33.1133066+00:00",
"confirmed_date_delivery": "2026-08-12T11:08:33.1133066+00:00",
"delivery_db_address_id": "f9640680-a18f-42e0-bc8b-19b3591621f3",
"approved_by_user_id": "f5f945dc-3b0b-4eb0-a5f2-030770016285",
"approved_by_user_code": "sample string 18",
"technical_user_id": "83654c4f-01f2-4c9d-a1b3-d5f2ac674a7f",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "2c5484c9-023e-46c7-bae5-ac51a3fee016",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "30f1e2f7-d13c-4833-a342-e267eb40f861",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-08-12T11:08:33.1133066+00:00"
},
"article_id": "d6f5c9bb-cbf5-44d7-b8b3-84f34d095945",
"article_code": "sample string 5",
"article": {
"id": "ee643c99-e607-4927-89e4-70935340f1ed",
"article_category_id": "7802bb3a-f1be-49f2-84b5-1a0c916a1e4a",
"article_category": {
"id": "a30e0e28-ad5d-4e31-9569-2b9ba0f18d0a",
"parent_id": "f56f372d-789e-4075-9d34-14c68605d444",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-08-12T11:08:33.1133066+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "dd2b0c82-6a85-41e4-9079-098de5f1059f",
"article_group_1_code": "sample string 5",
"article_group_2_id": "0521271f-125b-43e5-a6d9-9b6495d15421",
"article_group_2_code": "sample string 7",
"article_group_3_id": "e5dc1e72-6724-4301-9908-74e4a2a5c50e",
"article_group_3_code": "sample string 9",
"article_group_4_id": "25fa073e-8ad5-45a0-b70a-e5da6e358a53",
"article_group_4_code": "sample string 11",
"article_group_5_id": "80530d9c-118d-4eee-a788-cb3f37d3ebb3",
"article_group_5_code": "sample string 13",
"article_group_6_id": "d7a3bb7e-bb80-4883-bb5e-e78d18fc3893",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-08-12T11:08:33.1133066+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-08-12T11:08:33.1133066+00:00",
"date_update": "2026-08-12T11:08:33.1133066+00:00",
"modified_dateutc": "2026-08-12T11:08:33.1133066+00:00",
"article_color_id": "71419261-d6ce-4f99-b705-5cc49db5a300",
"article_color_code": "sample string 38",
"article_color": {
"id": "18cc4d74-2c07-4082-b428-49b0ec619105",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-08-12T11:08:33.1133066+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "c90a2140-d932-4d50-9aca-5c0b1da55bc4",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "688ce3b1-0e0d-46b3-b8b9-338933ee3833",
"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-08-12T11:08:33.1133066+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.