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": "a4d31a14-8006-4ae3-a49e-b65734dda110",
"purchase_order_id": "d3fdad7a-276a-4d04-aab5-03e6890cd1f6",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "cf6a108f-59a1-46c6-bdfc-9549a30d7375",
"id2": 2,
"jobs_id": "54f8a6e2-ae69-4c52-9119-4221a786c49f",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "c8e77d55-05ca-42fa-b4db-8ee70c14cd32",
"supplier_company_code": "sample string 6",
"user_id": "47ca63ae-49a6-4a59-8bcf-4d908b136a4f",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-10-19T10:11:33.6305161+00:00",
"date_update": "2026-10-19T10:11:33.6305161+00:00",
"date_delivery": "2026-10-19T10:11:33.6305161+00:00",
"confirmed_date_delivery": "2026-10-19T10:11:33.6305161+00:00",
"delivery_db_address_id": "a47b5604-d428-48bd-9657-afde48ca0dab",
"approved_by_user_id": "a2b05d3a-d2d1-4edc-828f-ee549d572afd",
"approved_by_user_code": "sample string 18",
"technical_user_id": "1a1253de-a7f9-4fe2-bb90-0e9e84de5ae5",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "a4ad7a8a-2a96-43b1-ae14-db29738eb5b2",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "c81995d0-675f-45d9-bd42-8c95f9370cc4",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-10-19T10:11:33.6305161+00:00"
},
"article_id": "98c63b13-53ab-415c-b5ee-bddb577ff5f1",
"article_code": "sample string 5",
"article": {
"id": "a73d4731-c05e-461f-970a-69502f83ba7e",
"article_category_id": "045dc8ea-5eea-4ff8-9b5e-c047857157d1",
"article_category": {
"id": "df8a7181-accc-48e4-bb7f-fe1a21c1fa66",
"parent_id": "8d628eca-68df-46f0-9623-b771e91e7268",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-10-19T10:11:33.6497016+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "b19fdb82-4aaf-4508-a5c8-913fac227a0f",
"article_group_1_code": "sample string 5",
"article_group_2_id": "11623157-a05d-477f-97d0-b62846995d2e",
"article_group_2_code": "sample string 7",
"article_group_3_id": "a2e99821-5ffd-42f8-9110-2670a08b9df7",
"article_group_3_code": "sample string 9",
"article_group_4_id": "fddf4083-3692-461c-895e-dd50f36adaf3",
"article_group_4_code": "sample string 11",
"article_group_5_id": "d2473803-315a-408d-a720-b4d85da17725",
"article_group_5_code": "sample string 13",
"article_group_6_id": "1a965922-7f2a-4d97-926e-5cd72b970604",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-10-19T10:11:33.6497016+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-10-19T10:11:33.6617951+00:00",
"date_update": "2026-10-19T10:11:33.6617951+00:00",
"modified_dateutc": "2026-10-19T10:11:33.6617951+00:00",
"article_color_id": "20ead13c-2ebe-445c-a5ed-350408d870d6",
"article_color_code": "sample string 38",
"article_color": {
"id": "018cbbc2-422b-47ac-9f60-dfd7d3a8ebb0",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-10-19T10:11:33.6617951+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "7a4943c4-988b-4fe3-a23e-a2ea1901f19e",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "145b9fcf-9902-4fc4-9301-3130feb3f6b3",
"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-10-19T10:11:33.6617951+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.