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": "d13e7ee8-12fa-40b2-9ec6-cf76b317bf9a",
"purchase_order_id": "318cfee6-45e4-44a9-ae2b-beef7e5d2ec2",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "de293b12-0461-4153-af7c-0bf47d69448b",
"id2": 2,
"jobs_id": "8e6b1cdd-de12-4ca7-9a4f-17422a3ce11d",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "a2dca816-3c75-4f94-940a-6f022be19ba8",
"supplier_company_code": "sample string 6",
"user_id": "322516ee-a9a4-4516-b7af-f3a425208407",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-06-28T08:22:06.1050053+00:00",
"date_update": "2026-06-28T08:22:06.1050053+00:00",
"date_delivery": "2026-06-28T08:22:06.1050053+00:00",
"confirmed_date_delivery": "2026-06-28T08:22:06.1050053+00:00",
"delivery_db_address_id": "e0937aeb-0240-4d03-9a4f-6c5dd06957c3",
"approved_by_user_id": "c87606b1-717e-4e79-bfb9-5bfb2ed81fda",
"approved_by_user_code": "sample string 18",
"technical_user_id": "2b2f4715-9613-4e7c-98c5-697194c7f3e6",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "376751b8-f7cf-49cf-b262-569324b5006c",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "fff169be-57b3-493b-919b-b77016ef6c32",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-06-28T08:22:06.1050053+00:00"
},
"article_id": "f165611e-4b9d-47c3-ab18-537032438e7e",
"article_code": "sample string 5",
"article": {
"id": "a203864b-6430-4f7c-9c60-8ffe0f12727d",
"article_category_id": "8d39eb31-5947-4ef2-9737-9eaa1b1d8871",
"article_category": {
"id": "1eda6967-d267-4b8e-964f-4ef693f1dc70",
"parent_id": "8a8abc94-44fd-429a-9753-619fd28601da",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-06-28T08:22:06.1050053+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "57acc262-0c4d-42f1-b8d0-474316124bf0",
"article_group_1_code": "sample string 5",
"article_group_2_id": "e062f21f-f61d-4bf4-8948-7897ce36386f",
"article_group_2_code": "sample string 7",
"article_group_3_id": "3f493801-9d76-48e4-8bb6-52b2397cec7d",
"article_group_3_code": "sample string 9",
"article_group_4_id": "d5ec8366-1ffa-4c98-89d6-436f1ccdcc80",
"article_group_4_code": "sample string 11",
"article_group_5_id": "e91644f4-84e6-49d7-ae15-f357162a9bb4",
"article_group_5_code": "sample string 13",
"article_group_6_id": "281bb814-bf0c-4600-947e-87079a8f6c6d",
"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-28T08:22:06.1050053+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-28T08:22:06.1050053+00:00",
"date_update": "2026-06-28T08:22:06.1050053+00:00",
"modified_dateutc": "2026-06-28T08:22:06.1050053+00:00",
"article_color_id": "a4e99c0b-12f5-4c6a-9e7d-65255fb93320",
"article_color_code": "sample string 38",
"article_color": {
"id": "68a85d83-5e97-4271-b04a-ead10a8c22e9",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-06-28T08:22:06.1050053+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "5536bab9-d4e6-4c28-bdbc-1225f04652bb",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "8e54edb9-c638-4d28-bbf6-eba17e906efe",
"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-28T08:22:06.1050053+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.