Skip to Content
DevelopersCash Drawers

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"
ParameterRequiredNotes
fromYesFirst business day, YYYY-MM-DD
toYesLast business day, inclusive. At most 31 days counting both ends.
limitNoSessions per page, 1 to 200. Default 50.
cursorNoThe next_cursor from the previous page. Works only with the same location, from, and to.
locationWhen the key covers several locationsOne 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.

FieldMeaning
drawerThe drawer number at the location, from 1
modedaily: 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_dateThe session’s business day, YYYY-MM-DD
statusopen 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_byThe 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_floatThe cash the drawer started with
expectedWhat 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.
countedThe closing count
variancecounted less expected.total. Positive is over, negative is short.
deposit, leave_inHow the counted cash was split: taken to the bank, and left in the drawer for the next session. They add up to counted.
expected_incompletetrue 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_sessionSet 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.
countsEvery 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

StatuscodeWhen
400invalid_parameterfrom or to is missing or isn’t a date, or limit isn’t a whole number from 1 to 200. param names it.
400invalid_date_rangeto is before from, or the range covers more than 31 days
400invalid_cursorThe cursor isn’t valid, or wasn’t issued for this location and range
400location_requiredThe key covers several locations and none was named
403insufficient_scopeThe key lacks cash:read
403location_not_permittedThe key doesn’t cover the named location
403plan_requiredThe location isn’t live or is below the POS plan
404location_missingThe location no longer exists
503replica_unavailableCash drawers are briefly unavailable. Retry after Retry-After.
503cash_drawer_timeoutThe request took too long. Retry after Retry-After, or ask for fewer days.

See Errors for the codes every endpoint shares.

Last updated on