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": "fa12efe7-81c6-4346-a8ad-8da8c36b8ceb",
"purchase_order_id": "429cd9e1-6917-4157-a0b0-55b604a73cc0",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "4939c639-993c-4eb4-b079-ec956e8b2b06",
"id2": 2,
"jobs_id": "17cad600-634e-48d9-aee8-2bdfb655eafd",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "c4ed540f-2e36-4fb0-99de-b51b08b2e15f",
"supplier_company_code": "sample string 6",
"user_id": "479de266-88bf-4080-b538-47ffae9677c3",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-08-18T13:29:39.9579166+00:00",
"date_update": "2026-08-18T13:29:39.9579166+00:00",
"date_delivery": "2026-08-18T13:29:39.9579166+00:00",
"confirmed_date_delivery": "2026-08-18T13:29:39.9579166+00:00",
"delivery_db_address_id": "c0ef4850-83a0-408d-8276-6142f9930b2d",
"approved_by_user_id": "a400fe9f-7b70-47cc-b116-ecf8e30276d6",
"approved_by_user_code": "sample string 18",
"technical_user_id": "5248f48e-183f-42d6-8ab1-86aec1abf3e0",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "80120d08-8a4b-458a-b8c8-f192b0ccfa1d",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "bfa40bd8-52b0-43c9-8a98-8a250b7262f1",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-08-18T13:29:39.9579166+00:00"
},
"article_id": "3ea96365-fcf7-4e22-a56d-bed84bbefd06",
"article_code": "sample string 5",
"article": {
"id": "4a3ac4c1-5ce2-4847-a6ea-d952d7a9e363",
"article_category_id": "bf126c9c-03d3-434f-95b8-14dabe08940c",
"article_category": {
"id": "e1393f47-418b-48c8-8201-b91f2eca4952",
"parent_id": "48779a32-071a-43cc-87ad-59cf4f7da054",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-08-18T13:29:39.9579166+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "935019d3-bdec-43e5-934e-0b4ac11e226e",
"article_group_1_code": "sample string 5",
"article_group_2_id": "7e11429e-5c89-49ef-a79d-951f5ea19a75",
"article_group_2_code": "sample string 7",
"article_group_3_id": "9f1e03c5-8a08-4dd0-8d56-dfefbbe2bdaa",
"article_group_3_code": "sample string 9",
"article_group_4_id": "64598090-e9e2-4377-b4d4-c8824b93c676",
"article_group_4_code": "sample string 11",
"article_group_5_id": "1b1e77eb-6089-4e06-bb34-5f33cb92814e",
"article_group_5_code": "sample string 13",
"article_group_6_id": "abc5c1b9-f9c4-4a39-8ff7-00fa5ffb782f",
"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-18T13:29:39.9579166+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-18T13:29:39.9579166+00:00",
"date_update": "2026-08-18T13:29:39.9579166+00:00",
"modified_dateutc": "2026-08-18T13:29:39.9579166+00:00",
"article_color_id": "21698a85-c214-4cc2-93b5-61afc3bae3d1",
"article_color_code": "sample string 38",
"article_color": {
"id": "5756efaa-b5b9-4104-a80d-ed97900826db",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-08-18T13:29:39.9579166+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "3d609530-6578-4967-8742-0025eb564129",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "df3be9e7-54de-4197-9d7f-4bd8c22a2946",
"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-18T13:29:39.9579166+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.