---
title: cashDrawer - GraphQL Admin
description: Returns a `CashDrawer` resource by ID.
api_version: 2026-04
source_url:
  html: 'https://shopify.dev/docs/api/admin-graphql/latest/queries/cashDrawer'
  md: 'https://shopify.dev/docs/api/admin-graphql/latest/queries/cashDrawer.md'
api_name: admin
api_type: graphql
type: query
metadata:
  domain: admin
---

# cash​Drawer

query

Requires `read_cash_tracking` access scope.

Returns a `CashDrawer` resource by ID.

## Arguments

* id

  [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

  required

  The ID of the `CashDrawer` to return.

***

## Possible returns

* Cash​Drawer

  [Cash​Drawer](https://shopify.dev/docs/api/admin-graphql/latest/objects/CashDrawer)

  A cash drawer for cash management.

  * cash​Activities

    [Cash​Activity​Connection!](https://shopify.dev/docs/api/admin-graphql/latest/connections/CashActivityConnection)

    non-null

    The activities on the cash drawer.

    * first

      [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int)

      ### Arguments

      The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql).

    * after

      [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

      The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql).

    * last

      [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int)

      The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql).

    * before

      [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

      The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql).

    * reverse

      [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean)

      Default:false

      Reverse the order of the underlying list.

    * sort​Key

      [Cash​Activities​Sort​Keys](https://shopify.dev/docs/api/admin-graphql/latest/enums/CashActivitiesSortKeys)

      Default:TIME

      Sort the underlying list by the given key.

    * query

      [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

      A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about [Shopify API search syntax](https://shopify.dev/api/usage/search-syntax).

      * * id

          id

        * type

          string

        - Filter by `id` range.

        - Example:
          * `id:1234`
          * `id:>=1234`
          * `id:<=1234`

    * staff​Member​Id

      [ID](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

      Filter activities by staff member.

    ***

  * id

    [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

    non-null

    A unique ID for the cash drawer.

  * location

    [Location!](https://shopify.dev/docs/api/admin-graphql/latest/objects/Location)

    non-null

    The location of the cash drawer.

  * name

    [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

    non-null

    The name of the cash drawer.

  * net​Sales

    [Money​V2!](https://shopify.dev/docs/api/admin-graphql/latest/objects/MoneyV2)

    non-null

    The net sales for this cash drawer.

    * date​Range

      [Cash​Drawer​Date​Range​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/CashDrawerDateRangeInput)

      required

      ### Arguments

      The date and time range for filtering net sales.

    ***

  * point​Of​Sale​Devices

    [Point​Of​Sale​Device​Connection](https://shopify.dev/docs/api/admin-graphql/latest/connections/PointOfSaleDeviceConnection)

    The Point of Sale devices assigned to this cash drawer.

    * first

      [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int)

      ### Arguments

      The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql).

    * after

      [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

      The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql).

    * last

      [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int)

      The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql).

    * before

      [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

      The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql).

    ***

  * total​Adjustments

    [Money​V2!](https://shopify.dev/docs/api/admin-graphql/latest/objects/MoneyV2)

    non-null

    The total adjustments for this cash drawer.

    * date​Range

      [Cash​Drawer​Date​Range​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/CashDrawerDateRangeInput)

      required

      ### Arguments

      The date and time range for filtering adjustments.

    ***

  * total​Discrepancies

    [Money​V2!](https://shopify.dev/docs/api/admin-graphql/latest/objects/MoneyV2)

    non-null

    The total discrepancies for this cash drawer.

    * date​Range

      [Cash​Drawer​Date​Range​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/CashDrawerDateRangeInput)

      required

      ### Arguments

      The date and time range for filtering discrepancies.

    ***

  * total​Refunds

    [Money​V2!](https://shopify.dev/docs/api/admin-graphql/latest/objects/MoneyV2)

    non-null

    The total refunds for this cash drawer.

    * date​Range

      [Cash​Drawer​Date​Range​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/CashDrawerDateRangeInput)

      required

      ### Arguments

      The date and time range for filtering refunds.

    ***

  * total​Sales

    [Money​V2!](https://shopify.dev/docs/api/admin-graphql/latest/objects/MoneyV2)

    non-null

    The total sales for this cash drawer.

    * date​Range

      [Cash​Drawer​Date​Range​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/CashDrawerDateRangeInput)

      required

      ### Arguments

      The date and time range for filtering sales.

    ***

***

## Examples

* ### cashDrawer reference
