> ## Documentation Index
> Fetch the complete documentation index at: https://exchanger-api.iexexchanger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Order and incoming payment statuses

> Read the current iEXExchanger order state and verify payment receipt. Includes status keys, transitions, deadlines, exceptions, and webhook reconciliation.

After creating an order in iEXExchanger, track both the exchange state and incoming payment verification. Show the order state to the customer and consult payment progress separately when deciding whether funds have arrived.

## Read the current state

```bash Status dictionary and order state theme={null}
curl 'https://your-exchange/api/v3/public/orders/statuses'
node request.mjs GET '/api/v3/private/exchange/orders/order-1042/status-summary'
node request.mjs GET '/api/v3/private/exchange/orders/order-1042/payment-status'
```

For private operations, use an API key issued to the order owner and supply the order's `tracking_id` or `public_id`. The `request.mjs` script is in the [quickstart](https://exchanger-api.iexexchanger.com/en/start/quickstart.md).

If the order is missing or belongs to another account, a request with the required scope returns `404 not_found`. If a numeric identifier matches multiple orders for the owner, the API returns `422 validation_failed` with an error for the `order` field. Retry with the `tracking_id`.

| Operation | When to call it | Response |
| - | - | - |
| [`GET /public/orders/statuses`](https://exchanger-api.iexexchanger.com/en/api-reference/orders/get-public-orders-statuses) | Get names and status flags for your exchanger. Public request. | `result.statuses[]` contains `id`, `key`, `name`, `is_final`, `is_payment_flow`, `is_problem`, `allows_operator_actions`, and display fields `color`, `class`, `sorting`. |
| [`GET /private/exchange/orders/{order}/status-summary`](https://exchanger-api.iexexchanger.com/en/api-reference/exchange/get-private-exchange-orders-by-order-status-summary) | Poll the stored order state. The key needs `public-api:orders:detail:read` or `public-api:orders:read`. | `result.order`, `result.status`, and `result.updated_at`. This call reads the state without processing deadlines. |
| [`GET /private/exchange/orders/{order}`](https://exchanger-api.iexexchanger.com/en/api-reference/exchange/get-private-exchange-orders-by-order) | Read the full order, for example after the displayed deadline passes. Requires the same scopes as the status summary. | The full order in `result`, including `status.reason`, amounts, and deadlines. The server can process a due deadline before responding. The compatible `/status` operation returns the full order in `result.order`. |
| [`GET /private/exchange/orders/{order}/actions`](https://exchanger-api.iexexchanger.com/en/api-reference/exchange/get-private-exchange-orders-by-order-actions) | Check which action you can send. The key needs `public-api:exchange:orders:actions:read` or either order read scope. | `result.actions.allowed_actions`, `transitions`, `requirements`, `payment_timing`, and `request_payment_timing`. |
| [`GET /private/exchange/orders/{order}/payment-status`](https://exchanger-api.iexexchanger.com/en/api-reference/exchange/get-private-exchange-orders-by-order-payment-status) | Check provider confirmation and display payment progress. Requires `public-api:exchange:payment-instructions:read`. | `result.payment` with `provider_confirmed`, `provider_confirmed_at`, `checking`, `current_status`, `timeline`, and `timeline_truncated`. |

Use `status.key` and the status flags in your logic. Display `status.name` to the customer. Labels and additional statuses can vary by installation. For an identifier outside the built-in dictionary, the API returns `custom_<id>` with the built-in status flags set to `false`. Keep the original key and consult `actions` for permissions.

The following example shows `result` from the status summary of a completed order.

```json 200 OK · response excerpt theme={null}
{
  "order": {
    "tracking_id": "order-1042",
    "public_id": "1042"
  },
  "status": {
    "id": 4,
    "key": "completed",
    "name": "Completed",
    "is_final": true,
    "is_payment_flow": false,
    "is_problem": false
  },
  "updated_at": "2026-12-05T09:12:00.000000Z"
}
```

## Order statuses

The transitions column shows the built-in transitions returned in `result.actions.transitions`. `∅` indicates an empty list. For client commands, use `allowed_actions`. The `allowed` and `authorized` fields reflect the order state and the key's permissions respectively.

| ID | Key | Name | Final | Transitions | Integration action |
| - | - | - | - | - | - |
| 1 | `expired` | Expired | Yes | ∅ | The applicable deadline closed the order, or the customer marked it unpaid. Send the order for reconciliation if the customer already transferred funds. |
| 2 | `pending_payment` | Awaiting payment | No | `processing_payment`, `check_payment`, `canceled_by_user`, `expired` | The order is awaiting payment. Get the instructions and show the actions available in `actions`. |
| 3 | `waiting_handle` | Awaiting processing | No | `completed`, `rejected`, `frozen` | The order is awaiting processing. The customer reporting a payment can lead to this state. Track the order and payment verification separately. |
| 4 | `completed` | Completed | Yes | ∅ | The exchange is complete. Show the outcome and stop routine polling for the order. |
| 5 | `rejected` | Rejected | Yes | ∅ | The order was rejected. Show `status.reason` when available. |
| 6 | `canceled_by_user` | Canceled by customer | Yes | ∅ | The customer canceled the order. Remove the payment details from the interface. |
| 7 | `paid` | Paid | No | `waiting_handle`, `merchant_confirmation`, `payout_queue` | The order is marked paid. Use `provider_confirmed` for receipt of funds and continue tracking the exchange. |
| 8 | `frozen` | Deferred | No | `waiting_handle`, `rejected` | Processing is deferred. Wait for the exchanger's decision. |
| 9 | `processing_payment` | Payment in progress | No | `check_payment`, `paid`, `canceled_by_user`, `expired` | Payment is in progress. Read `payment-status` and refresh the available actions. |
| 10 | `invalid` | Invalid | Yes | ∅ | The order is invalid. Check the reason when available and send a disputed payment for reconciliation. |
| 11 | `deleted` | Deleted | Yes | ∅ | The order is marked deleted. If the API still returns it, display its final state. |
| 12 | `check_payment` | Payment verification | No | `paid`, `rejected`, `pending_payment` | The payment is being verified. Refresh incoming payment progress with `payment-status`. |
| 13 | `merchant_confirmation` | Merchant confirmation | No | `paid`, `waiting_handle`, `check_payment` | The order is awaiting merchant confirmation. Wait for an update and refresh the order. |
| 14 | `auto_payout_error` | Auto-payout failed | No | `payout_in_progress`, `rejected` | Automatic payout failed. Wait for the exchanger's decision. It can retry the payout. |
| 15 | `payout_in_progress` | Payout in progress | No | `completed`, `auto_payout_error` | The exchange payout is in progress. Wait for the outcome. |
| 16 | `payout_queue` | Queued for payout | No | `payout_in_progress`, `paid` | The order is queued for payout. Continue monitoring its state. |

Some transitions return to an earlier state. For example, verification can return an order to `pending_payment`, and a failed automatic payout can lead to another payout attempt. Refresh and store the latest state from the API.

The customer can first report `paid` from `pending_payment` when `confirm_paid` is available. The response can contain `waiting_handle` or another state that depends on the order's conditions. If the report was already accepted, a repeat can return the current state. Marking an eligible order `unpaid` leads to `expired`. Canceling an eligible order leads to `canceled_by_user`. A repeat cancellation can return an order that is already closed. See [confirmation and cancellation](https://exchanger-api.iexexchanger.com/en/guides/exchange/payment-and-status.md) for requests.

## Payment and payment-details deadlines

Read `payment.timing` and `payment.request_timing` from the full order. The same objects appear as `result.actions.payment_timing` and `result.actions.request_payment_timing` in `/actions`.

| General payment timing fields | Meaning |
| - | - |
| `duration_seconds`, `started_at`, `expires_at` | Duration and boundary timestamps. The timestamps can be `null`. |
| `server_time`, `remaining_seconds`, `active`, `overdue` | Use server time or the remaining seconds for a countdown. `active` indicates that an end time exists. `overdue` indicates that time is up. |
| `action`, `changes_status_on_expiry` | `expire` moves the order to `expired` when the applicable deadline is processed. `keep_status` retains the state and can mark the deadline as processed. |
| `processed_at`, `source`, `version`, `is_snapshot` | Processing time, source (`global`, `request_payment`, `order_override`), revision, and whether the deadline is stored with the order. With `is_snapshot: false`, the API may calculate a deadline for an older order. |

For operator-issued details, `request_timing` contains separate timers. In other scenarios it can be `null`.

| Operator-issued details timing fields | Meaning |
| - | - |
| `mode`, `is_planned`, `requires_operator_plan` | `automatic` or `operator` mode and flags indicating whether issuance has been scheduled. |
| `timer_start` | `order_created` starts from order creation. `requisites_issued` starts when payment details are issued. |
| `wait_minutes`, `wait_total_seconds`, `wait_started_at`, `wait_expires_at`, `wait_remaining_seconds`, `wait_overdue` | Time spent waiting for payment details. An applicable waiting deadline can close the order before payment begins. |
| `payment_minutes`, `payment_total_seconds`, `payment_started_at`, `payment_expires_at`, `payment_remaining_seconds`, `payment_active`, `payment_overdue` | Payment timing. Even with a running timer, check whether details have been issued and check `confirm_paid.allowed`. |
| `payment_deadline_action`, `payment_status_changes_on_expiry`, `payment_deadline_processed_at`, `payment_deadline_version`, `server_time` | Expiry action, status change flag, processing timestamp, timing revision, and server time. |

Refresh the order and payment instructions after the displayed deadline passes. The status summary may still reflect the stored state until the deadline is processed.

## Incoming payment verification stages

`payment.current_status` contains `key`, `value`, and `updated_at`. With `checking: false`, the current stage can be `null` and the timeline empty. `provider_confirmed` reports recorded confirmation separately and indicates whether the provider confirmed receipt. `provider_confirmed_at` gives the time it was recorded. Older orders can have incomplete confirmation history.

| Value | Key | Stage |
| - | - | - |
| 0 | `created` | Verification has yet to start |
| 1 | `waiting_transaction` | Waiting for payment to the issued details |
| 2 | `registering_transaction` | The hash has been received and the transaction is being registered |
| 3 | `transaction_registered` | The transaction hash has been saved on the order |
| 4 | `aml_check_in_progress` | An AML check is in progress |
| 5 | `aml_kyc_required` | Additional identity verification is required |
| 6 | `transaction_found` | The provider found a transaction and verification continues |
| 7 | `transaction_pending_confirmation` | Waiting for network confirmations |
| 8 | `confirmations_done` | The network confirmed the transaction and payment verification is finishing |
| 9 | `payment_success` | Verification reports a successful payment |
| 10 | `transaction_failed` | The provider reported a payment error or cancellation |
| 11 | `transaction_blocked_insufficient_amount` | The received amount was below the threshold applied during verification |
| 12 | `transaction_blocked_wrong_currency` | Verification stopped after funds were received in a different currency |

`timeline` can start with `payment_requisites` and `status_value: null`. Each item contains `key`, `status_value`, `state`, and `occurred_at`. Item states are `todo`, `active`, `done`, `warning`, and `error`. With `timeline_truncated: true`, the timeline uses up to 50 of the latest entries from a longer history. An unknown value appears as `unknown_<value>`. Use these fields to display verification progress, and use `status.is_final` and `allowed_actions` for actions on the order.

## When a payment needs reconciliation

| Situation | Integration action |
| - | - |
| Underpayment or partial transfer | Check `payment-status` and the order outcome. If you receive `transaction_blocked_insufficient_amount`, tell the customer the amount is below the allowed threshold. Depending on the merchant rules, an underpayment can lead to rejection, review, or recalculation. Check with the exchanger before requesting any further payment. |
| Overpayment | Refresh the order and check the current state. The exchanger handles overpayment according to its merchant settings. Send the difference to the operator for reconciliation. |
| Payment after the deadline | Read the current payment instructions and order. If the customer already sent funds using expired details, send the exchanger the order identifier and payment details. If recalculation for late payment is enabled, the final amounts can change. Use `amounts` from the latest response. |
| Two separate payments for one order | Reconcile both transfers with the exchanger. Retrying `confirm` records the customer's report, and `payment-status` shows verification for the order. The second transfer requires separate reconciliation. |
| Different currency or network | Compare the recipient details, currency, and network with `payment-instructions`. For `transaction_blocked_wrong_currency` or a disputed transfer, send the payment details to the exchanger. |
| AML/KYC or pending network confirmations | For `aml_kyc_required`, check the order's verification requirements. For `transaction_pending_confirmation`, keep waiting for confirmation. Confirmation requirements depend on the provider and network. |
| Refund requested | Send the order and transfer details to the exchanger operator. Reconcile the refund separately even if the order is already closed. |

Keep amounts as decimal strings when comparing them. Show the customer the current `amount`, `currency`, `network`, and `details.memo` from the issued instructions. Use all required payment details for the selected route. If the transfer requires a memo or destination tag, show it alongside the address. Pass on any additional values in `details.fields`.

## Reconcile API state with webhooks

`order.status_changed` provides status IDs in `data.from_status` and `data.to_status` when present. Read the order using `data.resource.id`. `order.payment_received` reports recorded receipt of funds, and `payment-status` gives the current payment result. If the API state and a webhook differ, store the state from the fresh API response. Use the event `id` to handle a repeated event without repeating customer actions. [Webhook events and signatures](https://exchanger-api.iexexchanger.com/en/guides/reliability/webhooks.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.