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": "677b3ba9-2df1-406f-93df-6806e86dcbec",
"purchase_order_id": "93a24540-2d45-4adc-94d3-62b69aa05a60",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "4220e4ae-fad6-4e86-894e-a3f149121bba",
"id2": 2,
"jobs_id": "0d319931-27f4-46af-806b-91a86fde8fc1",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "72ab7c7d-932f-4531-a24d-168f51dbcc99",
"supplier_company_code": "sample string 6",
"user_id": "53e29ba2-5c1e-4061-ab1f-b73204258fbb",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-08-09T09:35:49.6617998+00:00",
"date_update": "2026-08-09T09:35:49.6617998+00:00",
"date_delivery": "2026-08-09T09:35:49.6617998+00:00",
"confirmed_date_delivery": "2026-08-09T09:35:49.6617998+00:00",
"delivery_db_address_id": "6acf0641-f24c-43e6-aae3-9dfe44c2d13c",
"approved_by_user_id": "4161f7a0-d84a-4a26-810a-191d5565e3d1",
"approved_by_user_code": "sample string 18",
"technical_user_id": "87be35e1-42e4-4f11-83c0-a83fc5b13ec0",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "9d8b2953-e72e-4087-a2db-010cf656d0f5",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "0f15ca66-b605-4be7-86b5-c13595823820",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-08-09T09:35:49.6617998+00:00"
},
"article_id": "939e9afa-9621-4bc2-aac3-3a9aba9c9486",
"article_code": "sample string 5",
"article": {
"id": "33866ade-0daf-4a74-9b86-08b71cfa6af0",
"article_category_id": "56fa737b-d7df-41ad-8266-21b67e2b95c3",
"article_category": {
"id": "e7705930-6361-44ac-979e-456294e1b24e",
"parent_id": "7d78cddd-79df-401a-bb2d-9eae0fee63d2",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-08-09T09:35:49.6617998+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "5011a308-8750-4317-ac1c-65e13d994e05",
"article_group_1_code": "sample string 5",
"article_group_2_id": "ede274aa-e12a-47c2-9eec-661796ac61e0",
"article_group_2_code": "sample string 7",
"article_group_3_id": "fb433410-8774-4d09-9daf-e2ee9c7d7c39",
"article_group_3_code": "sample string 9",
"article_group_4_id": "a11e79cc-a5be-4141-851f-be060da5d57f",
"article_group_4_code": "sample string 11",
"article_group_5_id": "e10a6e7f-eed0-4773-872b-9b84dcdf604d",
"article_group_5_code": "sample string 13",
"article_group_6_id": "09c480eb-dc5f-42b3-b96e-b33d654e4c37",
"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-09T09:35:49.6617998+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-09T09:35:49.6617998+00:00",
"date_update": "2026-08-09T09:35:49.6617998+00:00",
"modified_dateutc": "2026-08-09T09:35:49.6617998+00:00",
"article_color_id": "350f131d-4338-4e34-bb99-5ea2250ee948",
"article_color_code": "sample string 38",
"article_color": {
"id": "fc947c84-06f3-4931-bb73-00a52c50fd2e",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-08-09T09:35:49.6617998+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "b007f82a-a8d7-485e-bf13-d00a532ba85c",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "f3c96e37-bb37-4a98-a758-8bb9db0c55c1",
"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-09T09:35:49.6617998+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.