SmartGare
API referenceEndpoints

Close a cash-register session

Counts the register down against its theoretical balance and stores the difference. **Required permission:** `ticketing.cash-register:write`

POST/ticketing/v1/cash-registers/{id}/closure

Counts the register down against its theoretical balance and stores the difference.

Required permission: ticketing.cash-register:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CloseCashRegisterSessionRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/ticketing/v1/cash-registers/string/closure" \  -H "Content-Type: application/json" \  -d '{    "counted_amount": 0  }'
{  "closed_at": "2019-08-24T14:15:22Z",  "counted_amount": 0,  "currency": "string",  "difference": 0,  "id": "string",  "theoretical_balance": 0}