Square: Cash drawers schemas
7 Square schemas with complete fields and constraints.
← Cash drawers operations · All schemas
List Cash Drawer Shift Events — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cash_drawer_shift_events | array | Optional | All of the events (payments, refunds, etc.) for a cash drawer during the shift. |
cash_drawer_shift_events[] | Model | Each item | Expand List Cash Drawer Shift Events — response body — cash drawer shift events item |
cursor | string | Optional | Opaque cursor for fetching the next page. Cursor is not present in the last page of results. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: List Cash Drawer Shift Events — response body — cash drawer shift events item, Get Shift — response body — errors item
List Cash Drawer Shift Events — response body — cash drawer shift events item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
created_at | string | Optional | The event time in RFC 3339 format. Read only: true |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | An optional description of the event, entered by the employee that created the event. |
description (anyOf 2) | null | Alternative | |
event_money | JSON | Optional | |
event_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money that was added to or removed from the cash drawer in the event. The amount can be positive (for added money) or zero (for other tender type payments). The addition or removal of money can be determined by by the event type. |
event_money (anyOf 2) | null | Alternative | |
event_type | JSON | Optional | |
event_type (anyOf 1) | string | Alternative | The types of events on a CashDrawerShift. Each event type represents an employee action on the actual cash drawer represented by a CashDrawerShift. The type of cash drawer shift event. See [CashDrawerEventType](#type-cashdrawereventtype) for possible values Known values: NO_SALE, CASH_TENDER_PAYMENT, OTHER_TENDER_PAYMENT, CASH_TENDER_CANCELLED_PAYMENT, OTHER_TENDER_CANCELLED_PAYMENT, CASH_TENDER_REFUND, OTHER_TENDER_REFUND, PAID_IN, PAID_OUT |
event_type (anyOf 2) | null | Alternative | |
id | string | Optional | The unique ID of the event. |
team_member_id | string | Optional | The ID of the team member that created the event. Read only: true |
Referenced models: Pay Order — response body — order total money
List Cash Drawer Shifts — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cash_drawer_shifts | array | Optional | A collection of CashDrawerShiftSummary objects for shifts that match the query. |
cash_drawer_shifts[] | Model | Each item | Expand List Cash Drawer Shifts — response body — cash drawer shifts item |
cursor | string | Optional | Opaque cursor for fetching the next page of results. Cursor is not present in the last page of results. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: List Cash Drawer Shifts — response body — cash drawer shifts item, Get Shift — response body — errors item
List Cash Drawer Shifts — response body — cash drawer shifts item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The summary of a closed cash drawer shift. This model contains only the money counted to start a cash drawer shift, counted at the end of the shift, and the amount that should be in the drawer at shift end based on summing all cash drawer shift events. |
closed_at | JSON | Optional | |
closed_at (anyOf 1) | string | Alternative | The shift close time in ISO 8601 format. |
closed_at (anyOf 2) | null | Alternative | |
closed_cash_money | JSON | Optional | |
closed_cash_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money found in the cash drawer at the end of the shift by an auditing employee. The amount must be greater than or equal to zero. |
closed_cash_money (anyOf 2) | null | Alternative | |
created_at | string | Optional | The shift start time in RFC 3339 format. Read only: true |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | An employee free-text description of a cash drawer shift. |
description (anyOf 2) | null | Alternative | |
ended_at | JSON | Optional | |
ended_at (anyOf 1) | string | Alternative | The shift end time in ISO 8601 format. |
ended_at (anyOf 2) | null | Alternative | |
expected_cash_money | JSON | Optional | |
expected_cash_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money that should be in the cash drawer at the end of the shift, based on the cash drawer events on the shift. The amount is correct if all shift employees accurately recorded their cash drawer shift events. Unrecorded events and events with the wrong amount result in an incorrect expected_cash_money amount that can be negative. |
expected_cash_money (anyOf 2) | null | Alternative | |
id | string | Optional | The shift unique ID. |
location_id | string | Optional | The ID of the location the cash drawer shift belongs to. Read only: true |
opened_at | JSON | Optional | |
opened_at (anyOf 1) | string | Alternative | The shift start time in ISO 8601 format. |
opened_at (anyOf 2) | null | Alternative | |
opened_cash_money | JSON | Optional | |
opened_cash_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money in the cash drawer at the start of the shift. This must be a positive amount. |
opened_cash_money (anyOf 2) | null | Alternative | |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | The current state of a cash drawer shift. The shift current state. See [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values Known values: OPEN, ENDED, CLOSED |
state (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The shift updated at time in RFC 3339 format. Read only: true |
Referenced models: Pay Order — response body — order total money
Retrieve Cash Drawer Shift — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cash_drawer_shift | Model | Optional | Expand Retrieve Cash Drawer Shift — response body — cash drawer shift The cash drawer shift queried for. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Retrieve Cash Drawer Shift — response body — cash drawer shift, Get Shift — response body — errors item
Retrieve Cash Drawer Shift — response body — cash drawer shift
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | This model gives the details of a cash drawer shift. The cash_payment_money, cash_refund_money, cash_paid_in_money, and cash_paid_out_money fields are all computed by summing their respective event types. |
cash_paid_in_money | JSON | Optional | |
cash_paid_in_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money added to the cash drawer for reasons other than cash payments. It is computed by summing the events of type PAID_IN. The amount is always greater than or equal to zero. |
cash_paid_in_money (anyOf 2) | null | Alternative | |
cash_paid_out_money | JSON | Optional | |
cash_paid_out_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money removed from the cash drawer for reasons other than cash refunds. It is computed by summing the events of type PAID_OUT. The amount is always greater than or equal to zero. |
cash_paid_out_money (anyOf 2) | null | Alternative | |
cash_payment_money | JSON | Optional | |
cash_payment_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money added to the cash drawer from cash payments. This is computed by summing all events with the types CASH_TENDER_PAYMENT and CASH_TENDER_CANCELED_PAYMENT. The amount is always greater than or equal to zero. |
cash_payment_money (anyOf 2) | null | Alternative | |
cash_refunds_money | JSON | Optional | |
cash_refunds_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money removed from the cash drawer from cash refunds. It is computed by summing the events of type CASH_TENDER_REFUND. The amount is always greater than or equal to zero. |
cash_refunds_money (anyOf 2) | null | Alternative | |
closed_at | JSON | Optional | |
closed_at (anyOf 1) | string | Alternative | The time when the shift was closed, in ISO 8601 format. |
closed_at (anyOf 2) | null | Alternative | |
closed_cash_money | JSON | Optional | |
closed_cash_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money found in the cash drawer at the end of the shift by an auditing employee. The amount should be positive. |
closed_cash_money (anyOf 2) | null | Alternative | |
closing_team_member_id | string | Optional | The ID of the team member that closed the cash drawer shift by auditing the cash drawer contents. Read only: true |
created_at | string | Optional | The shift start time in RFC 3339 format. Read only: true |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The free-form text description of a cash drawer by an employee. |
description (anyOf 2) | null | Alternative | |
device | JSON | Optional | |
device (anyOf 1) | Model | Alternative | Expand Retrieve Cash Drawer Shift — response body — cash drawer shift device id, name The device running Square Point of Sale that was connected to the cash drawer. |
device (anyOf 2) | null | Alternative | |
ended_at | JSON | Optional | |
ended_at (anyOf 1) | string | Alternative | The time when the shift ended, in ISO 8601 format. |
ended_at (anyOf 2) | null | Alternative | |
ending_team_member_id | string | Optional | The ID of the team member that ended the cash drawer shift. Read only: true |
expected_cash_money | JSON | Optional | |
expected_cash_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money that should be in the cash drawer at the end of the shift, based on the shift's other money amounts. This can be negative if employees have not correctly recorded all the events on the cash drawer. cash_paid_out_money is a summation of amounts from cash_payment_money (zero or positive), cash_refunds_money (zero or negative), cash_paid_in_money (zero or positive), and cash_paid_out_money (zero or negative) event types. |
expected_cash_money (anyOf 2) | null | Alternative | |
id | string | Optional | The shift unique ID. |
location_id | string | Optional | The ID of the location the cash drawer shift belongs to. Read only: true |
opened_at | JSON | Optional | |
opened_at (anyOf 1) | string | Alternative | The time when the shift began, in ISO 8601 format. |
opened_at (anyOf 2) | null | Alternative | |
opened_cash_money | JSON | Optional | |
opened_cash_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money in the cash drawer at the start of the shift. The amount must be greater than or equal to zero. |
opened_cash_money (anyOf 2) | null | Alternative | |
opening_team_member_id | string | Optional | The ID of the team member that started the cash drawer shift. Read only: true |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | The current state of a cash drawer shift. The shift current state. See [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values Known values: OPEN, ENDED, CLOSED |
state (anyOf 2) | null | Alternative | |
team_member_ids | array | Optional | The IDs of all team members that were logged into Square Point of Sale at any point while the cash drawer shift was open. Read only: true |
team_member_ids[] | string | Each item | |
updated_at | string | Optional | The shift updated at time in RFC 3339 format. Read only: true |
Referenced models: Retrieve Cash Drawer Shift — response body — cash drawer shift device id, name, Pay Order — response body — order total money
Retrieve Cash Drawer Shift — response body — cash drawer shift device id, name
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
id | string | Optional | The device Square-issued ID |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The device merchant-specified name. |
name (anyOf 2) | null | Alternative |