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

# cycleCountPlansAdd

> Add products and bins to a cycle count that hasn't been completed or cancelled, as the app's Add products and Add bins do, including what turns up during the count. Returns one result per product and bin: OK when added; SKIPPED with ALREADY_ADDED when the count already covers it; SKIPPED with NOT_FOUND when the store has no such product or bin or it can't be counted at the count's warehouse, whether malformed, another store's, a coverage product or a bin of another warehouse. Takes 1 to 100 different ids across `productIds` and `storageLocationIds` together; a repeated id counts once. Safe to retry: what is already in the count reads ALREADY_ADDED. Returns null when the store has no live cycle count with this id, whether malformed, deleted or another store's, and changes nothing. Read the count's plans with `cycleCount`. Needs the `inventory_write` scope. Errors: BAD_USER_INPUT when there are no ids or more than 100; CYCLE_COUNT_NOT_EDITABLE (400) when the count is completed or cancelled.

**Required scopes:** [`inventory_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_write)

**Store must have one of:** `IMS`

## Arguments

**cycleCountId** `ID!` *required*

The cycle count to add to.

**productIds** `[ID!]`

Products to count wherever they are stored. Give products, bins or both, up to 100 ids together.

**storageLocationIds** `[ID!]`

Bins to count everything in. Every bin must be at the count's warehouse. Give products, bins or both, up to 100 ids together.

## Returns

**cycleCountPlansAdd** `[CycleCountPlansAddResult](/docs/api-reference/v3/reference/inventory/cycle-count-plans-add-result)`

What `cycleCountPlansAdd` did with each product and bin. It runs while the request waits, so the result is final.

**fields**

**counts** `[BulkCounts!](/docs/api-reference/v3/reference/common/bulk-counts)` *required*

How many items ended each way.

**fields**

**failed** `Int!` *required*

The items that couldn't be changed.

**ok** `Int!` *required*

The items the action changed.

**skipped** `Int!` *required*

The items it didn't apply to.

**total** `Int!` *required*

The items given.

**results** `[\[CycleCountPlansAddItem!\]!](/docs/api-reference/v3/reference/inventory/cycle-count-plans-add-item)` *required*

One per product, then one per bin, each in the order sent; at most 100.

**fields**

**code** `String`

Why the item was skipped or failed: ALREADY\_ADDED, the product or bin is already in the count (`product` or `storageLocation` names it); NOT\_FOUND, the store has no such product or bin, or it can't be counted at the count's warehouse (a malformed id, a deleted or another store's, a coverage product, a bin of another warehouse or of a type a count skips all read this way). Null when it is OK.

**id** `ID!` *required*

The id this item answers, as it was given. A repeated id has one item.

**message** `String`

The same, in words. Null when it is OK.

**product** `[Product](/docs/api-reference/v3/reference/catalog/product)`

The product, when this item is a product the count now covers. Null for a bin, and for a product that wasn't found. Needs the `products_read` scope.

**fields**

**attribute** `[Attribute](/docs/api-reference/v3/reference/catalog/attribute)`

Look up a single attribute on this product by its name, if set.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**fields**

**Arguments**

**name** `String!` *required*

The machine name of the attribute to look up.

**attributes** `[\[Attribute!\]!](/docs/api-reference/v3/reference/catalog/attribute)` *required*

The merchant-defined attributes set on this product.

**barcodes** `[String!]!` *required*

Barcodes associated with this product.

**cost** `[Money](/docs/api-reference/v3/reference/common/money)`

The merchant's unit cost for the product.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the record was created.

**customsDescription** `String`

The plain description of the product that customs officers read, up to 45 characters. Null until one is saved.

**description** `String!` *required*

The product's long-form description.

**dimensions** `[Dimensions](/docs/api-reference/v3/reference/catalog/dimensions)`

The product's length, width, and height, expressed in a single shared unit.

**hsCode** `String`

The Harmonized System code used for customs.

**id** `ID!` *required*

The id of this product.

**image** `[ProductImage](/docs/api-reference/v3/reference/catalog/product-image)`

The first (default) image for this product, if any.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**images** `[ProductImageConnection!](/docs/api-reference/v3/pagination)` *required*

A paginated list of the product's images.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**importRestrictions** `[ProductImportRestrictionConnection!](/docs/api-reference/v3/pagination)` *required*

The import restrictions the product trips, one per destination country and rule. Only countries of enabled markets with restriction screening on are screened, and a restriction drops off 21 days after screening last found it.

**Requires:** [`markets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-markets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns import restrictions after it.

**before** `String`

Backward pagination cursor — returns import restrictions before it.

**first** `Int`

Forward pagination: returns the first N import restrictions (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N import restrictions (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**inventoryItems** `[InventoryItemConnection!](/docs/api-reference/v3/pagination)` *required*

Traceable inventory units for this product.

**Requires:** [`inventory_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_read)

**fields**

**Arguments**

**after** `String`

**before** `String`

**first** `Int`

**last** `Int`

**inventoryLevel** `[LocationInventoryLevel](/docs/api-reference/v3/reference/inventory/location-inventory-level)`

This product's inventory level at a single location, if any.

**Requires:** [`inventory_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_read)

**fields**

**Arguments**

**locationId** `ID!` *required*

The id of the location to fetch the level at.

**inventoryLevels** `[LocationInventoryLevelConnection!](/docs/api-reference/v3/pagination)` *required*

Per-location inventory levels for this product.

**Requires:** [`inventory_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**manufacturer** `[Manufacturer](/docs/api-reference/v3/reference/catalog/manufacturer)`

The company that makes the product, as declared on customs paperwork.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**marketPublishing** `[\[ProductMarketPublishing!\]](/docs/api-reference/v3/reference/markets/product-market-publishing)`

Publishing per destination country where the product trips an import restriction, or has a publish override. Only countries of enabled markets with restriction screening on are screened. Null when publishing can't be read.

**Requires:** [`markets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-markets_read)

**materialDescription** `String`

What the product is made of, e.g. 100% cotton.

**options** `[\[ProductOptionValue!\]!](/docs/api-reference/v3/reference/catalog/product-option-value)` *required*

The variant's selected option values (e.g. Size: M, Color: Red), ordered by the family's option positions.

**originCountry** `String`

The country of origin, as a country code.

**physicalItem** `Boolean!` *required*

Whether the product is a physical, shippable item.

**price** `[Money](/docs/api-reference/v3/reference/common/money)`

The product's selling price.

**productFamily** `[ProductFamily](/docs/api-reference/v3/reference/catalog/product-family)`

The product family this product belongs to, if any.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**sku** `String`

The stock keeping unit identifying this product.

**tags** `[String!]!` *required*

Free-form tags applied to the product.

**taxCode** `String`

The tax code used to classify the product for taxation.

**taxable** `Boolean!` *required*

Whether the product is subject to tax.

**title** `String!` *required*

The product's title.

**upc** `String`

The Universal Product Code for this product.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the record was last updated.

**vendor** `String`

The vendor or manufacturer of the product.

**weight** `[Weight](/docs/api-reference/v3/reference/catalog/weight)`

The product's weight.

**status** `[BulkItemStatus!](/docs/api-reference/v3/reference/common/bulk-item-status)` *required*

What the action did with the item.

**storageLocation** `[StorageLocation](/docs/api-reference/v3/reference/inventory/storage-location)`

The bin, when this item is a bin the count now covers. Null for a product, and for a bin that wasn't found. Needs the `locations_read` scope.

**fields**

**binInventoryLevels** `[BinInventoryLevelConnection!](/docs/api-reference/v3/pagination)` *required*

Product quantities held in this storage location.

**Requires:** [`inventory_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**inStock** `Boolean`

true returns only rows holding stock (quantity above zero). false returns only empty or negative rows, such as emptied assignments and LOST balancing entries.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**orderBy** `[BinInventoryLevelSortKey](/docs/api-reference/v3/reference/inventory/bin-inventory-level-sort-key)`

Which key to sort by (creation time, newest first). Combine with `reverse` to flip direction.

**reverse** `Boolean`

Reverses the sort direction selected by `orderBy` (or its default).

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the record was created.

**id** `ID!` *required*

The id of this storage location.

**inventoryItems** `[InventoryItemConnection!](/docs/api-reference/v3/pagination)` *required*

Inventory items currently in this storage location.

**Requires:** [`inventory_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**isSellable** `Boolean!` *required*

Whether on-hand quantity in this slot counts as sellable inventory.

**location** `[Location!](/docs/api-reference/v3/reference/inventory/location)` *required*

The warehouse this storage location belongs to.

**Requires:** [`locations_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-locations_read)

**name** `String!` *required*

The display name of the bin or slot.

**priority** `[StorageLocationPriority](/docs/api-reference/v3/reference/inventory/storage-location-priority)`

Pick priority relative to other bins, when set.

**source** `[StorageLocationSource!](/docs/api-reference/v3/reference/inventory/storage-location-source)` *required*

How this record was created.

**stockedProductCount** `Int!` *required*

How many product levels in this storage location have a quantity above zero.

**totalQuantity** `Int!` *required*

The sum of every level's quantity in this storage location.

**type** `[StorageLocationType!](/docs/api-reference/v3/reference/inventory/storage-location-type)` *required*

The kind of storage location.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the record was last updated.

## Example

```graphql theme={null}
mutation {
  cycleCountPlansAdd(cycleCountId: "...", productIds: "...", storageLocationIds: "...")
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.