# inventoryCount (https://developer.godaddy.com/en/docs/references/rest/catalog/inventory/queries/inventoryCount)

***

title: inventoryCount
description: "Query `inventoryCount` on the catalog subgraph (Inventory)."
full: true
----------

query

Requires `commerce.product:read`.

Query `inventoryCount` on the catalog subgraph (Inventory).

## Required headers

| Header       | Required | Description                                                                                                                     |
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `x-store-id` | Yes      | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: `extensions.code: "UNAUTHENTICATED"`. |

Go to [Authentication](https://developer.godaddy.com/docs/api-users/auth) for credential setup.

## Arguments

* `locationId` `String!` **required**
* `skuId` `String!` **required**
* `type` `String` **optional**

## Possible returns

* `InventoryCount` `[InventoryCount!]` — Represents the quantity of a SKU in a specific state at a particular time and location.

- `createdAt` `DateTime!` **non-null** — The timestamp of when the inventory count was created.
- `id` `ID!` **non-null** — The globally-unique ID of the inventory count object.
- `location` `Location` **nullable** — The Location associated with the Inventory Count.
- `onHand` `Int` **nullable** — The on-hand inventory count (available + committed) for this SKU and location.
- `quantity` `Int` **nullable** — The count of the inventory.
- `sku` `SKU` **nullable** — The SKU associated with the Inventory Count.
- `type` `String!` **non-null** — The type of inventory count, one of `AVAILABLE`, `COMMITTED`, `BACKORDERED`.
- `updatedAt` `DateTime!` **non-null** — The timestamp of when the inventory count was updated.
- `SKU` `SKU` **nullable** deprecated — The SKU associated with the Inventory Count. Deprecated: Use sku instead.
