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": "83d3ebe2-479f-426f-92d5-7911ea8964d4",
"purchase_order_id": "d767ace2-27d8-4919-9c5b-8de0e15cef3e",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "d29f8d89-20e1-4656-8cf4-a0a8de0031b7",
"id2": 2,
"jobs_id": "7589178f-f963-4a3f-88e2-4d6eb0bb9c96",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "3df01b09-d685-4764-9167-3cdfbfc57bbe",
"supplier_company_code": "sample string 6",
"user_id": "7098260b-7e2a-4a91-9a6b-28999e23644b",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2025-11-26T07:28:39.0774994+00:00",
"date_update": "2025-11-26T07:28:39.0774994+00:00",
"date_delivery": "2025-11-26T07:28:39.0774994+00:00",
"confirmed_date_delivery": "2025-11-26T07:28:39.0774994+00:00",
"delivery_db_address_id": "59b122b7-8bdd-43d5-80d0-58d56c5d3d2b",
"approved_by_user_id": "7f5120f7-3321-41d2-8d81-649aac34c527",
"approved_by_user_code": "sample string 18",
"technical_user_id": "f0c1c134-26d6-4fdf-a8ae-57480714e5e7",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "8939bbd1-a5b1-4f28-abf1-62b06aa66771",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "814abced-7f14-4f6c-9b5b-a261674155cb",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2025-11-26T07:28:39.0774994+00:00"
},
"article_id": "6fd46d87-00c2-4693-91b3-e043cafae777",
"article_code": "sample string 5",
"article": {
"id": "1faa7e83-0cc7-453c-89b4-aa3635d102b5",
"article_category_id": "8f2de7f0-19b1-4bf5-9cc9-295cac15ab97",
"article_category": {
"id": "9815a20b-1be3-4527-85e3-4748c94b7b72",
"parent_id": "5b60e434-479e-477c-b5fa-5789e26168c5",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2025-11-26T07:28:39.0931208+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "e35ab62e-5524-4ba0-b1f9-409f96eb43d4",
"article_group_1_code": "sample string 5",
"article_group_2_id": "98f6d0ca-0104-409b-bd30-5e56e2f52511",
"article_group_2_code": "sample string 7",
"article_group_3_id": "d8523640-f997-45aa-b112-c62d7164e66a",
"article_group_3_code": "sample string 9",
"article_group_4_id": "be61890c-2dc8-4747-8309-dfc5effa9603",
"article_group_4_code": "sample string 11",
"article_group_5_id": "b2b38043-7746-47ab-92a1-69613ed6dabe",
"article_group_5_code": "sample string 13",
"article_group_6_id": "14b0b178-f0d5-4d30-85ee-a65e5b1597ca",
"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-26T07:28:39.0931208+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-26T07:28:39.0931208+00:00",
"date_update": "2025-11-26T07:28:39.0931208+00:00",
"modified_dateutc": "2025-11-26T07:28:39.0931208+00:00",
"article_color_id": "23015a9f-92bf-4310-ac66-1150dc9c5934",
"article_color_code": "sample string 38",
"article_color": {
"id": "a69bf956-51b9-4389-8f7a-7343f00b58bd",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2025-11-26T07:28:39.0931208+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "1d245888-a33d-420d-b52e-445f94075f80",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "4c2f4e72-e68c-4fee-8d18-9e0e31502d1b",
"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-26T07:28:39.1087421+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.