Purpose
Close an existing receipt by updating its payment methods and setting the closing timestamp. This endpoint is used to finalize a receipt that was previously created but not yet closed.HTTP Request
Path Parameters
Request Body
payment_methods[]
Request Example
Response
200 OK — Receipt Closed
400 Bad Request — Validation Error
404 Not Found — Receipt Not Found
Field Reference
Response fields
payment_methods[]
Notes
- The receipt must be in an open state (
status: 1) to be closed through this endpoint. - If
closed_atis omitted, the server uses the current timestamp. - The
closed_atvalue must be later than the receipt’screated_attimestamp. - After closing, the receipt’s
statuschanges to2(closed).