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": "ba05727c-b167-400a-8d0d-382bf95207ec",
"purchase_order_id": "235592ae-fcb1-4f99-b9d0-c08fe75f32f2",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "b35f0951-2b9a-40cd-8d72-9dcc514fb945",
"id2": 2,
"jobs_id": "a0113fd9-6ab8-4884-a067-cb00bdb7e2f1",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "1c13bb87-b7d4-4d7d-be80-0688dbed9614",
"supplier_company_code": "sample string 6",
"user_id": "25934b80-bb9e-435e-b49c-751e600cccb5",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2025-12-21T15:37:17.242226+00:00",
"date_update": "2025-12-21T15:37:17.242226+00:00",
"date_delivery": "2025-12-21T15:37:17.242226+00:00",
"confirmed_date_delivery": "2025-12-21T15:37:17.242226+00:00",
"delivery_db_address_id": "05f6bd69-9909-4948-88fe-d6fc5fd28fd7",
"approved_by_user_id": "3410a751-a6bd-4413-a152-4d237a06d7ae",
"approved_by_user_code": "sample string 18",
"technical_user_id": "7501b00e-f609-4068-aa52-ec34e77d7b03",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "4a4a2134-efc2-4ba8-9de6-07fc4fa00aa2",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "c03d6403-37b2-460f-a359-cf1484fbb9cb",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2025-12-21T15:37:17.242226+00:00"
},
"article_id": "16887568-986a-4d30-9f0c-df157e61b08f",
"article_code": "sample string 5",
"article": {
"id": "87e0e980-9117-44eb-9bc3-a66c33667428",
"article_category_id": "3aa68b74-664a-4b4d-9d41-aeede5e4a0e4",
"article_category": {
"id": "3bcbe2a9-8507-4c7e-a8f2-72f210aa2903",
"parent_id": "529cf8ae-2aae-4c5e-b0ef-8cf07b663192",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2025-12-21T15:37:17.242226+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "ff918a6d-d6cb-45ca-ac0f-e9d97eae12ee",
"article_group_1_code": "sample string 5",
"article_group_2_id": "da582b01-5c5c-4123-8617-2db3492324d3",
"article_group_2_code": "sample string 7",
"article_group_3_id": "e86e757a-92a2-4354-b945-0569c2e6946e",
"article_group_3_code": "sample string 9",
"article_group_4_id": "180101d3-db00-4d80-94ef-38fd1e231cee",
"article_group_4_code": "sample string 11",
"article_group_5_id": "4b137df4-c2b5-454e-a8dd-b6ec85829005",
"article_group_5_code": "sample string 13",
"article_group_6_id": "2ebeca7b-46e4-442b-8583-113b96233469",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2025-12-21T15:37:17.242226+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": "2025-12-21T15:37:17.242226+00:00",
"date_update": "2025-12-21T15:37:17.242226+00:00",
"modified_dateutc": "2025-12-21T15:37:17.242226+00:00",
"article_color_id": "3e45ac5f-dc89-499c-b500-8bb2883660d9",
"article_color_code": "sample string 38",
"article_color": {
"id": "c2a61e41-52fd-481a-9424-2125eb38009c",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2025-12-21T15:37:17.242226+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "46c39213-a4d9-4eb2-9bb9-964e02bd1bb3",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "7c03e2f2-5c63-4cba-bab3-79920237d18a",
"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": "2025-12-21T15:37:17.242226+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.