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": "9c9ff6c0-b52b-44cb-aaa7-628b34128fe8",
"purchase_order_id": "81d0e7e1-b7bb-4937-ac55-b29d3160d6fd",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "412e61d0-97a9-4ad1-a985-11cf6bec3b5b",
"id2": 2,
"jobs_id": "8d11ca41-5fdc-46f5-a51e-9e6301a478bd",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "b8a21981-0b39-42ef-95cd-071e206c20fe",
"supplier_company_code": "sample string 6",
"user_id": "44253083-6962-4f3e-9e5b-dc1a9ddc878d",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-06-05T05:30:44.9448853+00:00",
"date_update": "2026-06-05T05:30:44.9448853+00:00",
"date_delivery": "2026-06-05T05:30:44.9448853+00:00",
"confirmed_date_delivery": "2026-06-05T05:30:44.9448853+00:00",
"delivery_db_address_id": "e5732747-a4a4-4bb2-904c-53b06ddf2642",
"approved_by_user_id": "69d5bf33-0db6-427e-bcd1-d12e6f4c0544",
"approved_by_user_code": "sample string 18",
"technical_user_id": "e532db4a-c8ba-4380-83b9-d54713a75013",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "c2a48b82-1781-4af3-90b8-4a03e6ad89d5",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "740c723a-1a54-4e3d-a081-e7c0f2fa8ec8",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-06-05T05:30:44.9448853+00:00"
},
"article_id": "2c5131e6-0195-4b0a-9c3d-c128c0ec26e1",
"article_code": "sample string 5",
"article": {
"id": "448cd6fc-cc0e-4a33-9547-0b378b110a92",
"article_category_id": "e897a970-e94b-4252-87f4-0f10068bd580",
"article_category": {
"id": "022ac430-fb8e-42e3-a096-1d3852be477d",
"parent_id": "2296657d-5a3c-4feb-8d47-49c044033a6f",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-06-05T05:30:44.9448853+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "2482f437-8c3d-4891-bffc-601ab5c71770",
"article_group_1_code": "sample string 5",
"article_group_2_id": "aabffadb-eaa4-4bd7-972c-a6f22d966d38",
"article_group_2_code": "sample string 7",
"article_group_3_id": "daf5367f-827e-4dac-8eb9-a7b6b4067ccf",
"article_group_3_code": "sample string 9",
"article_group_4_id": "2615462a-67ef-4555-ace6-69e10b82211a",
"article_group_4_code": "sample string 11",
"article_group_5_id": "66dd7a52-dd17-426b-a20b-b15c9d9128bc",
"article_group_5_code": "sample string 13",
"article_group_6_id": "2aa85396-2ef3-43e2-8ddb-25b8fb719934",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-06-05T05:30:44.9448853+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-06-05T05:30:44.9448853+00:00",
"date_update": "2026-06-05T05:30:44.9448853+00:00",
"modified_dateutc": "2026-06-05T05:30:44.9448853+00:00",
"article_color_id": "fb9420b4-bc2b-4407-a3d1-63bf8b2efb82",
"article_color_code": "sample string 38",
"article_color": {
"id": "f61804a8-0f0a-47d0-b13e-0c14c683cf5b",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-06-05T05:30:44.9448853+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "92a67ebe-68dd-4534-aa81-39c1ebc8727a",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "992aac14-993f-4e62-b62f-d76989d12476",
"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-06-05T05:30:44.9448853+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.