Cash Drawers
GET /v1/cash-drawers lists one location’s cash drawer sessions for a range of business days. A session runs from when a drawer opens until its closing count, and includes every count taken during it. Use it to send drawer variances and bank deposits to an accounting system.
Needs the cash:read scope (Cash in Back Office). See Scopes.
Request
curl "https://developer.selflane.com/v1/cash-drawers?location=64b0c1e2f3a4b5c6d7e8f901&from=2026-11-01&to=2026-11-15" \
-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 31 days counting both ends. |
limit | No | Sessions per page, 1 to 200. Default 50. |
cursor | No | The next_cursor from the previous page. Works only with the same location, from, and to. |
location | When the key covers several locations | One of the key’s locations |
A business day starts at the location’s POS start hour, in its timezone. A session belongs to its business_date: in daily mode, the business day the drawer was opened or closed for. In carry-over mode, the day it was opened.
Sessions come in opening order. Keep requesting with cursor until next_cursor is null.
Response
{
"data": [
{
"id": "6741a1b2c3d4e5f6a7b8c9d0",
"location": "64b0c1e2f3a4b5c6d7e8f901",
"drawer": 1,
"mode": "daily",
"business_date": "2026-11-20",
"status": "closed",
"currency": "usd",
"opened_at": "2026-11-20T15:00:00.000Z",
"opened_by": { "id": "65a1c2d3e4f5a6b7c8d9e0f1", "name": "Sam L" },
"opening_float": 15000,
"closed_at": "2026-11-21T01:00:00.000Z",
"closed_by": { "id": "65a1c2d3e4f5a6b7c8d9e0f1", "name": "Sam L" },
"expected": { "opening": 15000, "cash_sales": 80240, "cash_refunds": 0, "pay_ins": 0, "pay_outs": 2550, "total": 92690 },
"counted": 92090,
"variance": -600,
"deposit": 77090,
"leave_in": 15000,
"expected_incomplete": false,
"previous_session": null,
"next_session": null,
"counts": [
{
"id": "6743a1b2c3d4e5f6a7b8c9d0",
"kind": "open",
"amount": 15000,
"counted_at": "2026-11-20T15:01:00.000Z",
"counted_by": { "id": "65a1c2d3e4f5a6b7c8d9e0f1", "name": "Sam L" },
"denominations": [
{ "denomination": 2000, "quantity": 5, "amount": 10000 },
{ "denomination": 1000, "quantity": 5, "amount": 5000 }
]
},
{
"id": "6744a1b2c3d4e5f6a7b8c9d0",
"kind": "close",
"amount": 92090,
"counted_at": "2026-11-21T00:59:00.000Z",
"counted_by": { "id": "65a1c2d3e4f5a6b7c8d9e0f1", "name": "Sam L" },
"denominations": []
}
]
}
],
"next_cursor": null
}Fields
All money is integer cents in currency. Times are UTC.
| Field | Meaning |
|---|---|
drawer | The drawer number at the location, from 1 |
mode | daily: one session per drawer per business day. carry_over: the session stays open across days until a closing count resets it. Set in POS settings. |
business_date | The session’s business day, YYYY-MM-DD |
status | open or closed. While open, closed_at, closed_by, expected, counted, variance, deposit, and leave_in are null. A daily session nobody closed stays open after its day. |
opened_by, closed_by, counted_by | The person’s id in Staff and their name, or null if nobody was recorded. Either id or name can be null on its own. A daily drawer that was closed without being opened has opened_by null and no open count. |
opening_float | The cash the drawer started with |
expected | What the drawer should hold, fixed at close: opening plus cash_sales and pay_ins, less pay_outs. cash_sales is already net of cash refunds, so cash_refunds is 0. It counts only cash that goes into the drawer: 0 when servers keep their cash, and with cash handling by job, only orders whose job uses the drawer. |
counted | The closing count |
variance | counted less expected.total. Positive is over, negative is short. |
deposit, leave_in | How the counted cash was split: taken to the bank, and left in the drawer for the next session. They add up to counted. |
expected_incomplete | true on a closed carry-over session that ran longer than 31 days, so expected leaves out the older cash sales and is short. Always false while open. |
previous_session, next_session | Set when a carry-over closing count started the next session on the same drawer, which opens with leave_in. Always null on daily sessions. The linked session can fall outside your date range. |
counts | Every count tied to the session, oldest first. kind is open, close, or spot (a check during the session). denominations lists the bills and coins as entered, with denomination as the bill or coin value. |
Keep your copy current
A session changes until it closes. On every sync, re-pull from the business_date of your oldest stored open session, or the last few days if none is open, and replace each stored session with the same id. A carry-over session keeps the business day it opened on, even when it closes weeks later.
Errors
| Status | code | When |
|---|---|---|
400 | invalid_parameter | from or to is missing or isn’t a date, or limit isn’t a whole number from 1 to 200. param names it. |
400 | invalid_date_range | to is before from, or the range covers more than 31 days |
400 | invalid_cursor | The cursor isn’t valid, or wasn’t issued for this location and range |
400 | location_required | The key covers several locations and none was named |
403 | insufficient_scope | The key lacks cash:read |
403 | location_not_permitted | The key doesn’t cover the named location |
403 | plan_required | The location isn’t live or is below the POS plan |
404 | location_missing | The location no longer exists |
503 | replica_unavailable | Cash drawers are briefly unavailable. Retry after Retry-After. |
503 | cash_drawer_timeout | The request took too long. Retry after Retry-After, or ask for fewer days. |
See Errors for the codes every endpoint shares.