Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • session_idstringrequired

    The session's ID, like pses_01k8qs5s….

Headers

  • x-pos-clerkstringrequired

    The clerk's unlock

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • counted_cashintegerrequired

    Cash counted in the drawer, minor units.

  • countobject · or null

    Counted note by note; must add up to counted_cash.

  • notestring · or null

Returns

200 Closed: the session.

Errors

  • 409Already closed.
  • 422validation_failedA note is needed, or the count doesn't add up.