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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# List Cash Drawer Shifts

> Provides the details for all of the cash drawer shifts for a location in a date range.

`square.listCashDrawerShifts` provides the details for all of the cash drawer shifts for a location in a date range.

## Example

```ts automations/square-list-cash-drawer-shifts.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("List Square Cash Drawer Shifts", () => {
  onDashboardRun({ title: "List Square Cash Drawer Shifts" })

  square.listCashDrawerShifts({
    locationId: "location_id",
    sortOrder: "DESC",
    beginTime: "begin_time",
    endTime: "end_time",
    limit: 1,
    cursor: "cursor",
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `CASH_DRAWER_READ`.

| Field        | Type                       | Required | Default | Description                                                                                                           |
| ------------ | -------------------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------- |
| `locationId` | `string`                   | Yes      | —       | The ID of the location to query for a list of cash drawer shifts.                                                     |
| `sortOrder`  | `Square.SortOrder \| null` | No       | —       | The order in which cash drawer shifts are listed in the response, based on their opened\_at field. Default value: ASC |
| `beginTime`  | `string \| null`           | No       | —       | The inclusive start time of the query on opened\_at, in ISO 8601 format.                                              |
| `endTime`    | `string \| null`           | No       | —       | The exclusive end date of the query on opened\_at, in ISO 8601 format.                                                |
| `limit`      | `number \| null`           | No       | —       | Number of cash drawer shift events in a page of results (200 by default, 1000 max).                                   |
| `cursor`     | `string \| null`           | No       | —       | Opaque cursor for fetching the next page of results.                                                                  |

Use the official [ListCashDrawerShifts reference](https://developer.squareup.com/reference/square/cash-drawers-api/list-cash-drawer-shifts) for provider field semantics and limits.

## Output

Returns the official `Square.ListCashDrawerShiftsResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
