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"| Parameter | Required | Notes |
|---|---|---|
from | Yes | First business day, YYYY-MM-DD |
to | Yes | Last business day, inclusive. At most 92 days counting both ends. |
location | When the key covers several locations | One 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) andend(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.
| Field | Meaning |
|---|---|
orders.count | Open and closed orders. Canceled orders aren't included. |
orders.closed | Orders closed that day. |
orders.open | Orders not yet closed, paid or unpaid. They're in the totals. A day with open orders hasn't settled. |
orders.canceled, orders.canceled_amount | Canceled orders and what they totaled. They're in no other field. |
sales.item_sales | Item prices after in-store discounts, before online coupon savings |
sales.discount | In-store discounts, fixed and percent. Already out of item_sales. |
sales.saved | Online coupon savings |
sales.service_charge | Service charges |
sales.net_sales | item_sales − saved + service_charge. Back Office calls this net sales. |
sales.tax, sales.tip, sales.fee | Tax, tips, and the order fee. Never inside net sales. |
sales.selflane | Selflane's charges to the customer: service_fee, delivery_fee, and delivery_tip, with their total |
sales.adjustment | Cash discount and rounding lines. Can be negative. |
sales.deduction | After-tax deductions, including untaxed refunds, as a negative amount |
sales.gift | Gift cards sold on orders |
sales.third_party | For information only. Not in total. |
sales.total | What customers paid |
payments | Collected 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[].amount | Collected by that method |
payments[].tip | Tips collected by that method |
payments[].count | Number 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, andtax. An untaxed refund lowersdeductionandtotal. 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.
- On every sync, re-pull the last 45 days.
- Store each day's
version. Replace a stored day when itsversiondiffers. - If you re-pull an older day and its
versionhas 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, andendare the day in progress, soendis in the future.versionis 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 theirversion.- Before the day's first sale, every count and amount is
0, andversionis 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
| Status | code | When |
|---|---|---|
400 | invalid_parameter | from or to is missing or not a calendar date. param names it. |
400 | invalid_date_range | to is before from, or the range covers more than 92 days |
403 | insufficient_scope | The key lacks reports:read |
503 | replica_unavailable, report_timeout | Reports are briefly unavailable. Retry after Retry-After, or ask for fewer days. |
503 | report_unavailable | Today 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.