Close session
POST
/ admin/ v1/ stores/ {store_id}/ pos/ sessions/ {session_id}/ close- Idempotency-Key supported
Closes the session with the cash counted; the drawer's working is kept beside the count. A count further off than the store allows needs a note. Requires the clerk's unlock.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.session_idstringrequiredThe session's ID, like
pses_01k8qs5s….
Headers
x-pos-clerkstringrequiredThe clerk's unlock
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
counted_cashintegerrequiredCash counted in the drawer, minor units.
countobject · or nullCounted note by note; must add up to
counted_cash.notestring · or null
Returns
200 Closed: the session.
Errors
- 409Already closed.
- 422
validation_failedA note is needed, or the count doesn't add up.