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": "efbac998-ce7a-492b-9070-67fc3d3727d9",
"purchase_order_id": "08b03a02-9a65-49a8-8da0-dabc434b8c58",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "6af7e19d-616c-4491-969a-75bf8f3e1391",
"id2": 2,
"jobs_id": "53229363-adc1-4268-b983-4875fd128cda",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "e5121c38-b950-4450-916f-66f1b7b5ca17",
"supplier_company_code": "sample string 6",
"user_id": "cc4e5e99-abcb-415f-a7e4-dc87e6c1da67",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-11-27T22:54:47.2619705+00:00",
"date_update": "2026-11-27T22:54:47.2619705+00:00",
"date_delivery": "2026-11-27T22:54:47.2619705+00:00",
"confirmed_date_delivery": "2026-11-27T22:54:47.2619705+00:00",
"delivery_db_address_id": "bd68685a-69cc-402b-8242-e96113f9a7e1",
"approved_by_user_id": "7a61555f-2ea0-450b-ae9d-d8299af93792",
"approved_by_user_code": "sample string 18",
"technical_user_id": "5a88d252-eaa8-44e6-8dc5-9602e83118bb",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "e8f84ec9-b2dc-413b-9e8d-f55c4b3342a9",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "de575e1f-1335-4e7f-9ce9-1ce24e702a02",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-11-27T22:54:47.2619705+00:00"
},
"article_id": "ae21d8cd-e811-4708-bf23-be8205e23dcb",
"article_code": "sample string 5",
"article": {
"id": "181c91b2-8b7c-49cd-8ca6-e7d727662659",
"article_category_id": "3e75f891-eaec-4bf2-86ce-a933568b9223",
"article_category": {
"id": "79b08bd0-88e3-4d57-adc7-0ccec0f979ad",
"parent_id": "9a923959-484e-4a81-8cfe-c5df1c6eb380",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-11-27T22:54:47.2619705+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "93fd5b6e-dcbb-4191-91c7-97dc85bdd47c",
"article_group_1_code": "sample string 5",
"article_group_2_id": "b4fcb63b-83ab-4da3-8e43-dd4962343f9d",
"article_group_2_code": "sample string 7",
"article_group_3_id": "7d366983-a526-40a8-af3d-cf53f213d60e",
"article_group_3_code": "sample string 9",
"article_group_4_id": "dc5504c4-99b2-478f-9136-de9d0f37ff18",
"article_group_4_code": "sample string 11",
"article_group_5_id": "88cf0778-0c2f-4e3a-b899-a661ce2c831d",
"article_group_5_code": "sample string 13",
"article_group_6_id": "1c50d495-d91b-49ed-971e-22534bcc8249",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-11-27T22:54:47.2619705+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-11-27T22:54:47.2619705+00:00",
"date_update": "2026-11-27T22:54:47.2619705+00:00",
"modified_dateutc": "2026-11-27T22:54:47.2619705+00:00",
"article_color_id": "1f345105-38aa-4b36-99df-6734f61d0f56",
"article_color_code": "sample string 38",
"article_color": {
"id": "daf6fa5c-70d4-4b42-ad4c-9224ad200b16",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-11-27T22:54:47.2619705+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "948b0485-c904-4a71-84de-95c5d36834cd",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "5e21545c-2546-4d53-a519-b05260a01fb7",
"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-11-27T22:54:47.2818337+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.