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": "4f8fcaba-666a-4949-a1bb-c2c35f71ab70",
"purchase_order_id": "7f11f47c-0a8b-4a21-9bc6-3efad0a1c9fb",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "1de7c722-4e02-455e-ae6e-7925a3fcb45c",
"id2": 2,
"jobs_id": "c5b33b07-65aa-428e-905e-ba2515a9690e",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "7261742e-326e-405c-a8b2-d448f9a525e2",
"supplier_company_code": "sample string 6",
"user_id": "210784c0-6317-4112-8cd3-b82d7bb538fd",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-06-11T13:44:45.9270951+00:00",
"date_update": "2026-06-11T13:44:45.9270951+00:00",
"date_delivery": "2026-06-11T13:44:45.9270951+00:00",
"confirmed_date_delivery": "2026-06-11T13:44:45.9270951+00:00",
"delivery_db_address_id": "c4a458c8-0b0e-4705-a582-4c18c4598ebd",
"approved_by_user_id": "2b53b6cb-2c99-41bf-b505-8e7c52fc6e05",
"approved_by_user_code": "sample string 18",
"technical_user_id": "dddcf219-de71-4ee8-8892-43066321e563",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "7adf61c5-81b6-4927-9227-9268bb165664",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "2ac0145c-39fa-44a0-83b1-d172d196c80b",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-06-11T13:44:45.9270951+00:00"
},
"article_id": "9201f7c9-34e9-4922-ab49-a3b332c90a04",
"article_code": "sample string 5",
"article": {
"id": "858e229c-ebcc-4175-8c92-4f51ca002b79",
"article_category_id": "268c3ebd-988d-4874-a466-dab83e435c86",
"article_category": {
"id": "84666bef-6e5f-48d2-a0f2-7fa905bebef3",
"parent_id": "ddde87a8-545e-45e6-b0e6-099c91268898",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-06-11T13:44:45.9270951+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "a8d43284-7f38-4e75-b53a-2246566531cb",
"article_group_1_code": "sample string 5",
"article_group_2_id": "4e4a5ca7-f5b3-42df-98c8-7769e367e902",
"article_group_2_code": "sample string 7",
"article_group_3_id": "bc3ec03b-31fc-4289-8a84-675fdb7e5a68",
"article_group_3_code": "sample string 9",
"article_group_4_id": "fa691e54-ea86-4238-8a11-3d532f9d1e1a",
"article_group_4_code": "sample string 11",
"article_group_5_id": "4f945a0d-7f4b-4a30-8e6d-43993c84590c",
"article_group_5_code": "sample string 13",
"article_group_6_id": "a76f9f62-beeb-4398-a22a-76c9854ab594",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-06-11T13:44:45.9270951+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-06-11T13:44:45.9270951+00:00",
"date_update": "2026-06-11T13:44:45.9270951+00:00",
"modified_dateutc": "2026-06-11T13:44:45.9270951+00:00",
"article_color_id": "67662152-b627-4a33-8731-30d2b896646f",
"article_color_code": "sample string 38",
"article_color": {
"id": "186c814b-1bf8-4455-a51e-e79cbd2dd20e",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-06-11T13:44:45.9270951+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "d4a9f33a-16f0-4273-ab49-ccf1b23fc011",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "cf626f9f-10b9-4ca9-b444-9db41dc3f1aa",
"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-06-11T13:44:45.9270951+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.