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": "a0518670-6881-483f-94c0-92d179a01d06",
"purchase_order_id": "f4a6814b-ec3c-451c-a1ed-50db0c6c3b61",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "484368b8-700a-4e47-a136-16884e210960",
"id2": 2,
"jobs_id": "be98bf4a-df73-49af-a8e3-86070185bacb",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "29a09b6a-361d-4c03-a1ab-b31d52f0ce76",
"supplier_company_code": "sample string 6",
"user_id": "10d63718-e8d1-4cb9-8a49-0148e6bb5698",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-05-01T05:40:03.9975551+00:00",
"date_update": "2026-05-01T05:40:03.9975551+00:00",
"date_delivery": "2026-05-01T05:40:03.9975551+00:00",
"confirmed_date_delivery": "2026-05-01T05:40:03.9975551+00:00",
"delivery_db_address_id": "27d44034-f2f1-4a30-8e8c-6e6bc4f7c129",
"approved_by_user_id": "7cc8d86c-1b40-4a5f-bea1-1f648b5eaf93",
"approved_by_user_code": "sample string 18",
"technical_user_id": "426209bc-58c4-4c06-89d1-06e86891448e",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "ad7ffacf-6547-42f4-b2c2-2b44413e82df",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "94a5f089-739b-4bdc-ad3e-7db73af8071a",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-05-01T05:40:03.9975551+00:00"
},
"article_id": "c4c936a4-f26f-4ad2-8b97-f4bcb7c9eabc",
"article_code": "sample string 5",
"article": {
"id": "f1550d3f-e562-4b98-bd56-15f2f8fe2eb5",
"article_category_id": "c25f28a0-473d-427f-9f53-9413eeac7734",
"article_category": {
"id": "7393a482-686b-4475-bb13-b42ac6fb5e5b",
"parent_id": "acd96ada-c78f-4585-9433-916486584036",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-05-01T05:40:03.9975551+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "d767b593-9194-4afe-9706-c8cfc52dc0a3",
"article_group_1_code": "sample string 5",
"article_group_2_id": "e69d7837-9129-42f1-9fb8-be86e13a306f",
"article_group_2_code": "sample string 7",
"article_group_3_id": "9d106d6a-b907-446c-82a8-8e28467056e8",
"article_group_3_code": "sample string 9",
"article_group_4_id": "f75d624c-d8b8-4874-a704-83ec2b4d1a44",
"article_group_4_code": "sample string 11",
"article_group_5_id": "82cca521-4a66-43b9-b719-4a06a0abe23f",
"article_group_5_code": "sample string 13",
"article_group_6_id": "35b2f412-be60-4a18-ab45-6205188baf6d",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-05-01T05:40:03.9975551+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-05-01T05:40:03.9975551+00:00",
"date_update": "2026-05-01T05:40:03.9975551+00:00",
"modified_dateutc": "2026-05-01T05:40:03.9975551+00:00",
"article_color_id": "a5f47127-6547-4558-87e9-fba2204202a5",
"article_color_code": "sample string 38",
"article_color": {
"id": "ce998547-80a6-488a-a312-b5e00763cece",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-05-01T05:40:03.9975551+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "4f599359-cd38-4308-85b1-70cd3c2113fb",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "29c88055-e6c9-40c8-8c94-77603aa68105",
"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-05-01T05:40:03.9975551+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.