Skip to main content

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

This endpoint requires authentication. Include your JWT in the x-token header. See Authentication for how to obtain a token and Errors for error responses.

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_at is omitted, the server uses the current timestamp.
  • The closed_at value must be later than the receipt’s created_at timestamp.
  • After closing, the receipt’s status changes to 2 (closed).