Hello, is there a way for me to know the quantity of a catalog item variation before the update? The documentation states:
State adjustments
The inventory.count.updated
webhook event also sends notifications when a quantity of item variations changes state. For state adjustments, inventory.count.updated
sends a single notification containing two inventory counts: one count that describes the quantity and state before the state change and one that describes the quantity and state after the state change.
Here is the sample data that Square provides:
{
"type": "inventory.count.updated",
"event_id": "123456",
"created_at": "2019-05-14T17:51:44Z",
"merchant_id": "MERCHANT123",
"data": {
"inventory_counts": [
{
"location_id": "locationToken",
"catalog_object_id": "XYZ456",
"catalog_object_type": "ITEM_VARIATION",
"state": "IN_STOCK",
"quantity": "12.375",
"calculated_at": "2019-05-14T17:51:27Z"
}
]
}
}
Where would I be able to find the quantity of the item before the state change?
I need to know whether or not the updated quantity was an addition or subtraction to the current inventory. Thank you.