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": "886b69fb-5e9f-44f3-82d4-d5212fafd6fd",
"purchase_order_id": "6ed573a2-aff9-433c-8b30-4017895030b4",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "518481ff-f08f-43d8-897a-1b5354b58a74",
"id2": 2,
"jobs_id": "19182d14-9740-49c0-a37e-220244c8a975",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "ceabb4ca-a0c5-402e-bf28-a8a705340e9f",
"supplier_company_code": "sample string 6",
"user_id": "460d0a00-49a2-4e6c-b521-f1905c24be5b",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-07-31T19:30:02.233512+00:00",
"date_update": "2026-07-31T19:30:02.233512+00:00",
"date_delivery": "2026-07-31T19:30:02.233512+00:00",
"confirmed_date_delivery": "2026-07-31T19:30:02.233512+00:00",
"delivery_db_address_id": "2911e548-b332-4b09-a8ea-f020aebf52fe",
"approved_by_user_id": "5269c79f-741b-4716-b416-fd0f4cc1785f",
"approved_by_user_code": "sample string 18",
"technical_user_id": "f8e2678e-8d92-4100-bd00-d87348b0be17",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "b00864dd-3e77-445a-bba6-f8f1056e0a1b",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "6470c38e-b857-46cd-81fa-5e0a1522039c",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-07-31T19:30:02.233512+00:00"
},
"article_id": "a5d3c774-3fbf-4df7-90da-893618e32ae7",
"article_code": "sample string 5",
"article": {
"id": "ecfa3d04-c393-4acc-8667-5544480a953a",
"article_category_id": "07457d5a-b2b8-41b4-a4c3-3fd13eb1cda4",
"article_category": {
"id": "99afe0d3-856a-4af8-a2f0-b4addf57745c",
"parent_id": "42cf8608-4bbe-4b02-9969-87dacafe2d6e",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-07-31T19:30:02.233512+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "7ec57c9c-7faf-471a-9024-51e43424f036",
"article_group_1_code": "sample string 5",
"article_group_2_id": "27f5f4f6-08b5-45cd-9c12-cf1c2760df73",
"article_group_2_code": "sample string 7",
"article_group_3_id": "11e02246-0c93-42e6-ac31-500516f6598c",
"article_group_3_code": "sample string 9",
"article_group_4_id": "255b4835-64b3-4cec-ab22-c589bf547b9c",
"article_group_4_code": "sample string 11",
"article_group_5_id": "8c900055-5c35-48f9-b955-eb2fe7d62948",
"article_group_5_code": "sample string 13",
"article_group_6_id": "5c5bd70d-08c9-42cf-8a06-2cac3459bd06",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-07-31T19:30:02.233512+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-07-31T19:30:02.233512+00:00",
"date_update": "2026-07-31T19:30:02.233512+00:00",
"modified_dateutc": "2026-07-31T19:30:02.233512+00:00",
"article_color_id": "626d6d7d-89d1-4f07-aab6-29dd826ec637",
"article_color_code": "sample string 38",
"article_color": {
"id": "89d8028d-5306-445c-af16-1d67ef4b8111",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-07-31T19:30:02.233512+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "76a99b2a-8942-418e-9e27-df3acdd37271",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "cd2c636a-a7b5-44c0-8a99-5c1ad9cb9c99",
"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-07-31T19:30:02.233512+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.