> For the complete documentation index, see [llms.txt](https://developers.portos.sk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.portos.sk/api-reference/tickets/ticket-model-states.md).

# Ticket Model States

Understanding the Various Phases of Tickets

A [ticket](/data-models.md#ticket), depending on its state, represents either a customer order or a printed receipt. The ticket has two defined states:

* **Opened**: Represents a customer order that has not been paid yet.
* **Closed**: Once the ticket is printed on the receipt printer (or sent as e-mail receipt), it is marked as closed and becomes uneditable.

You can determine whether a ticket is closed by checking the value of the `closeInfo` and `closeDate` properties. If the value both properties is `null`, the ticket is *open* and can be edited. If the values are not `null`, the ticket is *closed*, and the `closeInfo` value contains information about the closing procedure. This information includes details such as the [fiscal printer](/api-reference/fiscals.md) name, receipt sequence number and the unique receipt identifier provided by the tax authority (Finančná správa in Slovakia).
