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": "8b9c60e5-fcd0-44aa-851f-da23eccd70f5",
"purchase_order_id": "86dd1d00-1fca-4c4e-9737-36c9d1011761",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "80966790-e679-4f7e-bdbc-a66b7c7f0aa2",
"id2": 2,
"jobs_id": "79ad5871-90e7-4bd3-a8ee-b732a5fedb89",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "3eccfd79-7998-4e5c-8d29-08f6fd623adb",
"supplier_company_code": "sample string 6",
"user_id": "a17733b9-714f-4a92-8be0-780ecac026e8",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-09-14T09:21:59.0801386+00:00",
"date_update": "2026-09-14T09:21:59.0801386+00:00",
"date_delivery": "2026-09-14T09:21:59.0801386+00:00",
"confirmed_date_delivery": "2026-09-14T09:21:59.0801386+00:00",
"delivery_db_address_id": "51502243-2696-46d9-9a08-4f5ab98ec215",
"approved_by_user_id": "3226d06e-e7b5-43fa-832b-fab11024a33a",
"approved_by_user_code": "sample string 18",
"technical_user_id": "e6fb2f1a-bffe-4b49-ade4-1db9370c717f",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "7fa6cc47-f6f0-481c-9031-5e2250e34248",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "17dd74cd-75c0-4f94-8210-da064a5199a7",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-09-14T09:21:59.0801386+00:00"
},
"article_id": "5894a17d-a54a-433a-83b7-5ccdd593025c",
"article_code": "sample string 5",
"article": {
"id": "c8d93b4a-3a52-4b59-95f3-2429c2a209fc",
"article_category_id": "12aa099f-98c4-43b5-b71d-09f4b159105d",
"article_category": {
"id": "d65df7c2-7b7c-4a0e-a3af-a6c4012d2345",
"parent_id": "df8d75c0-8216-40eb-91e0-367ea1db8b03",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-09-14T09:21:59.0801386+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "0db11419-b122-42be-ba85-d756fc240c2c",
"article_group_1_code": "sample string 5",
"article_group_2_id": "1c17dc99-4e70-4fcd-a740-cfa16753e1aa",
"article_group_2_code": "sample string 7",
"article_group_3_id": "569e3d99-d584-4b66-a427-6c61305b9716",
"article_group_3_code": "sample string 9",
"article_group_4_id": "aff37d23-3baa-4717-98f6-cde4d8711df4",
"article_group_4_code": "sample string 11",
"article_group_5_id": "e9fad318-87a1-4c6b-b00a-8ed4b67fd927",
"article_group_5_code": "sample string 13",
"article_group_6_id": "6891c54e-f289-40ad-833f-4c00022c3dbc",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-09-14T09:21:59.0801386+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-09-14T09:21:59.0801386+00:00",
"date_update": "2026-09-14T09:21:59.0801386+00:00",
"modified_dateutc": "2026-09-14T09:21:59.0801386+00:00",
"article_color_id": "61873d51-dd40-4a22-873f-e87efd227158",
"article_color_code": "sample string 38",
"article_color": {
"id": "f1341bbe-030a-4f1f-88a2-f99f28d4dc72",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-09-14T09:21:59.0801386+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "821fbca5-b360-4274-8146-a93173f4b0f2",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "4222a185-35e1-4655-b64d-0b67d2bf09e0",
"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-09-14T09:21:59.0801386+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.