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": "099f2f30-b11f-4624-be29-4fd5f3a81281",
"purchase_order_id": "7b1a0847-b3c7-4d89-9266-465ae076b7dd",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "a49bd53f-a105-4199-9283-b6c706f83a95",
"id2": 2,
"jobs_id": "4e91704e-4740-4888-9edd-6c1834de3c04",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "10b96ff3-66ed-4b43-b5a4-c3b952c20a36",
"supplier_company_code": "sample string 6",
"user_id": "881c13fd-c0a5-4bb2-97e9-300668d11c03",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-06-05T18:05:52.7489598+00:00",
"date_update": "2026-06-05T18:05:52.7489598+00:00",
"date_delivery": "2026-06-05T18:05:52.7489598+00:00",
"confirmed_date_delivery": "2026-06-05T18:05:52.7489598+00:00",
"delivery_db_address_id": "dc66d406-3600-4cf0-966f-0bb171a1ecd7",
"approved_by_user_id": "f91de8d8-4378-4eda-a3be-b984c7c40154",
"approved_by_user_code": "sample string 18",
"technical_user_id": "ea1f9937-45d2-4388-81c8-16dbfe7dcd4d",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "0f250a48-a45b-4ad8-ab9a-4b16a05d3d59",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "caffa932-11e4-4f08-8ce4-69afa2d73db9",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-06-05T18:05:52.7489598+00:00"
},
"article_id": "d0e452ac-95f6-4436-84e3-c32ce225bd64",
"article_code": "sample string 5",
"article": {
"id": "ccae374b-5e94-4ca1-9dd0-79060c4db162",
"article_category_id": "87497e8d-3a72-466e-9891-1764e76aadc4",
"article_category": {
"id": "15d4265b-64c3-46a1-bfef-dfac684de7f3",
"parent_id": "d5340fdc-2a87-4993-9b23-dda9f0c3e0b2",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-06-05T18:05:52.7489598+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "7d0d97c8-992c-4785-8764-418074ea4aca",
"article_group_1_code": "sample string 5",
"article_group_2_id": "c509be2e-7c79-442b-9458-c84d9dbbdcae",
"article_group_2_code": "sample string 7",
"article_group_3_id": "66aaac23-ca85-4a10-9d3b-e096260a7f04",
"article_group_3_code": "sample string 9",
"article_group_4_id": "3cd35fac-9139-402d-9d60-47d859c1a704",
"article_group_4_code": "sample string 11",
"article_group_5_id": "8e12b2a4-fddb-4a3f-ad8e-38a13ce67b78",
"article_group_5_code": "sample string 13",
"article_group_6_id": "f1d8a81a-5138-4afd-8213-1dbce4d363b7",
"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-05T18:05:52.7489598+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-05T18:05:52.7489598+00:00",
"date_update": "2026-06-05T18:05:52.7489598+00:00",
"modified_dateutc": "2026-06-05T18:05:52.7489598+00:00",
"article_color_id": "35117451-c8ee-4cec-85db-4bbc1787493a",
"article_color_code": "sample string 38",
"article_color": {
"id": "377c7301-452c-4925-91f8-f6c2be011085",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-06-05T18:05:52.7489598+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "6e52da2d-c717-474d-b721-80a289d6efa7",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "1337ff0a-72e7-4675-95cc-20a19b9d3686",
"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-05T18:05:52.7489598+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.