> ## 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.

# cycleCountCreate

> Create a manual cycle count at a warehouse, assigned to a team member or a role, covering products, bins or both, as the app's Create cycle count does. The assignee is notified, as in the app. The count starts as TODO. The search index follows the database, so `cycleCountsSearch` can trail this by a few seconds; `cycleCounts` and `cycleCount` are current at once. Needs the `inventory_write` scope. Errors: BAD_USER_INPUT when the name is blank, there isn't exactly one of `assigneeId` and `assignedRole`, there are no products or bins, or there are more than 500 of either; LOCATION_NOT_FOUND, PRODUCT_NOT_FOUND, STORAGE_LOCATION_NOT_FOUND or TEAM_MEMBER_NOT_FOUND (400) when an id isn't the store's, or a bin can't be counted at the warehouse; CYCLE_COUNTS_UNAVAILABLE (400) when Redo doesn't manage inventory at the warehouse.

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

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

## Arguments

**input** `[CycleCountCreateInput!](/docs/api-reference/v3/reference/inventory/cycle-count-create-input)` *required*

The cycle count to create.

**fields**

**assignedRole** `String`

The role whose members are asked to do the count. Give this or `assigneeId`, not both.

**assigneeId** `ID`

The team member asked to do the count. Give this or `assignedRole`, not both.

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

When the count is due. Omit for no due date.

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

The warehouse the count is taken in. List warehouses with `locations`.

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

The count's display name. Must not be blank.

**productIds** `[ID!]`

Products to count wherever they are stored, up to 500. Give products, bins or both.

**storageLocationIds** `[ID!]`

Bins to count everything in, up to 500. Every bin must be at `locationId`. Give products, bins or both.

## Returns

**cycleCountCreate** `[CycleCount!](/docs/api-reference/v3/reference/inventory/cycle-count)` *required*

A count of the stock in some of a location's bins or products, checked against what the system expects.

**fields**

**assignedRole** `String`

The role whose members are asked to do the count. Null when it isn't assigned to a role.

**assignee** `[TeamMember](/docs/api-reference/v3/reference/common/team-member)`

The team member the count is assigned to. Null when it is unassigned or assigned to a role, or when they've left the team.

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

**fields**

**email** `String`

Email address. Null when the user has none.

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

m\_us\_… id, the same id the app and MCP tools use.

**name** `String`

Display name. Null when the user hasn't set one.

**supportNotificationPreferences** `[SupportNotificationPreferences](/docs/api-reference/v3/reference/support/support-notification-preferences)`

Which help desk notifications the team member gets: what the help desk's notifier reads for them, with defaults for what they never saved. The same settings as the Notifications tab of their profile. Null when the user can't be read. A request reads its team members 100 at a time, for 10 points each time.

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

**fields**

**playSoundOnDesktop** `Boolean!` *required*

Whether a browser notification plays a sound.

**preferences** `[\[SupportNotificationPreference!\]!](/docs/api-reference/v3/reference/support/support-notification-preference)` *required*

One entry for every platform and event, including ones the team member never changed, which read as their defaults.

**supportShiftStatus** `[SupportShiftStatus!](/docs/api-reference/v3/reference/support/support-shift-status)` *required*

The agent's live shift status, worked out when the request runs.

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

**fields**

**manualOverride** `[SupportShiftOverride](/docs/api-reference/v3/reference/support/support-shift-override)`

The agent's manual on/off toggle. Null when they follow their schedule.

**nextChange** `[SupportShiftChange!](/docs/api-reference/v3/reference/support/support-shift-change)` *required*

The next time the schedule alone flips onShift. Ignores any manual override. Always in the future, or the next local midnight when nothing changes within 14 days.

**onShift** `Boolean!` *required*

True when auto-assignment can give the agent tickets now.

**reason** `[SupportShiftStatusReason!](/docs/api-reference/v3/reference/support/support-shift-status-reason)` *required*

Which layer decided onShift.

**supportWorkSchedule** `[SupportWorkSchedule!](/docs/api-reference/v3/reference/support/support-work-schedule)` *required*

The agent's support working hours. An agent with no saved schedule returns enabled false.

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

**fields**

**assignableChannels** `[\[SupportChannel!\]](/docs/api-reference/v3/reference/support/support-channel)`

Channels the agent takes auto-assigned tickets on. Null means every channel.

**dateOverrides** `[\[SupportWorkScheduleDateOverride!\]!](/docs/api-reference/v3/reference/support/support-work-schedule-date-override)` *required*

Dates whose hours replace that day's weekly hours, earliest first.

**enabled** `Boolean!` *required*

Whether the schedule is on. When false, the agent counts as on shift at all times.

**timeZone** `String!` *required*

IANA time zone the hours are in, such as America/New\_York. The store's time zone when the agent has never saved a schedule.

**weeklyHours** `[\[SupportWorkScheduleDay!\]!](/docs/api-reference/v3/reference/support/support-work-schedule-day)` *required*

Recurring hours. Always seven entries, Monday through Sunday.

**binCount** `Int!` *required*

How many of the count's plans are bins.

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

When the count was completed. Null until then.

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

When the count was created.

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

When the count is due. Null when it has no due date.

**finishedPlanCount** `Int!` *required*

How many of the count's products and bins have been fully counted.

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

The id of this cycle count.

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

The warehouse the count is taken in.

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

**fields**

**city** `String`

The city of the location's address.

**company** `String`

The company name associated with the location.

**countryCode** `String`

The country code, e.g. "US".

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

When the record was created.

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

The id of this location.

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

Traceable inventory units at this warehouse.

**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`.

**Fields**

**edges** `[\[InventoryItemEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[InventoryItem!\]!](/docs/api-reference/v3/reference/inventory/inventory-item)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

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

Per-product inventory levels held at this 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`.

**Fields**

**edges** `[\[LocationInventoryLevelEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[LocationInventoryLevel!\]!](/docs/api-reference/v3/reference/inventory/location-inventory-level)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

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

The location's display name.

**phone** `String`

The contact phone number for the location.

**postalCode** `String`

The postal or ZIP code, e.g. "84101".

**stateCode** `String`

The state or province code, e.g. "UT".

**storageLocations** `[StorageLocationConnection!](/docs/api-reference/v3/pagination)` *required*

Bins and other storage locations within this warehouse.

**Requires:** [`locations_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-locations_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`.

**Fields**

**edges** `[\[StorageLocationEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[StorageLocation!\]!](/docs/api-reference/v3/reference/inventory/storage-location)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**street1** `String`

The first line of the street address.

**street2** `String`

The second line of the street address.

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

When the record was last updated.

**name** `String`

The count's display name, such as the rule that made it and the date. Null when it has none.

**planCount** `Int!` *required*

How many products and bins the count covers. Progress is `finishedPlanCount` out of this.

**plans** `[CycleCountPlanConnection!](/docs/api-reference/v3/pagination)` *required*

The products and bins the count covers, with when each started and finished.

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

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns plans after it.

**before** `String`

Backward pagination cursor — returns plans before it.

**first** `Int`

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

**last** `Int`

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

**Fields**

**edges** `[\[CycleCountPlanEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[CycleCountPlan!](/docs/api-reference/v3/reference/inventory/cycle-count-plan)` *required*

The item at this edge.

**nodes** `[\[CycleCountPlan!\]!](/docs/api-reference/v3/reference/inventory/cycle-count-plan)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

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

When this product or bin was added to the count.

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

When this product or bin was fully counted, if it has been.

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

The id of this plan.

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

The product to count wherever it is stored. Null when this plan covers a bin, or when the product isn't one of the caller's.

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

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

When counting this product or bin started, if it has.

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

The bin to count everything in. Null when this plan covers a product.

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

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

**productCount** `Int!` *required*

How many of the count's plans are products.

**source** `[CycleCountSource!](/docs/api-reference/v3/reference/inventory/cycle-count-source)` *required*

Whether a rule or a person created the count.

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

When counting started: the count's own start, else the first plan to start. Null before that.

**status** `[CycleCountStatus!](/docs/api-reference/v3/reference/inventory/cycle-count-status)` *required*

Where the count is in its lifecycle.

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

When the count was last updated.

**variance** `Int!` *required*

Units counted away from what was expected, summed over everything counted so far, whether short or over. 0 until something is counted.

## Example

```graphql theme={null}
mutation {
  cycleCountCreate(input: { ... }) {
    assignedRole
    binCount
    completedAt
    createdAt
    dueAt
    finishedPlanCount
    id
    name
    # ...
  }
}
```


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