Inventory Update Webhook

Inventory Update Webhook

This webhook will be called anytime the inventory quantity changes. The warehouse returned in the webhook body will always be the warehouse that the movement occurred in.

For reference Inventory is on_hand - allocated + sell_ahead - reserve, so the webhook you are recieving could be triggered by changes in any of these.

Webhook Body:

{
    "account_id": 63898,
    "account_uuid": "QWNjb3VudDo2Mzg5OA==",
    "webhook_type": "Inventory Update",
    "inventory": [
        {
            "sku": "string",
            "inventory": "113",
            "backorder_quantity": "0",
            "on_hand": "148",
            "virtual": false,
            "sell_ahead": 20,
            "qty_in_totes": 1,
            "reserve": 45,
            "updated_warehouse": {
                "warehouse_id": 12345,
                "warehouse_uuid": "V2FyZWhvdXNlJHIKby",
                "identifier": "Primary",
                "inventory": "13",
                "backorder_quantity": "0",
                "on_hand": "48",
                "sell_ahead": 10,
                "qty_in_totes": 1,
                "reserve": 25,
                "non_sellable": 250
            },
            "non_sellable": 1250
        }
    ]
}

Response:

{
  "code": "200",
  "Message": "Success"
}