API reference
This page is generated from the Selflane API's OpenAPI spec, the same schemas the API checks every response against. For what the fields mean and how to use them, see the guides: Locations, Daily sales, Payouts, Payments, Menu, and Errors.
Every request needs Authorization: Bearer sl_live_…. See Authentication.
Base URL: https://developer.selflane.com. Generated from the OpenAPI 3.1.0 spec when this site was last published.
GET /v1/business: The business profile of one locationGET /v1/locations: The locations this API key coversGET /v1/reports: Daily sales summaries of one location, one entry per ended business day with ordersGET /v1/reports/today: Sales so far in one location's business day in progressGET /v1/payouts: Stripe payouts of the account one location trades on, by arrival dateGET /v1/payments: Card payments at one location across processors, with their refunds and disputesGET /v1/menu: The current menu of one location: categories, items, modifier groups, taxes and discountsGET /v1/orders: Orders of one location by ended business day: a date range, or every day changed since a checkpointGET /v1/orders/today: Orders of one location's business day in progress, optionally only some statusesGET /v1/staff: Staff who work at one location, with their roles there; pay rates with staff.pay:readGET /v1/reports/staff: Sales per staff member, gift card sales included, over one location's ended business daysGET /v1/timecards: Timecards (clock-ins, breaks, declared cash tips) at one location, by the business day of the clock-inGET /v1/cash-drawers: Cash drawer sessions at one location with their counts, by business day
GET /v1/business
The business profile of one location
Scope: business:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
id | string | |
location | string | |
name | string | |
timezone | string | |
currency | string | |
website | string or null | |
address | object | |
address.line1 | string or null | |
address.line2 | string or null | |
address.city | string or null | |
address.state | string or null | |
address.postal_code | string or null | |
address.country | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/locations
The locations this API key covers
Scope: business:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
location | string | No | Narrows the list to one of the key's locations. |
Response fields
| Field | Type | Notes |
|---|---|---|
data | array of object | |
data[].id | string | |
data[].location | string | |
data[].name | string | |
data[].timezone | string | |
next_cursor | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/reports
Daily sales summaries of one location, one entry per ended business day with orders
Scope: reports:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
from | string (YYYY-MM-DD) | Yes | |
to | string (YYYY-MM-DD) | Yes | |
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
data | array of object | |
data[].date | string | |
data[].location | string | |
data[].begin | string | |
data[].end | string | |
data[].version | string | |
data[].currency | string | |
data[].orders | object | |
data[].orders.count | integer | |
data[].orders.open | integer | |
data[].orders.closed | integer | |
data[].orders.canceled | integer | |
data[].orders.canceled_amount | integer | |
data[].sales | object | |
data[].sales.item_sales | integer | |
data[].sales.discount | integer | |
data[].sales.saved | integer | |
data[].sales.service_charge | integer | |
data[].sales.net_sales | integer | |
data[].sales.tax | integer | |
data[].sales.tip | integer | |
data[].sales.fee | integer | |
data[].sales.selflane | object | |
data[].sales.selflane.total | integer | |
data[].sales.selflane.service_fee | integer | |
data[].sales.selflane.delivery_fee | integer | |
data[].sales.selflane.delivery_tip | integer | |
data[].sales.adjustment | integer | |
data[].sales.deduction | integer | |
data[].sales.gift | integer | |
data[].sales.third_party | integer | |
data[].sales.total | integer | |
data[].payments | array of object | |
data[].payments[].method | string | |
data[].payments[].amount | integer | |
data[].payments[].tip | integer | |
data[].payments[].count | integer | |
next_cursor | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/reports/today
Sales so far in one location's business day in progress
Scope: reports:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
date | string | |
location | string | |
begin | string | |
end | string | |
version | string | |
currency | string | |
orders | object | |
orders.count | integer | |
orders.open | integer | |
orders.closed | integer | |
orders.canceled | integer | |
orders.canceled_amount | integer | |
sales | object | |
sales.item_sales | integer | |
sales.discount | integer | |
sales.saved | integer | |
sales.service_charge | integer | |
sales.net_sales | integer | |
sales.tax | integer | |
sales.tip | integer | |
sales.fee | integer | |
sales.selflane | object | |
sales.selflane.total | integer | |
sales.selflane.service_fee | integer | |
sales.selflane.delivery_fee | integer | |
sales.selflane.delivery_tip | integer | |
sales.adjustment | integer | |
sales.deduction | integer | |
sales.gift | integer | |
sales.third_party | integer | |
sales.total | integer | |
payments | array of object | |
payments[].method | string | |
payments[].amount | integer | |
payments[].tip | integer | |
payments[].count | integer |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/payouts
Stripe payouts of the account one location trades on, by arrival date
Scope: payouts:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
cursor | string | No | |
limit | integer | No | |
from | string (YYYY-MM-DD) | Yes | |
to | string (YYYY-MM-DD) | Yes | |
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
data | array of object | |
data[].id | string | |
data[].location | string | |
data[].stripe_payout_id | string | |
data[].account_shared | boolean | |
data[].amount | integer | |
data[].currency | string | |
data[].status | "pending" | "in_transit" | "paid" | "failed" | "canceled" | |
data[].failure_code | string or null | |
data[].automatic | boolean | |
data[].arrival_date | string | |
data[].created | string or null | |
data[].reconciled | boolean | |
data[].breakdown | object or null | |
data[].breakdown.charges | integer | |
data[].breakdown.refunds | integer | |
data[].breakdown.fees | integer | |
data[].breakdown.adjustments | integer | |
data[].breakdown.transfers | integer | |
data[].breakdown.withheld | integer | |
data[].breakdown.other | integer | |
data[].breakdown.net | integer | |
data[].channels | array of object | |
data[].channels[].method | string | |
data[].channels[].amount | integer | |
data[].channels[].count | integer | |
data[].business_days | array of object | |
data[].business_days[].date | string | |
data[].business_days[].amount | integer | |
data[].business_days[].count | integer | |
data[].unmatched | object or null | |
data[].unmatched.amount | integer | |
data[].unmatched.count | integer | |
next_cursor | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/payments
Card payments at one location across processors, with their refunds and disputes
Scope: payments:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
cursor | string | No | |
limit | integer | No | |
from | string (YYYY-MM-DD) | Yes | |
to | string (YYYY-MM-DD) | Yes | |
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
data | array of object | |
data[].id | string | |
data[].location | string | |
data[].processor | "stripe" | "pax" | |
data[].type | "sale" | "return" | |
data[].status | "succeeded" | "pending" | "canceled" | "failed" | |
data[].amount | integer | |
data[].tip | integer or null | |
data[].application_fee | integer or null | |
data[].amount_refunded | integer | |
data[].currency | string | |
data[].created | string | |
data[].order | string or null | |
data[].card | object or null | |
data[].card.brand | string or null | |
data[].card.last4 | string or null | |
data[].refunds | array of object | |
data[].refunds[].id | string | |
data[].refunds[].amount | integer | |
data[].refunds[].currency | string | |
data[].refunds[].status | string | |
data[].refunds[].created | string | |
data[].disputes | array of object | |
data[].disputes[].id | string | |
data[].disputes[].amount | integer | |
data[].disputes[].currency | string | |
data[].disputes[].status | string or null | |
data[].disputes[].reason | string or null | |
data[].disputes[].created | string or null | |
next_cursor | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/menu
The current menu of one location: categories, items, modifier groups, taxes and discounts
Scope: menu:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
location | string | No | Required when the key covers more than one location. |
If-None-Match | string | No | The ETag of a copy you hold; an unchanged response is 304 with no body. |
Response fields
| Field | Type | Notes |
|---|---|---|
location | string | |
currency | string | |
channel_markups | object | |
channel_markups.online | any or null | |
channel_markups.third_party | any or null | |
menus | array of object | |
menus[].id | string | |
menus[].name | string | |
menus[].description | string or null | |
menus[].sold_out | boolean | |
menus[].hidden_online | boolean | |
menus[].third_party | boolean | |
menus[].catering | boolean | |
menus[].hours | array of object or null | |
menus[].hours.days | array of "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | |
menus[].hours.start_minute | integer | |
menus[].hours.end_minute | integer | |
categories | array of object | |
categories[].id | string | |
categories[].name | string | |
categories[].description | string or null | |
categories[].sort_order | number | |
categories[].sold_out | boolean | |
categories[].hidden_online | boolean | |
categories[].third_party | boolean | |
categories[].classification | "food" | "merchandise" | "beverage" | "alcohol" | "service" | "retail" | |
categories[].report_group | string | |
categories[].tax_ids | array of string | |
items | array of object | |
items[].id | string | |
items[].name | string | |
items[].kitchen_name | string or null | |
items[].description | string or null | |
items[].category_id | string or null | |
items[].menu_ids | array of string | |
items[].modifier_group_ids | array of string | |
items[].price | integer | |
items[].open_price | boolean | |
items[].unit | string or null | |
items[].online_upcharge | integer | |
items[].third_party_upcharge | integer | |
items[].percent_off | number | |
items[].sold_out | boolean | |
items[].hidden_online | boolean | |
items[].third_party | boolean | |
items[].daily_limit | integer or null | |
items[].sku | string or null | |
items[].upc | string or null | |
items[].tags | array of string | |
items[].image_url | string or null | |
items[].tax_ids | array of string | |
modifier_groups | array of object | |
modifier_groups[].id | string | |
modifier_groups[].name | string | |
modifier_groups[].required | boolean | |
modifier_groups[].min_selections | integer | |
modifier_groups[].max_selections | integer | |
modifier_groups[].online | boolean | |
modifier_groups[].sold_out | boolean | |
modifier_groups[].sub_options_half_and_half | boolean | |
modifier_groups[].sub_options_quantity | boolean | |
modifier_groups[].options | array of object | |
modifier_groups[].options[].id | string | |
modifier_groups[].options[].name | string | |
modifier_groups[].options[].kitchen_name | string or null | |
modifier_groups[].options[].price | integer | |
modifier_groups[].options[].max_quantity | integer | |
modifier_groups[].options[].preselected | boolean | |
modifier_groups[].options[].included | boolean | |
modifier_groups[].options[].online | boolean | |
modifier_groups[].options[].sold_out | boolean | |
modifier_groups[].options[].sub_options | object or null | |
modifier_groups[].options[].sub_options.unit_price | integer | |
modifier_groups[].options[].sub_options.boosted_price | integer | |
modifier_groups[].options[].sub_options.free_quantity | integer | |
modifier_groups[].options[].sub_options.max_quantity | integer | |
modifier_groups[].sub_options | array of object | |
modifier_groups[].sub_options[].id | string | |
modifier_groups[].sub_options[].name | string | |
modifier_groups[].sub_options[].included | boolean | |
modifier_groups[].sub_options[].price_tier | "unit" | "boosted" | |
modifier_groups[].sub_options[].free_quantity | integer | |
taxes | array of object | |
taxes[].id | string | |
taxes[].name | string | |
taxes[].rate_percent | number | |
taxes[].inclusive | boolean | |
taxes[].category_ids | array of string | |
taxes[].excluded_order_types | array of "dinein" | "pickup" | "delivery" | "curbside" | "drive" | "qrcode" | "retail" | |
discounts | object | |
discounts.price_rules | array of object | |
discounts.price_rules[].id | string | |
discounts.price_rules[].name | string or null | |
discounts.price_rules[].trigger | "automatic" | "manager_approval" | "member_automatic" | "member_manager_approval" | |
discounts.price_rules[].member_tier | integer or null | |
discounts.price_rules[].hours | object or null | |
discounts.price_rules[].hours.days | array of "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | |
discounts.price_rules[].hours.start_minute | integer | |
discounts.price_rules[].hours.end_minute | integer | |
discounts.price_rules[].menu_ids | array of string | |
discounts.price_rules[].category_ids | array of string | |
discounts.price_rules[].item_ids | array of string | |
discounts.price_rules[].adjustment | any | |
discounts.price_rules[].excluded_order_types | array of "dinein" | "pickup" | "delivery" | "curbside" | "drive" | "qrcode" | "retail" | |
discounts.order_discounts | array of object | |
discounts.order_discounts[].id | string | |
discounts.order_discounts[].name | string | |
discounts.order_discounts[].adjustment | any | |
discounts.order_discounts[].hours | object or null | |
discounts.order_discounts[].hours.days | array of "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | |
discounts.order_discounts[].hours.start_minute | integer | |
discounts.order_discounts[].hours.end_minute | integer | |
discounts.order_discounts[].category_ids | array of string | |
discounts.order_discounts[].max_per_order | integer or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/orders
Orders of one location by ended business day: a date range, or every day changed since a checkpoint
Scope: orders:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
cursor | string | No | |
limit | integer | No | |
from | string (YYYY-MM-DD) | No | |
to | string (YYYY-MM-DD) | No | |
updated_since | string | No | |
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
data | array of object | |
data[].id | string | |
data[].location | string | |
data[].number | integer or null | |
data[].business_date | string | |
data[].version | string | |
data[].origin | "pos" | "online" | "kiosk" | "third_party" | |
data[].platform | string or null | |
data[].fulfillment | string | |
data[].status | "open" | "in_progress" | "ready" | "fulfilled" | "canceled" | |
data[].created | string or null | |
data[].needed | string | |
data[].note | string or null | |
data[].currency | string | |
data[].amounts | object | |
data[].amounts.item_sales | integer | |
data[].amounts.discount | integer | |
data[].amounts.saved | integer | |
data[].amounts.service_charge | integer | |
data[].amounts.tax | integer | |
data[].amounts.tip | integer | |
data[].amounts.fee | integer | |
data[].amounts.selflane | integer | |
data[].amounts.adjustment | integer | |
data[].amounts.deduction | integer | |
data[].amounts.gift | integer | |
data[].amounts.third_party | integer | |
data[].amounts.total | integer | |
data[].items | array of object | |
data[].items[].item_id | string or null | |
data[].items[].name | string | |
data[].items[].quantity | number | |
data[].items[].price | integer | |
data[].items[].unit_price | integer | |
data[].items[].percent_off | number | |
data[].items[].seat | integer | |
data[].items[].note | string or null | |
data[].items[].modifiers | array of object | |
data[].items[].modifiers[].name | string | |
data[].items[].modifiers[].options | array of object | |
data[].items[].modifiers[].options[].name | string | |
data[].items[].modifiers[].options[].price | integer | |
data[].items[].modifiers[].options[].quantity | number | |
data[].items[].modifiers[].sub_options | array of object | |
data[].items[].modifiers[].sub_options[].name | string | |
data[].items[].modifiers[].sub_options[].quantity | number | |
data[].tenders | array of object | |
data[].tenders[].method | string | |
data[].tenders[].amount | integer | |
data[].tenders[].tip | integer | |
data[].tenders[].payment_id | string or null | |
data[].tenders[].card | object or null | |
data[].tenders[].card.brand | string or null | |
data[].tenders[].card.last4 | string or null | |
data[].customer | object | May be absent. |
data[].customer.name | string or null | |
data[].customer.phone | string or null | |
data[].customer.email | string or null | |
next_cursor | string or null | |
checkpoint | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/orders/today
Orders of one location's business day in progress, optionally only some statuses
Scope: orders:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
cursor | string | No | |
limit | integer | No | |
status | string | No | |
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
data | array of object | |
data[].id | string | |
data[].location | string | |
data[].number | integer or null | |
data[].business_date | string | |
data[].version | string | |
data[].origin | "pos" | "online" | "kiosk" | "third_party" | |
data[].platform | string or null | |
data[].fulfillment | string | |
data[].status | "open" | "in_progress" | "ready" | "fulfilled" | "canceled" | |
data[].created | string or null | |
data[].needed | string | |
data[].note | string or null | |
data[].currency | string | |
data[].amounts | object | |
data[].amounts.item_sales | integer | |
data[].amounts.discount | integer | |
data[].amounts.saved | integer | |
data[].amounts.service_charge | integer | |
data[].amounts.tax | integer | |
data[].amounts.tip | integer | |
data[].amounts.fee | integer | |
data[].amounts.selflane | integer | |
data[].amounts.adjustment | integer | |
data[].amounts.deduction | integer | |
data[].amounts.gift | integer | |
data[].amounts.third_party | integer | |
data[].amounts.total | integer | |
data[].items | array of object | |
data[].items[].item_id | string or null | |
data[].items[].name | string | |
data[].items[].quantity | number | |
data[].items[].price | integer | |
data[].items[].unit_price | integer | |
data[].items[].percent_off | number | |
data[].items[].seat | integer | |
data[].items[].note | string or null | |
data[].items[].modifiers | array of object | |
data[].items[].modifiers[].name | string | |
data[].items[].modifiers[].options | array of object | |
data[].items[].modifiers[].options[].name | string | |
data[].items[].modifiers[].options[].price | integer | |
data[].items[].modifiers[].options[].quantity | number | |
data[].items[].modifiers[].sub_options | array of object | |
data[].items[].modifiers[].sub_options[].name | string | |
data[].items[].modifiers[].sub_options[].quantity | number | |
data[].tenders | array of object | |
data[].tenders[].method | string | |
data[].tenders[].amount | integer | |
data[].tenders[].tip | integer | |
data[].tenders[].payment_id | string or null | |
data[].tenders[].card | object or null | |
data[].tenders[].card.brand | string or null | |
data[].tenders[].card.last4 | string or null | |
data[].customer | object | May be absent. |
data[].customer.name | string or null | |
data[].customer.phone | string or null | |
data[].customer.email | string or null | |
next_cursor | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/staff
Staff who work at one location, with their roles there; pay rates with staff.pay:read
Scope: staff:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
cursor | string | No | |
limit | integer | No | |
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
data | array of object | |
data[].id | string | |
data[].location | string | |
data[].home_location | string | |
data[].employee_id | string or null | |
data[].first_name | string | |
data[].last_name | string | |
data[].display_name | string | |
data[].email | string or null | |
data[].phone | string or null | |
data[].active | boolean | |
data[].terminated_on | string or null | |
data[].created | string or null | |
data[].roles | array of object | |
data[].roles[].id | string | |
data[].roles[].name | string | |
data[].roles[].department | object or null | |
data[].roles[].department.id | string | |
data[].roles[].department.name | string | |
data[].roles[].pay | object | May be absent. |
data[].roles[].pay.type | string | |
data[].roles[].pay.rate | integer | |
data[].roles[].pay.currency | string | |
data[].salary | object or null | May be absent. |
data[].salary.amount | integer | |
data[].salary.currency | string | |
data[].salary.period | "week" | "month" | "year" | |
data[].salary.effective | string | |
data[].salary.share | integer | |
next_cursor | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/reports/staff
Sales per staff member, gift card sales included, over one location's ended business days
Scope: reports:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
from | string (YYYY-MM-DD) | Yes | |
to | string (YYYY-MM-DD) | Yes | |
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
location | string | |
from | string | |
to | string | |
currency | string | |
days | array of string | |
incomplete_days | array of string | |
data | array of object | |
data[].staff | string or null | |
data[].name | string | |
data[].orders | integer | |
data[].net_sales | integer | |
data[].tip | integer | |
data[].gift_card_sales | integer | |
data[].gift_card_orders | integer | |
data[].total | integer |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/timecards
Timecards (clock-ins, breaks, declared cash tips) at one location, by the business day of the clock-in
Scope: timecards:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
cursor | string | No | |
limit | integer | No | |
from | string (YYYY-MM-DD) | Yes | |
to | string (YYYY-MM-DD) | Yes | |
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
data | array of object | |
data[].id | string | |
data[].location | string | |
data[].staff_id | string | |
data[].staff_name | string or null | |
data[].role | object | |
data[].role.id | string or null | |
data[].role.name | string or null | |
data[].business_date | string | |
data[].status | "open" | "closed" | "canceled" | |
data[].clock_in | string | |
data[].clock_out | string or null | |
data[].breaks | array of object | |
data[].breaks[].start | string | |
data[].breaks[].end | string or null | |
data[].breaks[].paid | boolean | |
data[].worked_minutes | number or null | |
data[].declared_cash_tip | integer | |
data[].currency | string | |
data[].hourly_rate | integer | May be absent. |
next_cursor | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After
GET /v1/cash-drawers
Cash drawer sessions at one location with their counts, by business day
Scope: cash:read
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
cursor | string | No | |
limit | integer | No | |
from | string (YYYY-MM-DD) | Yes | |
to | string (YYYY-MM-DD) | Yes | |
location | string | No | Required when the key covers more than one location. |
Response fields
| Field | Type | Notes |
|---|---|---|
data | array of object | |
data[].id | string | |
data[].location | string | |
data[].drawer | integer | |
data[].mode | "daily" | "carry_over" | |
data[].business_date | string | |
data[].status | "open" | "closed" | |
data[].currency | string | |
data[].opened_at | string | |
data[].opened_by | object or null | |
data[].opened_by.id | string or null | |
data[].opened_by.name | string or null | |
data[].opening_float | integer | |
data[].closed_at | string or null | |
data[].closed_by | object or null | |
data[].closed_by.id | string or null | |
data[].closed_by.name | string or null | |
data[].expected | object or null | |
data[].expected.opening | integer | |
data[].expected.cash_sales | integer | |
data[].expected.cash_refunds | integer | |
data[].expected.pay_ins | integer | |
data[].expected.pay_outs | integer | |
data[].expected.total | integer | |
data[].counted | integer or null | |
data[].variance | integer or null | |
data[].deposit | integer or null | |
data[].leave_in | integer or null | |
data[].expected_incomplete | boolean | |
data[].previous_session | string or null | |
data[].next_session | string or null | |
data[].counts | array of object | |
data[].counts[].id | string | |
data[].counts[].kind | "open" | "close" | "spot" | |
data[].counts[].amount | integer | |
data[].counts[].counted_at | string or null | |
data[].counts[].counted_by | object or null | |
data[].counts[].counted_by.id | string or null | |
data[].counts[].counted_by.name | string or null | |
data[].counts[].denominations | array of object | |
data[].counts[].denominations[].denomination | integer | |
data[].counts[].denominations[].quantity | integer | |
data[].counts[].denominations[].amount | integer | |
next_cursor | string or null |
Errors
400: Invalid request401: Missing, unknown, revoked or expired API key403: Missing scope, a location the key does not cover, or a location without the API on its plan429: Rate limited; see Retry-After503: Temporarily unavailable; retry after Retry-After