> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AddToInventoryCountCommandRequestInput

> Adds the counted quantity of an item to the inventory of a standard warehouse. The item must keep stock of its own: bills of materials, variation parents and items whose stock is kept per variation cannot be counted. For an item managed by batch number, best-before date or serial number, add one count per batch number and best-before date, or per serial number. The stock is changed only when the inventory of the warehouse is finished. Send an Idempotency-Key header to make retries safe. - Request



**Kind**: `input`

## Fields

**`warehouseId`**: `ID!` (required)

Unique identifier of the standard warehouse in which the inventory takes place.

---

**`itemId`**: `ID!` (required)

Unique identifier of the counted item.

---

**`quantity`**: `Decimal!` (required)

The counted quantity of the item. Must not be negative; a whole number unless the item is divisible.

---

**`shelfLifeEndDate`**: `DateTime`

The best-before date of the counted stock. Required for items managed by best-before date, not allowed otherwise.

---

**`batchNumber`**: `String`

The batch number of the counted stock. Required for items managed by batch number, not allowed otherwise.

---

**`serialNumber`**: `String`

The serial number of the counted unit. Required for items managed by serial number, not allowed otherwise; the quantity must then be 1.

---

**`idempotencyKey`**: `String`

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.

