Skip to Content

Daily sales

GET /v1/reports returns one location's sales summary for each business day. Every total matches the Back Office sales page for the same day, because both read the same daily record.

Needs the reports:read scope (Reports in Back Office). See Scopes.

Request

curl "https://developer.selflane.com/v1/reports?location=64b0c1e2f3a4b5c6d7e8f901&from=2026-11-01&to=2026-11-30" \
  -H "Authorization: Bearer $SELFLANE_API_KEY"
ParameterRequiredNotes
fromYesFirst business day, YYYY-MM-DD
toYesLast business day, inclusive. At most 92 days counting both ends.
locationWhen the key covers several locationsOne of the key's locations

The response has one entry per ended business day that had orders, in date order. A day with no orders has no entry. The whole range always fits on one page.

Business days

  • A business day starts at the location's POS start hour, in its timezone, not at midnight.
  • begin (inclusive) and end (exclusive) are UTC. A daylight-saving day is 23 or 25 hours long.
  • An order belongs to the day of its scheduled time.
  • A day appears after it ends and is rebuilt, usually within the hour. Today's business day isn't returned; read it from Sales so far today.

Fields

All money is integer cents in currency.

FieldMeaning
orders.countOpen and closed orders. Canceled orders aren't included.
orders.closedOrders closed that day.
orders.openOrders not yet closed, paid or unpaid. They're in the totals. A day with open orders hasn't settled.
orders.canceled, orders.canceled_amountCanceled orders and what they totaled. They're in no other field.
sales.item_salesItem prices after in-store discounts, before online coupon savings
sales.discountIn-store discounts, fixed and percent. Already out of item_sales.
sales.savedOnline coupon savings
sales.service_chargeService charges
sales.net_salesitem_sales − saved + service_charge. Back Office calls this net sales.
sales.tax, sales.tip, sales.feeTax, tips, and the order fee. Never inside net sales.
sales.selflaneSelflane's charges to the customer: service_fee, delivery_fee, and delivery_tip, with their total
sales.adjustmentCash discount and rounding lines. Can be negative.
sales.deductionAfter-tax deductions, including untaxed refunds, as a negative amount
sales.giftGift cards sold on orders
sales.third_partyFor information only. Not in total.
sales.totalWhat customers paid
paymentsCollected payments by method: card (in-store card), stripe, cash, check, gift (gift card redeemed), excard (an external card terminal), online (Selflane online), or other. Unpaid open orders aren't here. Accept new methods without failing.
payments[].amountCollected by that method
payments[].tipTips collected by that method
payments[].countNumber of payments by that method

Refunds and voids

  • A partial refund lowers the original order, so it counts on the order's day, not the refund's day.
  • A taxed refund lowers item_sales, net_sales, and tax. An untaxed refund lowers deduction and total. There's no separate refunds field.
  • A voided item or charge changes the day the order belongs to.

Keep your copy current

An ended day can still change. Within 45 days, it's rebuilt after a void, a reopen, an added item, a partial refund, a delivery fee change, a discount on a gift card sale, or a merged or split order. An owner can rebuild any older day from Back Office. Each day's version is when it was last built.

  1. On every sync, re-pull the last 45 days.
  2. Store each day's version. Replace a stored day when its version differs.
  3. If you re-pull an older day and its version has changed, replace it too.

Monthly totals aren't offered. Sum the days.

Sales so far today

GET /v1/reports/today returns the sales so far in the location's business day in progress. Its only parameter is location, under the same rule as above.

curl "https://developer.selflane.com/v1/reports/today?location=64b0c1e2f3a4b5c6d7e8f901" \
  -H "Authorization: Bearer $SELFLANE_API_KEY"
  • The response is one day with the same fields, not a list.
  • date, begin, and end are the day in progress, so end is in the future.
  • version is when the totals were computed. They include every sale up to then. When a sale has changed since, the totals are computed again before they're returned. If that fails, you get the last computed totals and their version.
  • Before the day's first sale, every count and amount is 0, and version is the time of your request.
  • The totals keep changing until the day ends. Store ended days from GET /v1/reports, not from this endpoint.

Errors

StatuscodeWhen
400invalid_parameterfrom or to is missing or not a calendar date. param names it.
400invalid_date_rangeto is before from, or the range covers more than 92 days
403insufficient_scopeThe key lacks reports:read
503replica_unavailable, report_timeoutReports are briefly unavailable. Retry after Retry-After, or ask for fewer days.
503report_unavailableToday has sales, but they haven't been computed yet and can't be right now. Retry after Retry-After.

See Errors for the codes every endpoint shares.

On this page