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": "00238b44-ba50-4743-9f09-818b097b3a3a",
"purchase_order_id": "9bc58d8c-70e8-4f01-a8ae-fdf0ca74045c",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "318e046b-323c-4843-8692-d15374b4ef57",
"id2": 2,
"jobs_id": "e177a5cf-0ec1-47ec-9609-976f103c57b7",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "69757f5f-d580-4790-94a8-603f4438555c",
"supplier_company_code": "sample string 6",
"user_id": "ef0ac59d-9783-41fc-a87d-008e602cd470",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-09-08T05:04:33.075616+00:00",
"date_update": "2026-09-08T05:04:33.075616+00:00",
"date_delivery": "2026-09-08T05:04:33.075616+00:00",
"confirmed_date_delivery": "2026-09-08T05:04:33.075616+00:00",
"delivery_db_address_id": "421f257a-e561-4984-8732-b0f49defc507",
"approved_by_user_id": "014880ba-5cfb-42f8-92ab-d4f4d04016e5",
"approved_by_user_code": "sample string 18",
"technical_user_id": "deb296f9-aa66-47c6-9f67-6ebf2afc6383",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "342de963-20c0-47b3-9d63-485700db3434",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "526dfea4-24a3-4cd7-b4f5-a031f0409a39",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-09-08T05:04:33.075616+00:00"
},
"article_id": "70a0ac61-46cc-4476-aef0-b998bebb1ce3",
"article_code": "sample string 5",
"article": {
"id": "a6bf734d-e730-48b3-8969-b5d89e1b5349",
"article_category_id": "fd7e43cb-e996-48fd-b332-338bf30d7fb2",
"article_category": {
"id": "b5e8fa0e-5409-4349-aeca-843b688c1abc",
"parent_id": "e21df6ba-b2e2-4f98-aac3-d15e2c761c72",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-09-08T05:04:33.075616+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "8198602a-c0bd-4a6f-b8f8-13e8d842c2e7",
"article_group_1_code": "sample string 5",
"article_group_2_id": "f1a537e1-8d49-4f01-a469-d1ebabe2452e",
"article_group_2_code": "sample string 7",
"article_group_3_id": "684df3f0-f184-4152-ae0a-8a65858ff8fe",
"article_group_3_code": "sample string 9",
"article_group_4_id": "b9ad2ac2-12fb-4ea3-908e-e6a0639455fd",
"article_group_4_code": "sample string 11",
"article_group_5_id": "1fcccfe6-b902-4a6f-b8b3-90d2770d220f",
"article_group_5_code": "sample string 13",
"article_group_6_id": "ebcf5ea7-3ae4-476a-8b80-a6ba5b99d481",
"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-08T05:04:33.075616+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-08T05:04:33.075616+00:00",
"date_update": "2026-09-08T05:04:33.075616+00:00",
"modified_dateutc": "2026-09-08T05:04:33.075616+00:00",
"article_color_id": "72746a40-a8f1-4ede-8569-7703b161d8ac",
"article_color_code": "sample string 38",
"article_color": {
"id": "5eba9e8e-1469-4476-ab95-e0f9856e3db4",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-09-08T05:04:33.075616+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "1a017f9e-5107-4079-b62b-270cc60e7d52",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "19ec23f3-43c6-4082-bbcc-98a0e0c823e3",
"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-08T05:04:33.075616+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.