GUIDES / REGISTER CLOSING

Register closing.

Build your own end-of-day workflow: read what the drawer should hold, submit the count, ask a manager to review a variance, and close. Simple computes every amount and enforces approval; your app never decides whether cash is right.

The flow

Permissions: registers:read to read, registers:count to count and request review, registers:close to close. A session moves from open to closing once counted, to waiting_for_approval if a variance needs review, and to closed. Subscribe to register_session.* webhooks to follow it without polling.

1. Find the session

curl "$SIMPLE_API_BASE_URL/api/v1/public/cash-registers?store_id=$STORE_ID" \
  --header "Authorization: Bearer $SIMPLE_API_KEY"

curl "$SIMPLE_API_BASE_URL/api/v1/public/cash-registers/$REGISTER_ID/current-session" \
  --header "Authorization: Bearer $SIMPLE_API_KEY"

2. Read what is expected

The closing summary is a consistent snapshot: opening float, expected cash, sales, tax, tips, payouts and totals by payment method. The ledger is at /register-sessions/{session_id}/transactions and contains no card or customer data.

curl "$SIMPLE_API_BASE_URL/api/v1/public/register-sessions/$SESSION_ID/closing-summary" \
  --header "Authorization: Bearer $SIMPLE_API_KEY"

3. Submit the count

Send what is physically in the drawer by denomination; an empty drawer is an empty list. Simple returns the counted total, expected total and variance. Counting again replaces the previous count and cancels any earlier approval. Denominations are validated for USD and EUR stores.

curl --request PUT "$SIMPLE_API_BASE_URL/api/v1/public/register-sessions/$SESSION_ID/cash-count" \
  --header "Authorization: Bearer $SIMPLE_API_KEY" \
  --header "Idempotency-Key: $(uuidgen)" --header "Content-Type: application/json" \
  --data '{
    "denominations": [
      { "value": "20.00", "quantity": 3 },
      { "value": "10.00", "quantity": 2 },
      { "value": "0.25", "quantity": 4 }
    ],
    "notes": "Counted twice"
  }'
{ "id": "…", "status": "closing", "currency": "USD",
  "counted_cash": "81.00", "expected_cash": "80.50", "variance": "0.50",
  "approval_status": "required", "updated_at": "…" }

4. Request review

If approval_status is required, ask for a manager's review. The manager approves or rejects in Simple; there is deliberately no API to approve, so an integration can never approve its own variance.

curl --request POST "$SIMPLE_API_BASE_URL/api/v1/public/register-sessions/$SESSION_ID/approval-requests" \
  --header "Authorization: Bearer $SIMPLE_API_KEY" --header "Idempotency-Key: $(uuidgen)"

5. Close

Closing returns the closed session and its final summary.

curl --request POST "$SIMPLE_API_BASE_URL/api/v1/public/register-sessions/$SESSION_ID/close" \
  --header "Authorization: Bearer $SIMPLE_API_KEY" \
  --header "Idempotency-Key: $(uuidgen)" --header "Content-Type: application/json" \
  --data '{ "notes": "End of day" }'

Rules Simple enforces

  • A session can be counted while it is open, closing or waiting for approval, and closed only while open or closing.
  • Closing needs a count. If the drawer changed after counting (a sale or payout), you get 409 and must recount.
  • Any variance must be approved by a manager before closing; a pending or rejected review blocks the close.
  • The key's issuer is recorded as the actor for audit.