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": "e5a6a6e1-51ad-410c-ab6d-cb453bd4691d",
"purchase_order_id": "64533a47-4a76-4b94-8482-be3e2ad81d00",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "b4987cb4-2bbf-4653-8d17-4c9ae7f34a84",
"id2": 2,
"jobs_id": "5812ca95-056f-4cd6-b62b-7f498285af3f",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "9fa5b848-a757-40f3-b947-a809c6accc72",
"supplier_company_code": "sample string 6",
"user_id": "f5901435-dfc0-49f8-91ce-10566e9900df",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2025-11-19T20:33:51.1457921+00:00",
"date_update": "2025-11-19T20:33:51.1457921+00:00",
"date_delivery": "2025-11-19T20:33:51.1457921+00:00",
"confirmed_date_delivery": "2025-11-19T20:33:51.1457921+00:00",
"delivery_db_address_id": "fe7b04be-7327-4d43-b1b1-d84487451b0f",
"approved_by_user_id": "3e987f09-5f30-493a-874e-49a144b532de",
"approved_by_user_code": "sample string 18",
"technical_user_id": "7675c10f-6440-43ed-85ec-a21ebd5e04d1",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "ed0a5abe-78f7-40e6-bd57-009071c85b17",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "ffe714ef-e468-4664-a684-70ac90f39965",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2025-11-19T20:33:51.1457921+00:00"
},
"article_id": "ee8d4aa7-01a1-4c2c-b849-f56b49d6bfc6",
"article_code": "sample string 5",
"article": {
"id": "08a4497a-82ed-480a-bb76-8a124c2187e6",
"article_category_id": "97ceccde-18a3-43f1-b88a-6f3621744741",
"article_category": {
"id": "8470676e-e909-4b47-be6f-b89b29e4aa54",
"parent_id": "04d275a4-cedd-44b5-8fce-0aa25edf56b1",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2025-11-19T20:33:51.1457921+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "1a7802ce-47c8-4c3a-88fe-8164bbe04e8b",
"article_group_1_code": "sample string 5",
"article_group_2_id": "a0793cb3-6f28-411b-9946-e77cc0775952",
"article_group_2_code": "sample string 7",
"article_group_3_id": "dd3c3f5f-e79f-4e03-a461-48ea3fc1d2bb",
"article_group_3_code": "sample string 9",
"article_group_4_id": "b4faae4f-5420-4341-9b37-9dbf3cb8b9be",
"article_group_4_code": "sample string 11",
"article_group_5_id": "9509f667-568b-4cf1-b970-0a3ee8906274",
"article_group_5_code": "sample string 13",
"article_group_6_id": "eb7e1efb-9d22-4502-a508-e07c7ed564d2",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2025-11-19T20:33:51.1457921+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": "2025-11-19T20:33:51.1614126+00:00",
"date_update": "2025-11-19T20:33:51.1614126+00:00",
"modified_dateutc": "2025-11-19T20:33:51.1614126+00:00",
"article_color_id": "70164d6d-21c8-405c-94f8-50189684b0e1",
"article_color_code": "sample string 38",
"article_color": {
"id": "6bea8801-2686-49cb-b263-26e8f1753a30",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2025-11-19T20:33:51.1614126+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "e81370c2-9da0-41ae-af61-73942f527948",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "efbc749f-d6b3-4bb6-88e0-5b6320c19fd1",
"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": "2025-11-19T20:33:51.1614126+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.