Skip to Content
DevelopersAPI Reference

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 location
  • GET /v1/locations: The locations this API key covers
  • GET /v1/reports: Daily sales summaries of one location, one entry per ended business day with orders
  • GET /v1/payouts: Stripe payouts of the account one location trades on, by arrival date
  • GET /v1/payments: Card payments at one location across processors, with their refunds and disputes
  • GET /v1/menu: The current menu of one location: categories, items, modifier groups, taxes and discounts
  • GET /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

NameTypeRequiredNotes
locationstringNoRequired when the key covers more than one location.

Response fields

FieldTypeNotes
idstring
locationstring
namestring
timezonestring
currencystring
websitestring or null
addressobject
address.line1string or null
address.line2string or null
address.citystring or null
address.statestring or null
address.postal_codestring or null
address.countrystring or null

Errors

  • 400: Invalid request
  • 401: Missing, unknown, revoked or expired API key
  • 403: Missing scope, a location the key does not cover, or a location without the API on its plan
  • 429: Rate limited; see Retry-After
  • 503: Temporarily unavailable; retry after Retry-After

GET /v1/locations

The locations this API key covers

Scope: business:read

Query parameters

NameTypeRequiredNotes
locationstringNoNarrows the list to one of the key's locations.

Response fields

FieldTypeNotes
dataarray of object
data[].idstring
data[].locationstring
data[].namestring
data[].timezonestring
next_cursorstring or null

Errors

  • 400: Invalid request
  • 401: Missing, unknown, revoked or expired API key
  • 403: Missing scope, a location the key does not cover, or a location without the API on its plan
  • 429: Rate limited; see Retry-After
  • 503: 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

NameTypeRequiredNotes
fromstring (YYYY-MM-DD)Yes
tostring (YYYY-MM-DD)Yes
locationstringNoRequired when the key covers more than one location.

Response fields

FieldTypeNotes
dataarray of object
data[].datestring
data[].locationstring
data[].beginstring
data[].endstring
data[].versionstring
data[].currencystring
data[].ordersobject
data[].orders.countinteger
data[].orders.openinteger
data[].orders.closedinteger
data[].orders.canceledinteger
data[].orders.canceled_amountinteger
data[].salesobject
data[].sales.item_salesinteger
data[].sales.discountinteger
data[].sales.savedinteger
data[].sales.service_chargeinteger
data[].sales.net_salesinteger
data[].sales.taxinteger
data[].sales.tipinteger
data[].sales.feeinteger
data[].sales.selflaneobject
data[].sales.selflane.totalinteger
data[].sales.selflane.service_feeinteger
data[].sales.selflane.delivery_feeinteger
data[].sales.selflane.delivery_tipinteger
data[].sales.adjustmentinteger
data[].sales.deductioninteger
data[].sales.giftinteger
data[].sales.third_partyinteger
data[].sales.totalinteger
data[].paymentsarray of object
data[].payments[].methodstring
data[].payments[].amountinteger
data[].payments[].tipinteger
data[].payments[].countinteger
next_cursorstring or null

Errors

  • 400: Invalid request
  • 401: Missing, unknown, revoked or expired API key
  • 403: Missing scope, a location the key does not cover, or a location without the API on its plan
  • 429: Rate limited; see Retry-After
  • 503: 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

NameTypeRequiredNotes
cursorstringNo
limitintegerNo
fromstring (YYYY-MM-DD)Yes
tostring (YYYY-MM-DD)Yes
locationstringNoRequired when the key covers more than one location.

Response fields

FieldTypeNotes
dataarray of object
data[].idstring
data[].locationstring
data[].stripe_payout_idstring
data[].account_sharedboolean
data[].amountinteger
data[].currencystring
data[].status"pending" | "in_transit" | "paid" | "failed" | "canceled"
data[].failure_codestring or null
data[].automaticboolean
data[].arrival_datestring
data[].createdstring or null
data[].reconciledboolean
data[].breakdownobject or null
data[].breakdown.chargesinteger
data[].breakdown.refundsinteger
data[].breakdown.feesinteger
data[].breakdown.adjustmentsinteger
data[].breakdown.transfersinteger
data[].breakdown.withheldinteger
data[].breakdown.otherinteger
data[].breakdown.netinteger
data[].channelsarray of object
data[].channels[].methodstring
data[].channels[].amountinteger
data[].channels[].countinteger
data[].business_daysarray of object
data[].business_days[].datestring
data[].business_days[].amountinteger
data[].business_days[].countinteger
data[].unmatchedobject or null
data[].unmatched.amountinteger
data[].unmatched.countinteger
next_cursorstring or null

Errors

  • 400: Invalid request
  • 401: Missing, unknown, revoked or expired API key
  • 403: Missing scope, a location the key does not cover, or a location without the API on its plan
  • 429: Rate limited; see Retry-After
  • 503: 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

NameTypeRequiredNotes
cursorstringNo
limitintegerNo
fromstring (YYYY-MM-DD)Yes
tostring (YYYY-MM-DD)Yes
locationstringNoRequired when the key covers more than one location.

Response fields

FieldTypeNotes
dataarray of object
data[].idstring
data[].locationstring
data[].processor"stripe" | "pax"
data[].type"sale" | "return"
data[].status"succeeded" | "pending" | "canceled" | "failed"
data[].amountinteger
data[].tipinteger or null
data[].application_feeinteger or null
data[].amount_refundedinteger
data[].currencystring
data[].createdstring
data[].orderstring or null
data[].cardobject or null
data[].card.brandstring or null
data[].card.last4string or null
data[].refundsarray of object
data[].refunds[].idstring
data[].refunds[].amountinteger
data[].refunds[].currencystring
data[].refunds[].statusstring
data[].refunds[].createdstring
data[].disputesarray of object
data[].disputes[].idstring
data[].disputes[].amountinteger
data[].disputes[].currencystring
data[].disputes[].statusstring or null
data[].disputes[].reasonstring or null
data[].disputes[].createdstring or null
next_cursorstring or null

Errors

  • 400: Invalid request
  • 401: Missing, unknown, revoked or expired API key
  • 403: Missing scope, a location the key does not cover, or a location without the API on its plan
  • 429: Rate limited; see Retry-After
  • 503: 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

NameTypeRequiredNotes
locationstringNoRequired when the key covers more than one location.

Response fields

FieldTypeNotes
locationstring
currencystring
channel_markupsobject
channel_markups.onlineany or null
channel_markups.third_partyany or null
menusarray of object
menus[].idstring
menus[].namestring
menus[].descriptionstring or null
menus[].sold_outboolean
menus[].hidden_onlineboolean
menus[].third_partyboolean
menus[].cateringboolean
menus[].hoursarray of object or null
menus[].hours.daysarray of "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday"
menus[].hours.start_minuteinteger
menus[].hours.end_minuteinteger
categoriesarray of object
categories[].idstring
categories[].namestring
categories[].descriptionstring or null
categories[].sort_ordernumber
categories[].sold_outboolean
categories[].hidden_onlineboolean
categories[].third_partyboolean
categories[].classification"food" | "merchandise" | "beverage" | "alcohol" | "service" | "retail"
categories[].report_groupstring
categories[].tax_idsarray of string
itemsarray of object
items[].idstring
items[].namestring
items[].kitchen_namestring or null
items[].descriptionstring or null
items[].category_idstring or null
items[].menu_idsarray of string
items[].modifier_group_idsarray of string
items[].priceinteger
items[].open_priceboolean
items[].unitstring or null
items[].online_upchargeinteger
items[].third_party_upchargeinteger
items[].percent_offnumber
items[].sold_outboolean
items[].hidden_onlineboolean
items[].third_partyboolean
items[].daily_limitinteger or null
items[].skustring or null
items[].upcstring or null
items[].tagsarray of string
items[].image_urlstring or null
items[].tax_idsarray of string
modifier_groupsarray of object
modifier_groups[].idstring
modifier_groups[].namestring
modifier_groups[].requiredboolean
modifier_groups[].min_selectionsinteger
modifier_groups[].max_selectionsinteger
modifier_groups[].onlineboolean
modifier_groups[].sold_outboolean
modifier_groups[].sub_options_half_and_halfboolean
modifier_groups[].sub_options_quantityboolean
modifier_groups[].optionsarray of object
modifier_groups[].options[].idstring
modifier_groups[].options[].namestring
modifier_groups[].options[].kitchen_namestring or null
modifier_groups[].options[].priceinteger
modifier_groups[].options[].max_quantityinteger
modifier_groups[].options[].preselectedboolean
modifier_groups[].options[].includedboolean
modifier_groups[].options[].onlineboolean
modifier_groups[].options[].sold_outboolean
modifier_groups[].options[].sub_optionsobject or null
modifier_groups[].options[].sub_options.unit_priceinteger
modifier_groups[].options[].sub_options.boosted_priceinteger
modifier_groups[].options[].sub_options.free_quantityinteger
modifier_groups[].options[].sub_options.max_quantityinteger
modifier_groups[].sub_optionsarray of object
modifier_groups[].sub_options[].idstring
modifier_groups[].sub_options[].namestring
modifier_groups[].sub_options[].includedboolean
modifier_groups[].sub_options[].price_tier"unit" | "boosted"
modifier_groups[].sub_options[].free_quantityinteger
taxesarray of object
taxes[].idstring
taxes[].namestring
taxes[].rate_percentnumber
taxes[].inclusiveboolean
taxes[].category_idsarray of string
taxes[].excluded_order_typesarray of "dinein" | "pickup" | "delivery" | "curbside" | "drive" | "qrcode" | "retail"
discountsobject
discounts.price_rulesarray of object
discounts.price_rules[].idstring
discounts.price_rules[].namestring or null
discounts.price_rules[].trigger"automatic" | "manager_approval" | "member_automatic" | "member_manager_approval"
discounts.price_rules[].member_tierinteger or null
discounts.price_rules[].hoursobject or null
discounts.price_rules[].hours.daysarray of "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday"
discounts.price_rules[].hours.start_minuteinteger
discounts.price_rules[].hours.end_minuteinteger
discounts.price_rules[].menu_idsarray of string
discounts.price_rules[].category_idsarray of string
discounts.price_rules[].item_idsarray of string
discounts.price_rules[].adjustmentany
discounts.price_rules[].excluded_order_typesarray of "dinein" | "pickup" | "delivery" | "curbside" | "drive" | "qrcode" | "retail"
discounts.order_discountsarray of object
discounts.order_discounts[].idstring
discounts.order_discounts[].namestring
discounts.order_discounts[].adjustmentany
discounts.order_discounts[].hoursobject or null
discounts.order_discounts[].hours.daysarray of "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday"
discounts.order_discounts[].hours.start_minuteinteger
discounts.order_discounts[].hours.end_minuteinteger
discounts.order_discounts[].category_idsarray of string
discounts.order_discounts[].max_per_orderinteger or null

Errors

  • 400: Invalid request
  • 401: Missing, unknown, revoked or expired API key
  • 403: Missing scope, a location the key does not cover, or a location without the API on its plan
  • 429: Rate limited; see Retry-After
  • 503: 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

NameTypeRequiredNotes
cursorstringNo
limitintegerNo
fromstring (YYYY-MM-DD)No
tostring (YYYY-MM-DD)No
updated_sincestringNo
locationstringNoRequired when the key covers more than one location.

Response fields

FieldTypeNotes
dataarray of object
data[].idstring
data[].locationstring
data[].numberinteger or null
data[].business_datestring
data[].versionstring
data[].origin"pos" | "online" | "kiosk" | "third_party"
data[].platformstring or null
data[].fulfillmentstring
data[].status"open" | "in_progress" | "ready" | "fulfilled" | "canceled"
data[].createdstring or null
data[].neededstring
data[].notestring or null
data[].currencystring
data[].amountsobject
data[].amounts.item_salesinteger
data[].amounts.discountinteger
data[].amounts.savedinteger
data[].amounts.service_chargeinteger
data[].amounts.taxinteger
data[].amounts.tipinteger
data[].amounts.feeinteger
data[].amounts.selflaneinteger
data[].amounts.adjustmentinteger
data[].amounts.deductioninteger
data[].amounts.giftinteger
data[].amounts.third_partyinteger
data[].amounts.totalinteger
data[].itemsarray of object
data[].items[].item_idstring or null
data[].items[].namestring
data[].items[].quantitynumber
data[].items[].priceinteger
data[].items[].unit_priceinteger
data[].items[].percent_offnumber
data[].items[].seatinteger
data[].items[].notestring or null
data[].items[].modifiersarray of object
data[].items[].modifiers[].namestring
data[].items[].modifiers[].optionsarray of object
data[].items[].modifiers[].options[].namestring
data[].items[].modifiers[].options[].priceinteger
data[].items[].modifiers[].options[].quantitynumber
data[].items[].modifiers[].sub_optionsarray of object
data[].items[].modifiers[].sub_options[].namestring
data[].items[].modifiers[].sub_options[].quantitynumber
data[].tendersarray of object
data[].tenders[].methodstring
data[].tenders[].amountinteger
data[].tenders[].tipinteger
data[].tenders[].payment_idstring or null
data[].tenders[].cardobject or null
data[].tenders[].card.brandstring or null
data[].tenders[].card.last4string or null
data[].customerobjectMay be absent.
data[].customer.namestring or null
data[].customer.phonestring or null
data[].customer.emailstring or null
next_cursorstring or null
checkpointstring or null

Errors

  • 400: Invalid request
  • 401: Missing, unknown, revoked or expired API key
  • 403: Missing scope, a location the key does not cover, or a location without the API on its plan
  • 429: Rate limited; see Retry-After
  • 503: Temporarily unavailable; retry after Retry-After
Last updated on