Hi @Bryan-Square 
I’m using the Batch retrieve catalog objects and get this flow for one item:
- I get this
{
"type": "ITEM",
"id": "LECXFQVZNYRDKHHVFJW6JM5Z",
"updated_at": "2023-04-15T12:02:02.421Z",
"created_at": "2020-12-08T00:10:07.813Z",
"version": 1681560122421,
"is_deleted": false,
"present_at_all_locations": false,
"present_at_location_ids": [
"L39XB0RHPF2V2",
"L6ZN306P4SCQN",
"L9TJVT3GX4345",
"LANJ0SS9RADJG",
"LRG6B9M9H9B8T",
"LX985242330VF"
],
"item_data": {
"name": "Chocolate Croissant",
"description": "Croissant rolled around dark chocolate.\n**Contains: Wheat, milk, egg, soy.",
"is_taxable": true,
"visibility": "PRIVATE",
"category_id": "TI7K5O5MTSKHTO57VMV5LTWK",
"tax_ids": [
"LLYAYTAKDTC4KOJLQB7UPLXK",
"XK5BQPHV2VMCZZEXCXTN3YOD",
"ABZRNMSICBEM3Y2KMRT6TPTH",
"SZ44VR4TQW4W7KDO5EFQ3TE2",
"2QGBXQ3E7MEDTM3EQGQN74ET"
],
"variations": [
{
"type": "ITEM_VARIATION",
"id": "HQBSTODZLSVRAWCJ7YOEFKA5",
"updated_at": "2023-04-15T12:02:02.421Z",
"created_at": "2020-12-08T00:10:07.813Z",
"version": 1681560122421,
"is_deleted": false,
"present_at_all_locations": false,
"present_at_location_ids": [
"LANJ0SS9RADJG",
"L9TJVT3GX4345",
"LX985242330VF",
"L6ZN306P4SCQN",
"L39XB0RHPF2V2",
"LRG6B9M9H9B8T"
],
"item_variation_data": {
"item_id": "LECXFQVZNYRDKHHVFJW6JM5Z",
"name": "",
"ordinal": 1,
"pricing_type": "FIXED_PRICING",
"price_money": {
"amount": 410,
"currency": "USD"
},
"sellable": true,
"stockable": true
}
}
],
"product_type": "REGULAR",
"skip_modifier_screen": true,
"ecom_available": false,
"ecom_visibility": "UNINDEXED",
"image_ids": [
"5SDXF66VCH6OBRAVGQGAOMFD"
],
"pickup_fulfillment_preferences_id": "fprefs_127dix14aj4vy7qqx5kp4oit1",
"description_html": "<p>Croissant rolled around dark chocolate.</p><p>**Contains: Wheat, milk, egg, soy.</p>",
"description_plaintext": "Croissant rolled around dark chocolate.\n**Contains: Wheat, milk, egg, soy."
}
},
- then I call Batch retrieve inventory counts
and if I type the ITEM id i get this error:
{
"errors": [
{
"category": "INVALID_REQUEST_ERROR",
"code": "INVALID_VALUE",
"detail": "Variation with ID=LECXFQVZNYRDKHHVFJW6JM5Z must have type ITEM_VARIATION, got ITEM.",
"field": "type"
}
]
}
- So I type the ITEM_VARIATION and get a 200, but it’s empty. How can I know how many units there are in stock if the result of the API call is empty?
thank you