cash_drawers_api = client.cash_drawers
CashDrawersApi
Provides the details for all of the cash drawer shifts for a location in a date range.
def list_cash_drawer_shifts(self,
location_id,
sort_order=None,
begin_time=None,
end_time=None,
limit=None,
cursor=None)
Parameter | Type | Tags | Description |
---|---|---|---|
location_id |
string |
Query, Required | The ID of the location to query for a list of cash drawer shifts. |
sort_order |
str (Sort Order) |
Query, Optional | The order in which cash drawer shifts are listed in the response, based on their opened_at field. Default value: ASC |
begin_time |
string |
Query, Optional | The inclusive start time of the query on opened_at, in ISO 8601 format. |
end_time |
string |
Query, Optional | The exclusive end date of the query on opened_at, in ISO 8601 format. |
limit |
int |
Query, Optional | Number of cash drawer shift events in a page of results (200 by default, 1000 max). |
cursor |
string |
Query, Optional | Opaque cursor for fetching the next page of results. |
List Cash Drawer Shifts Response
location_id = 'location_id4'
sort_order = 'DESC'
begin_time = 'begin_time2'
end_time = 'end_time2'
limit = 172
cursor = 'cursor6'
result = cash_drawers_api.list_cash_drawer_shifts(location_id, sort_order, begin_time, end_time, limit, cursor)
if result.is_success():
print(result.body)
elif result.is_error():
print(result.errors)
Provides the summary details for a single cash drawer shift. See ListCashDrawerShiftEvents for a list of cash drawer shift events.
def retrieve_cash_drawer_shift(self,
location_id,
shift_id)
Parameter | Type | Tags | Description |
---|---|---|---|
location_id |
string |
Query, Required | The ID of the location to retrieve cash drawer shifts from. |
shift_id |
string |
Template, Required | The shift ID. |
Retrieve Cash Drawer Shift Response
location_id = 'location_id4'
shift_id = 'shift_id0'
result = cash_drawers_api.retrieve_cash_drawer_shift(location_id, shift_id)
if result.is_success():
print(result.body)
elif result.is_error():
print(result.errors)
Provides a paginated list of events for a single cash drawer shift.
def list_cash_drawer_shift_events(self,
location_id,
shift_id,
limit=None,
cursor=None)
Parameter | Type | Tags | Description |
---|---|---|---|
location_id |
string |
Query, Required | The ID of the location to list cash drawer shifts for. |
shift_id |
string |
Template, Required | The shift ID. |
limit |
int |
Query, Optional | Number of resources to be returned in a page of results (200 by default, 1000 max). |
cursor |
string |
Query, Optional | Opaque cursor for fetching the next page of results. |
List Cash Drawer Shift Events Response
location_id = 'location_id4'
shift_id = 'shift_id0'
limit = 172
cursor = 'cursor6'
result = cash_drawers_api.list_cash_drawer_shift_events(location_id, shift_id, limit, cursor)
if result.is_success():
print(result.body)
elif result.is_error():
print(result.errors)