Skip to main content
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

Status dictionary and order state
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. 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. 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.
200 OK · response excerpt

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. 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 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. For operator-issued details, request_timing contains separate timers. In other scenarios it can be null. 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. 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

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