Status of an order and a transaction
When processing orders with QR Code, it’s important to understand how the processing flow works and which status an order and a transaction can take at any given time.
Below, you can view the flow of an order for card payments and then an informative table about each of the possible status, including their respective status_detail.
stateDiagram-v2
[*] --> created
created --> expired: The processing exceeded the time limit
created --> canceled: Canceled via API
created --> processed: Successfully processed
processed --> refunded: Full refund via API
created: created
expired: expired
canceled: canceled
processed: processed
refunded: refunded
Order status
Check the list of status and status_detail that an order can take.
status | status_detail | Description |
created | created | The order was successfully created. |
processed | processed | The order was successfully processed and the payment was credited. |
refunded | refunded | The order was refunded. This means the transaction amount was fully returned to the payer. |
expired | expired | The order was not paid after the expiration time configured in the order (or 15 minutes by default if no specific time was set). If you want the payment to be made, you will need to create a new order. |
Transaction status
Check the list of status and status_detail that a transaction can take.
status | status_detail | Description |
created | created | The transaction was successfully created, but it has not yet been processed. This is the initial state of a transaction after it is created. |
processed | accredited | The transaction was successfully processed and the amount has been effectively credited. |
expired | expired | The transaction has expired. This means it was not completed within the allowed time and was therefore terminated. |
refunded | refunded | The order has been refunded. This means the amount of the transaction has been fully returned to the payer. |
canceled | canceled_by_api | The transaction was canceled via the API and will not be completed. |