States
In flight:processing: created or awaiting deposit.confirming: awaiting source confirmations.awaiting_approval: pending offer or review.swapping: executing a swap.bridging: crossing chains.delivering: sending to the recipient.refunding: refund in flight.
Outcomes
completed: delivered.fallback_delivered: a swap into a token named by address could not reachminAmountOut, so the quote’s fallback stablecoin was delivered. See Any token.refunded: funds returned.failed: execution or refund failure.expired: expired without deposit.unfulfilled: unconfirmed or replaced deposit; can resume.
awaiting_approval can mean a pending ZeroConf offer or an operator hold. Accept or decline only a pending zeroconfOffer. An address screening hold can appear as awaiting_approval with a screening errorCode. If a provider blocks a wallet after funding, the order can still read processing. Its recovery webhook reports reviewStatus: "blocked_wallet". See Order errors.
unfulfilled can resume after a late deposit. Keep listening and check supersededByOperationId. For failures, read order.errorCode when polling or data.error.code in webhooks.
When a Bitcoin payment is replaced using replace-by-fee (RBF), Orchestra can track the replacement under the original order ID. If Orchestra creates a successor, the original emits order.superseded and its supersededByOperationId points to the order to track. The successor carries recoveredFromOperationId. The original can still be in flight when the event arrives.
Refunds
Execution outside the quote’s bounds can trigger a refund. SupplyrefundAddress on the quote. Without a valid refund target, or while an operator hold applies, recovery may need manual review. See Errors.
Stages
The status response includesstages[]: execution milestones, each { name, status: "completed", completedAt }. Stage names such as deposit_confirmed, swapped, delivered, and refund_requested are an open set that grows with new routes. Use them to see where and when an order advanced or stalled, not as a replacement for order status, and ignore names you do not recognize.
Order fields
/status, /order, and /history return the same order record. The OpenAPI document defines the full OperationRecord schema.
sourceTxHashanddestinationTxHashare the deposit and delivery transactions.refundTxHash,refundAsset, andrefundAmountdescribe a refund.- A shielded Zcash source can have several funding or refund transactions. Use
sourceTxHashesandrefundTxHasheswhen present. Each singular hash is populated only when its list has one entry. sourceAssetAddressanddestinationAssetAddressare the token contract, mint, or jetton master for each asset: null for native coins, lowercase on EVM chains.amountInandamountOutare integer strings in smallest units.amountOutis null until the order completes.amountInUsdandamountOutUsdappear on completed orders from/statusand/orderonly, each independently. They are settlement notionals, not live valuations: a stablecoin leg uses its own amount, and any other asset uses the stablecoin value it was bought or sold for. A leg in a token named by address has no USD value, andamountOutUsdis also omitted on fallback and fixed-output deliveries.affiliateIdslists every affiliate attributed to the order, including zero-fee referrals. Server-key reads of/statusand/orderreturn it; client keys and read-token reads do not.errorCodeanderrorMessagedescribe a failure or hold; see Order errors.
Reading status
Use webhooks in production. Use SSE for user-facing progress. Poll as the fallback.- Polling
- Webhooks
- SSE
A quote becomes an order when the deposit lands, so the first thing to poll is the quote. Status requires authentication and returns Before an order exists, status normally returns
GET /v1/orchestration/order needs a server key and returns { quote, order, stages, funding } with order null until the deposit is detected. funding lists provider refunds or failures reported for the quote; see Funding events:Replace
SERVER_KEY with your fn_... key. Use a new X-Idempotency-Key for each operation and reuse it when retrying that same request. Amounts are integer strings in the asset’s smallest unit: "100000" is 0.001 BTC; "50000000" is 50 USDC on Base. Read each asset’s decimals from /v2/orchestration/routes.{ order, stages }. Read order.status for the current state. With a server key, supply exactly one of id, quoteId, or txHash. Any funding hash from a shielded Zcash order identifies it. If the hash matches several orders, the API returns 400 ambiguous_query. Use the order ID or quote ID.404 not_found. With a quote ID, add includeFunding=true for a provider funding report or includeShieldedFunding=true for shielded funding progress. When the requested record exists, the response includes it alongside order: null and stages: [].Client keys need orders:read and a matching read token: use quoteId with the quote token, or id with a submit/onramp token. Send X-Read-Token or ?readToken=. Client keys cannot look up by txHash.Server keys can list orders through /v1/orchestration/history by recipient with address=RECIPIENT_ADDRESS, by your own tag with tag=, or both. One of the two is required; neither returns 400 invalid_query. Results are newest first, with status, limit (default 50, max 200), and offset. To list every order in a date range, see Reconcile orders. Poll every 3 seconds; see Rate limits.Reconcile orders
GET /v1/partner/dashboard/operations lists every order on your account, including orders created by a deposit your integration never saw a transaction hash for. It needs a server key; client keys are rejected.
{ operations, nextOffset }, newest first. Each operation is an order record with the fields above, without amountInUsd and amountOutUsd. Request offset=nextOffset until it is null.
dateFromanddateTofilter oncreatedAt.dateFromis inclusive anddateTois exclusive. Send ISO 8601 timestamps in UTC with aZsuffix.statustakes one status. Without it,expired,paused, andunfulfilledorders are left out; request each of those three separately for full coverage.qmatches an order ID, quote ID, source or destination transaction hash, recipient address, or deposit address. It also matches any funding transaction assigned to one of your shielded Zcash orders. Use the 64 hexadecimal characters of the Zcash transaction ID without0x. Zcash funding IDs and0xhashes and addresses ignore case. A search includes orders normally hidden by the default status filter.chainmatches the source or destination chain.tagmatches your order tag,untagged=truekeeps orders without one, andaffiliateIdkeeps one affiliate’s orders.GET /v1/partner/dashboard/tagsreturns{ tags }, the tags in use on your account.limitdefaults to 50 and is capped at 200.
status filter matches the stored status, which differs from the reported one in two cases. A paused order is reported as processing, or as awaiting_approval under a screening hold, so status=paused returns rows that read that way and status=processing does not return them. A fallback_delivered order is stored as completed; filter on completed.
Use a dateTo in the past while paging, so new orders do not shift the offsets. The endpoint allows 120 requests per minute per IP.
GET /v1/partner/dashboard/operations.csv takes the same filters, ignores limit and offset, and streams the range as one file. For a shielded Zcash source, source_tx_hash and inbound_id are blank unless a single transaction funded the order. Use the JSON list for all funding and refund hashes. CSV amounts use smallest units and statuses use stored values. A stream can end early with HTTP 200. For a complete reconciliation, compare the order IDs with the paginated JSON list for the same filters.
GET /v1/partner/dashboard/operations/ORDER_ID returns { operation } for one order; use /status for its stages.
A provider refund that happened before an order existed is not an order and does not appear here. GET /v1/partner/dashboard/funding-outcomes lists those reports newest first as { outcomes, nextCursor }, with limit up to 100 and before=nextCursor for the next page; quoteId narrows it to one quote. See Funding events for the record shape.
These endpoints are in the OpenAPI document only in part: it lists the two operations reads without their date parameters, and omits the CSV, tags, and funding-outcomes routes. This section is their reference.