Skip to content

Apply Delta to Selections

This route lets you apply deltas (inventory count changes) to selections in the machine in the form of changes. This is useful for handling shipment scenarios where you don't care what the starting on-hand count is, only that you want to add or remove inventory from whatever is currently reported. Changes done this way will generate inventory adjustment records that will allow you to accurately track changes over time.

Endpoint {base-url}/selections/apply-delta
Verb POST

Request Body

{
  "body": [{
    "selectionId": 3345,
    "delta": -2
  }]
}

Returns

On Success

The updated selections.

Response Body

[
  {
    "id": 3345,
    "machineId": 418,
    "productId": 424,
    "price": 0.7,
    "invoicePrice": 0.0,
    "restockTo": 10,
    "depth": 10,
    "count": 7,
    "isActive": false,
    "alertLevel": null,
    "restockAt": null,
    "freeCount": 0,
    "tax": 0.0,
    "commission": 0.0,
    "selectionNumber": "1",
    "friendlyNumber": "1"
  }
]