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, 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/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 checkpoint
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/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. |
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