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

# pickSessionCancel

> Cancel a pick session, as cancelling it on the Redo warehouse app's pick sessions page does. A CREATING, ACTIVE, PICKED, PRINTED or HANDED_OFF session can be cancelled, even after items were picked: its orders are released so another pick session can claim them, the stock it reserved or moved is returned to its bins in Redo, and any label bought ahead for its orders is voided. Units already picked into totes must be put back on the shelf by hand. Zone-picking handoffs the session had taken over go back to their zone, and `restoredHandoffs` lists the totes to carry there. Null when no pick session of yours has this id. Errors: PICK_SESSION_NOT_OPEN (409) when the session is already CANCELLED, COMPLETED, CONSOLIDATED or PROBLEM.

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

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

## Arguments

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

The id of the pick session: a branded Redo id or a 24-char Mongo ObjectId hex.

## Returns

**pickSessionCancel** `[PickSessionCancelResult](/docs/api-reference/v3/reference/shipping/pick-session-cancel-result)`

The outcome of `pickSessionCancel`.

**fields**

**pickSession** `[PickSession!](/docs/api-reference/v3/reference/shipping/pick-session)` *required*

The pick session, now CANCELLED.

**fields**

**assignedBy** `[WarehouseTeamMember](/docs/api-reference/v3/reference/shipping/warehouse-team-member)`

The team member who queued the session for its picker. Null when the picker created it themselves.

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

**fields**

**email** `String`

Email address of the team member.

**name** `String`

Display name of the team member. Null when the user has no name set.

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

When the session was completed.

**consolidatedInto** `[PickSession](/docs/api-reference/v3/reference/shipping/pick-session)`

Zone picking: the session this one's items were moved into, when its status is CONSOLIDATED.

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

**continuedFrom** `[PickSession](/docs/api-reference/v3/reference/shipping/pick-session)`

Zone picking: the upstream session whose leftover items started this one.

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

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

When the session was created.

**filterName** `String`

The name of the saved pick filter the session was built from, if any.

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

The id of this pick session.

**inventorySource** `[PickSessionInventorySource!](/docs/api-reference/v3/reference/shipping/pick-session-inventory-source)` *required*

Which stock the session draws from.

**items** `[PickSessionItemConnection!](/docs/api-reference/v3/pagination)` *required*

The session's active lines in pick order. Archived lines after a split are omitted; session totals still include them.

**Requires:** [`pick_sessions_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-pick_sessions_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** `[\[PickSessionItemEdge!\]!](/docs/api-reference/v3/pagination)` *required*

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

**nodes** `[\[PickSessionItem!\]!](/docs/api-reference/v3/reference/shipping/pick-session-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.

**legacyId** `String!` *required*

The pick session's legacy Mongo ObjectId (24-char hex), as shown in the Redo app's URLs.

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

The warehouse the session picks from. Null if unset or no longer readable.

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

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

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

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

**orderCount** `Int!` *required*

How many orders the session holds, including orders on archived lines.

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

When picking finished.

**picker** `[WarehouseTeamMember](/docs/api-reference/v3/reference/shipping/warehouse-team-member)`

The team member picking the session. Null before someone claims it or when the user no longer exists.

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

**fields**

**email** `String`

Email address of the team member.

**name** `String`

Display name of the team member. Null when the user has no name set.

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

When labels for the session's orders were printed.

**quantityOutOfStock** `Int!` *required*

Units marked out of stock across every line, including archived lines.

**quantityPicked** `Int!` *required*

Units picked so far across every line, including archived lines.

**scanType** `[PickSessionScanType!](/docs/api-reference/v3/reference/shipping/pick-session-scan-type)` *required*

Where picked items are scanned and sorted into orders.

**status** `[PickSessionStatus!](/docs/api-reference/v3/reference/shipping/pick-session-status)` *required*

Where the session is in its lifecycle.

**strategy** `[PickSessionStrategy!](/docs/api-reference/v3/reference/shipping/pick-session-strategy)` *required*

How orders were grouped into the session.

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

Units to pick across every line, including archived lines.

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

When the session last changed.

**restoredHandoffs** `[\[PickSessionRestoredHandoff!\]!](/docs/api-reference/v3/reference/shipping/pick-session-restored-handoff)` *required*

Totes to carry back to another zone, from zone-picking handoffs the session had taken over. Empty when there are none.

**fields**

**returnZoneId** `String!` *required*

The pick zone to return the tote to, by its id in `warehouseLayout`.

**returnZoneName** `String!` *required*

The name of that zone, or its id when the layout no longer has it.

**toteName** `String!` *required*

The name printed on the tote.

## Example

```graphql theme={null}
mutation {
  pickSessionCancel(id: "...")
}
```


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