Status of an order and a transaction - Resources - Mercado Pago Developers

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.

statusstatus_detailDescription
createdcreatedThe order was successfully created.
processedprocessedThe order was successfully processed and the payment was credited.
refundedrefundedThe order was refunded. This means the transaction amount was fully returned to the payer.
expiredexpiredThe 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.

statusstatus_detailDescription
createdcreatedThe transaction was successfully created, but it has not yet been processed. This is the initial state of a transaction after it is created.
processedaccreditedThe transaction was successfully processed and the amount has been effectively credited.
expiredexpiredThe transaction has expired. This means it was not completed within the allowed time and was therefore terminated.
refundedrefundedThe order has been refunded. This means the amount of the transaction has been fully returned to the payer.
canceledcanceled_by_apiThe transaction was canceled via the API and will not be completed.