Skip to content

Update Selections

Updates the specified selections. Changes to the inventory count will result in the generation of an inventory adjustment record that will allow for historical tracking of inventory over time. Changes that impact machine operation will result in the machines planogram changed flag being set and the machine will get the changes after it's next scheduled check-in - typically within 45 minutes (but depending on your organization preferences).

Endpoint {base-url}/selections
Verb PATCH

Request Body

{
  "body": [{
    "id": 3347,
    "machineId": 418,
    "productId": 441,
    "price": 0.7000,
    "invoicePrice": 0.0001,
    "restockTo": 10,
    "depth": 10,
    "count": 5,
    "isActive": false,
    "alertLevel": 1,
    "restockAt": 1,
    "freeCount": 1,
    "tax": 0.1,
    "commission": 0.1,
    "selectionNumber": 6,
    "friendlyNumber": "5"
  }]
}

Returns

On Success

The updated selections.

Response Body

[{
    "id": 3347,
    "machineId": 418,
    "productId": 441,
    "price": 0.7000,
    "invoicePrice": 0.0001,
    "restockTo": 10,
    "depth": 10,
    "count": 5,
    "isActive": false,
    "alertLevel": 1,
    "restockAt": 1,
    "freeCount": 1,
    "tax": 0.1,
    "commission": 0.1,
    "selectionNumber": 6,
    "friendlyNumber": "5"
}]