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": "5136cb19-9f4b-4bb6-98f1-b6d1058b66cd",
"purchase_order_id": "ad316e68-7eab-4556-a9a5-7c94f2e5823a",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "c0a8528f-c07f-41b7-9d8c-251e89e7ab04",
"id2": 2,
"jobs_id": "7c5c0ac1-d10e-4351-b969-f0480fdd6898",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "d5813191-2fe2-4e02-bd4b-96f69dd81b8c",
"supplier_company_code": "sample string 6",
"user_id": "770d2b33-ecf5-4526-9aec-b552f24aa465",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-09-03T12:11:46.3522737+00:00",
"date_update": "2026-09-03T12:11:46.3522737+00:00",
"date_delivery": "2026-09-03T12:11:46.3522737+00:00",
"confirmed_date_delivery": "2026-09-03T12:11:46.3522737+00:00",
"delivery_db_address_id": "ceee91ec-699a-4c3e-bb75-942b351152c4",
"approved_by_user_id": "1d437865-a653-4287-808c-0a9c2ace6cef",
"approved_by_user_code": "sample string 18",
"technical_user_id": "9a603b4f-69f5-4730-a932-47cfd4c54567",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "2564f374-b89b-4ca4-9214-d550ecb574e0",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "7422d07c-5d2d-4db4-9552-9ee8df343beb",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-09-03T12:11:46.3522737+00:00"
},
"article_id": "f53dc1b9-c4de-4281-93d2-7bac7171e110",
"article_code": "sample string 5",
"article": {
"id": "c5a71153-88e7-4e29-a468-fe1b5e38b960",
"article_category_id": "287e4126-8ab2-410c-b68f-a434092542ab",
"article_category": {
"id": "e3bd118c-4c3b-487e-893b-30f7a5b46ada",
"parent_id": "696eaf8f-72af-40da-a567-b1f4c4b0da34",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-09-03T12:11:46.3522737+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "f6c40cd5-d692-45c0-8713-4f442f3345c2",
"article_group_1_code": "sample string 5",
"article_group_2_id": "9f2ae89b-6b42-4357-b2c3-465deab6ceaa",
"article_group_2_code": "sample string 7",
"article_group_3_id": "50d1935a-ea1a-49ff-b606-8de295653cfe",
"article_group_3_code": "sample string 9",
"article_group_4_id": "f2c9a615-a1b5-4a82-a129-108b8240214c",
"article_group_4_code": "sample string 11",
"article_group_5_id": "0ece8387-0b3d-4697-a932-a1b88a09bb16",
"article_group_5_code": "sample string 13",
"article_group_6_id": "a4eea2c8-180f-4865-9018-1688284665e9",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-09-03T12:11:46.3522737+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-09-03T12:11:46.3522737+00:00",
"date_update": "2026-09-03T12:11:46.3522737+00:00",
"modified_dateutc": "2026-09-03T12:11:46.3522737+00:00",
"article_color_id": "1d8f7768-74b8-48d8-8125-27e4f9e681a0",
"article_color_code": "sample string 38",
"article_color": {
"id": "ed95f807-7aa9-4a4f-8d17-f845e4f17fda",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-09-03T12:11:46.3522737+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "10472d8a-0d25-4a02-a5e2-34f0006b504e",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "4d5aadf3-b5bf-4df8-9897-7a53607632de",
"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-09-03T12:11:46.3522737+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.