Updates the purchase order order lines with the specified key
Request Information
URI Parameters :
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
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": "c109e9cb-e5dc-47a9-8efb-b06fcc550dd4",
"purchase_order_id": "6e4ee4ff-b1a9-4245-916d-aae81e56d2a6",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "92298aaa-f59c-4a45-b70d-8172bbf31e1e",
"id2": 2,
"jobs_id": "fca71355-06eb-4ff3-ab39-6d848153e922",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "c01bb60f-ca84-4e55-ab84-d0174878115a",
"supplier_company_code": "sample string 6",
"user_id": "061b282e-be94-4004-9fdc-ca137ad9c91c",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-06-26T07:21:06.741183+00:00",
"date_update": "2026-06-26T07:21:06.741183+00:00",
"date_delivery": "2026-06-26T07:21:06.741183+00:00",
"confirmed_date_delivery": "2026-06-26T07:21:06.741183+00:00",
"delivery_db_address_id": "4f946f15-364f-40a0-b5ab-d47a0b2d8635",
"approved_by_user_id": "4b714f96-8e12-4b95-a8f4-a37f8f9f6aa7",
"approved_by_user_code": "sample string 18",
"technical_user_id": "0af36980-d6e6-47d8-9636-a66451c4d98a",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "43289096-9bb3-4fd4-9ce0-78a24807c340",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "8ae16e30-7c7d-4a19-acf8-7b458af50175",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-06-26T07:21:06.741183+00:00"
},
"article_id": "799a2b24-d5e4-461e-9867-8db2fe37f285",
"article_code": "sample string 5",
"article": {
"id": "bfb1edbd-c14a-4d64-bc36-ef475d0be9d9",
"article_category_id": "57849966-fc48-4c5d-a05b-348a73bc8caa",
"article_category": {
"id": "130a0b3d-6a19-4454-b7c6-04cdad07cc0c",
"parent_id": "35e7cab6-119d-4e72-b295-387827578cfb",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-06-26T07:21:06.741183+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "9f6b686f-3fab-489b-aa70-681e888f3c84",
"article_group_1_code": "sample string 5",
"article_group_2_id": "5b07f659-402a-4acf-b687-cc5b212595a9",
"article_group_2_code": "sample string 7",
"article_group_3_id": "3558e496-0b2c-4eb8-b7f6-9072e557c544",
"article_group_3_code": "sample string 9",
"article_group_4_id": "87434dc6-a282-46dc-bc43-9f22746ed82b",
"article_group_4_code": "sample string 11",
"article_group_5_id": "8457f46b-8ab0-45c3-8cf6-72caa9369177",
"article_group_5_code": "sample string 13",
"article_group_6_id": "57b8f96b-f621-4ba9-90f6-d0f2e89369dc",
"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-26T07:21:06.741183+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-26T07:21:06.741183+00:00",
"date_update": "2026-06-26T07:21:06.741183+00:00",
"modified_dateutc": "2026-06-26T07:21:06.741183+00:00",
"article_color_id": "53c89054-2f38-430d-a01d-63e0086ec1ed",
"article_color_code": "sample string 38",
"article_color": {
"id": "d924725b-7da4-473e-bce1-7d7e4a8efc94",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-06-26T07:21:06.741183+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "00cfd961-995a-48d4-8e90-27e3658aa7d6",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "54fa83d0-d266-49d4-87bd-35a7cdcda732",
"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-26T07:21:06.741183+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.