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": "60f571db-2662-42bc-a52a-ce981cf3ec43",
"purchase_order_id": "a5b5f7f3-d478-4c6b-9e23-77b2bcbf1e17",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "87db4a77-2d0f-411b-b34a-1d9f6cb6795d",
"id2": 2,
"jobs_id": "3d25eb5b-8663-4e08-b1e4-8f1e80079cab",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "1a9a8092-c1a2-4fa6-86d7-36b06cb54967",
"supplier_company_code": "sample string 6",
"user_id": "080c7bba-69f4-47fa-a038-49389d79eca5",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-09-18T17:32:04.0739821+00:00",
"date_update": "2026-09-18T17:32:04.0739821+00:00",
"date_delivery": "2026-09-18T17:32:04.0739821+00:00",
"confirmed_date_delivery": "2026-09-18T17:32:04.0739821+00:00",
"delivery_db_address_id": "2aa81fd2-da8e-4ab6-b03e-ac3edb5ec4d1",
"approved_by_user_id": "ea287048-3bb3-41b5-92c6-c6ae5046bb9c",
"approved_by_user_code": "sample string 18",
"technical_user_id": "2830dd35-e81d-4e54-ae3e-ba74325ff014",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "2e0b7955-7d55-4fcf-9028-2e52f805c964",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "2ce5a278-0f2d-4616-bf4c-0d2960bf99c3",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-09-18T17:32:04.0739821+00:00"
},
"article_id": "51a0e9fd-713a-471e-b759-d7aa78da2990",
"article_code": "sample string 5",
"article": {
"id": "a66ffd9b-69ba-406e-a75c-b5f68bc66693",
"article_category_id": "c179f5aa-a6b7-42d1-81f3-c2e33d48b630",
"article_category": {
"id": "998c40bd-f9fc-459b-a62e-63166e8d14ae",
"parent_id": "48c67bbf-0b64-439d-a263-9a5c1f292a96",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-09-18T17:32:04.0739821+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "0edcfae4-59d3-46fb-8c9f-c2353694b119",
"article_group_1_code": "sample string 5",
"article_group_2_id": "4e5c91b3-4cc5-41a9-8412-9f4b1726ea5a",
"article_group_2_code": "sample string 7",
"article_group_3_id": "d6158f25-c947-4b35-949d-68abc4e9c88b",
"article_group_3_code": "sample string 9",
"article_group_4_id": "d409bd44-4a05-43d3-9870-6dd190b3d52f",
"article_group_4_code": "sample string 11",
"article_group_5_id": "e9f0bc95-0318-42a4-ac18-a17e061f0c9e",
"article_group_5_code": "sample string 13",
"article_group_6_id": "5ebd2587-84af-405e-8de9-cbec1f59a842",
"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-18T17:32:04.0739821+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-18T17:32:04.0739821+00:00",
"date_update": "2026-09-18T17:32:04.0739821+00:00",
"modified_dateutc": "2026-09-18T17:32:04.0739821+00:00",
"article_color_id": "ec425647-aa10-40a7-a6c2-5d1fe2be6278",
"article_color_code": "sample string 38",
"article_color": {
"id": "77882fb5-579d-4105-89a7-e1b0553a5221",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-09-18T17:32:04.0739821+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "915e829f-6638-4622-a1be-2c468e3aa7c3",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "170997d5-aaf9-43e5-8e27-5d19ae4f3441",
"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-18T17:32:04.0739821+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.