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": "3709b95b-950e-4d28-9386-71b89c3acbc9",
"purchase_order_id": "1607234c-a8d6-4f7e-859a-cf2d6ced9eb9",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "ffda282e-24e9-4f29-84e6-aff846714a9f",
"id2": 2,
"jobs_id": "f66fa70f-b41b-4404-ae11-8687b0dff69d",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "c725fae8-4037-4837-82a1-fd7ea5312b39",
"supplier_company_code": "sample string 6",
"user_id": "42885e33-3092-4194-b765-2439da62ba03",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-08-27T14:20:59.3298135+00:00",
"date_update": "2026-08-27T14:20:59.3298135+00:00",
"date_delivery": "2026-08-27T14:20:59.3298135+00:00",
"confirmed_date_delivery": "2026-08-27T14:20:59.3298135+00:00",
"delivery_db_address_id": "4583d58f-1922-47a5-88b9-e4614395301f",
"approved_by_user_id": "87a13fc4-fe65-4d8c-9daa-29b7c5151081",
"approved_by_user_code": "sample string 18",
"technical_user_id": "9a0d4758-edce-4b8b-8187-ec7af4cf5d73",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "12dcb470-80de-4331-8267-d24203a8daaa",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "350b8fcf-280c-43c4-b943-8da81a7c9711",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-08-27T14:20:59.3298135+00:00"
},
"article_id": "81a63462-64f6-4802-a2ab-c88b5b5064ff",
"article_code": "sample string 5",
"article": {
"id": "3b0a623e-573b-4fa3-84b9-211f16cb9e4f",
"article_category_id": "43271b0a-d73d-469f-9bb1-8f11c6fba25c",
"article_category": {
"id": "a22a669a-1c61-444f-8221-aeddd81762fc",
"parent_id": "492099e0-8f38-42ce-b9ee-4eae0266c18a",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-08-27T14:20:59.3298135+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "1e246916-a67a-402e-9783-ccb1db812f88",
"article_group_1_code": "sample string 5",
"article_group_2_id": "b82368e9-0c5b-4b63-8b70-925f0be08df2",
"article_group_2_code": "sample string 7",
"article_group_3_id": "4c917d53-2ff4-46ed-a6cf-787ebb95fac7",
"article_group_3_code": "sample string 9",
"article_group_4_id": "14f718bf-0382-4cec-85ec-121b6ef1cee8",
"article_group_4_code": "sample string 11",
"article_group_5_id": "be8b7417-f4dd-4bee-be06-8941a85193db",
"article_group_5_code": "sample string 13",
"article_group_6_id": "ef79c0a0-3a65-4f96-b57c-0e66f40b8055",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-08-27T14:20:59.3298135+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-08-27T14:20:59.3298135+00:00",
"date_update": "2026-08-27T14:20:59.3298135+00:00",
"modified_dateutc": "2026-08-27T14:20:59.3298135+00:00",
"article_color_id": "f5f9c7ff-8408-4d32-ad1d-4d28d04e5772",
"article_color_code": "sample string 38",
"article_color": {
"id": "48890456-d431-482f-ab8f-127ab091d2db",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-08-27T14:20:59.3298135+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "250ecf63-60b9-44e3-a720-0b4323cde010",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "05d9f158-1318-4094-aa50-3300b705d8e5",
"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-08-27T14:20:59.3298135+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.