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": "5eb02c2b-18a9-4531-abb7-fdb9493f4ce0",
"purchase_order_id": "1c994e10-0e71-4dd9-97b3-2d6b99f6333a",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "a2b45cb3-1b52-4ff9-bd5e-1bb5b9aa427c",
"id2": 2,
"jobs_id": "12fc3ba0-876c-4aee-a1e3-9730da58d69e",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "021fede7-055c-4c7f-89b0-7816ccccb950",
"supplier_company_code": "sample string 6",
"user_id": "50db4859-cfb4-4117-960c-f8ff10f12f30",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-11-29T16:29:51.703762+00:00",
"date_update": "2026-11-29T16:29:51.703762+00:00",
"date_delivery": "2026-11-29T16:29:51.703762+00:00",
"confirmed_date_delivery": "2026-11-29T16:29:51.703762+00:00",
"delivery_db_address_id": "060cd5dd-2fd7-4403-a505-190888ed02a6",
"approved_by_user_id": "345c9917-c99b-4785-9ff6-9ed30904308b",
"approved_by_user_code": "sample string 18",
"technical_user_id": "ef29832c-822a-4c67-a36f-e0f9b7a053ae",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "52064a52-dfb5-43fb-ba06-5763c0866a9d",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "4c3369a8-044e-4c02-897b-43c8c267f4d3",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-11-29T16:29:51.703762+00:00"
},
"article_id": "2fe925b0-1f98-45ca-8b2c-b32a8a28ca5b",
"article_code": "sample string 5",
"article": {
"id": "dae5a2d6-ec6c-42e6-8531-037f6fcbf4f1",
"article_category_id": "25425b44-d268-46a6-a4c1-f7b3ecfb575f",
"article_category": {
"id": "c59b44e3-8554-4d61-86ff-f45de8b58f08",
"parent_id": "0bd2bce7-82fb-4afe-8052-60050447da75",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-11-29T16:29:51.703762+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "b847b0ec-96de-4c9c-a408-34949efb16e1",
"article_group_1_code": "sample string 5",
"article_group_2_id": "f9b3f80a-381a-44db-b2fb-704a9cbc03fa",
"article_group_2_code": "sample string 7",
"article_group_3_id": "65a3e3f5-fef2-4691-a21c-f9080755ada4",
"article_group_3_code": "sample string 9",
"article_group_4_id": "cb907eb7-b1fc-452c-bdb8-ed053b8406d0",
"article_group_4_code": "sample string 11",
"article_group_5_id": "d21b427c-3d5a-41e8-be2f-5dd5db2b5ac3",
"article_group_5_code": "sample string 13",
"article_group_6_id": "04a8b14d-8a75-4611-ae7a-18ac4430ec5d",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-11-29T16:29:51.703762+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-11-29T16:29:51.703762+00:00",
"date_update": "2026-11-29T16:29:51.703762+00:00",
"modified_dateutc": "2026-11-29T16:29:51.703762+00:00",
"article_color_id": "69f74653-b1da-4cd8-b291-0ad952c87e95",
"article_color_code": "sample string 38",
"article_color": {
"id": "93868e2d-f5a7-438e-945c-f874ee364b59",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-11-29T16:29:51.703762+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "44bf0f9b-82ea-4914-a555-a8f5a720ec35",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "d9dff720-76e2-46f6-9c42-204820ff85fc",
"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-11-29T16:29:51.703762+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.