Inventory
BatchRetrieveInventoryCounts
Returns current counts for the provided CatalogObjects at the requested Locations.
Results are paginated and sorted in descending order according to their calculated_at timestamp (newest first).
When updated_after is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a "sync" operation, for example in response to receiving a Webhook notification.
post/v2/inventory/counts/batch-retrieve
Request body
Example request
{
"request_body": {
"catalog_object_ids": [
"W62UWFY35CWMYGVWK6TWJDNI"
],
"location_ids": [
"59TNP9SA8VGDA"
],
"updated_after": "2016-11-16T00:00:00.000Z"
}
}Response
Success
Example response
{
"counts": [
{
"calculated_at": "2016-11-16T22:28:01.223Z",
"catalog_object_id": "W62UWFY35CWMYGVWK6TWJDNI",
"catalog_object_type": "ITEM_VARIATION",
"location_id": "59TNP9SA8VGDA",
"quantity": "79",
"state": "IN_STOCK"
}
],
"errors": []
}