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. Back Office still shows Reports as Coming soon, so owners can’t add it to a key yet. 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.
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.
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. |
See Errors for the codes every endpoint shares.