Subscriptions
Each registration path is a separate subscription and delivers only its own events. Register the same URL on several paths to receive several families.
Each path takes the same calls with a server key:
POST and DELETE require X-Idempotency-Key. A URL that is not HTTPS, or that resolves to a private or reserved address, returns 400 invalid_webhook_url.
Every family uses the signature scheme and retry schedule on Order status. Subscribing does not replay earlier events.
A provider, in the events below, is the third-party liquidity venue that executes some cross-chain routes.
Order events
order.processing: processing started or resumed.order.confirming: awaiting source confirmations.order.bridging: crossing chains.order.swapping: swap executing.order.awaiting_approval: pending offer or review.order.refunding: refund underway.order.delivering: delivery underway.order.completed: delivered.data.statusisfallback_deliveredwhen a token named by address could not be bought and its fallback stablecoin was delivered instead.order.failed: failure; inspectdata.error.order.unfulfilled: deposit replaced or unconfirmed.order.refunded: refund confirmed.order.supersededcarries a snapshot of the original order. Usedata.supersededByOperationIdto look up the successor’s current order status.order.recovery_required: operator release or refund decision needed.
/v1/webhooks/recovery subscriptions. Their data can carry status: "processing" with reviewStatus of pending_review or blocked_wallet. A review hold is not a ZeroConf offer.
Ordinary paused, expired, and Lightning deposit-timeout transitions emit no webhook. State normalization to processing does not imply an event. Reconcile through status polling.
Envelope
Payload fields
data is the event-time order snapshot. Amounts are integer strings in smallest units; timestamps are ISO 8601. This example shows selected fields, not a complete schema. Optional fields may be omitted rather than null.
An order.completed event for 50 USDC on Base delivered as BTC on Spark:
amountOutis null before completion and onfallback_deliveredorders, which carryfallbackAsset,fallbackAmount, andfallbackTxHashinstead.destination.txHashrecords delivery;refundis always an object with nullable fields.sourceAssetAddressanddestinationAssetAddressidentify each token on chain; see Order fields.feeAmountis infeeAssetunits and reads “0” for invoice-billed partners.quoteIdis null for legacy address deposits.tagis the value sent on the quote, offramp, or onramp request, or null. Several orders can share one tag; see Tags.feePlanandfeePayoutsare present when the order carries app or affiliate fees. Each payout entry has a role (app_fee, recipient_payout, platform_fee, or fee_custody) and a leg (full or holdback; instant appears only on historical multi-leg records).amountFiatUsd,amountFiatCurrency, andspotUsdPerBtcappear on orders created with a USD amount.zeroconfOfferis the Bitcoin 0-conf offer; see ZeroConf.error.codevalues are in Errors.supersededByOperationIdpoints to the successor after an RBF-replaced deposit;recoveredFromOperationIdpoints back. Both are omitted when absent.- Shielded Zcash sources report null for
source.address,source.sweepTxHash, anddepositAddress. Optionalsource.txHashesandrefund.txHashesfollow the order transaction hash rules.source.txHashandrefund.txHashare null unless the corresponding list contains exactly one hash. - Dedupe on the tuple of
data.id,event, anddata.updatedAt.
Funding events
funding.updated reports that a provider refunded or failed a deposit before Orchestra created an order. Without it, a quote in this state looks like a quote that was never paid. Subscribe at /v1/webhooks/funding.
The envelope adds eventId and schemaVersion to the order envelope. Dedupe on eventId.
stateisrefund_reportedwhen the provider says it refunded the deposit, orneeds_reviewwhen Flashnet must investigate.reasonisfee_estimation_failed,provider_refund, orprovider_failure.refundDestinationiscustomer_providedfor the quote’srefundAddress,internal_recoverywhen the refund address configured with the provider is one Orchestra generated, orunknown. The field names where a refund is configured to go, on every report including a provider failure. It does not show that funds arrived there; reconcileinternal_recoveryagainst a receipt, not against this field.providerandproviderStatuspass through the provider’s own values. Do not branch on them.customerRefundVerifiedis always false. The event relays the provider’s report; Orchestra has not verified that the refund reached the customer. Confirm on chain before telling a user they were refunded.- Reported amounts are integer strings or null.
providerOriginTxHashesholds at most 16 entries.
GET /v1/orchestration/order?quoteId=QUOTE_ID returns them as funding, and GET /v1/orchestration/status?quoteId=QUOTE_ID&includeFunding=true returns { order: null, stages: [], funding } when no order exists and a report does. A quote with neither still returns 404 not_found.
Held-deposit events
ingress.held reports a deposit to a standing or accumulation address that is held without an order. Subscribe at /v1/webhooks/ingress.
addressTypeisstandingoraccumulation.addressIdis thestandingAddressIdoraccumulationAddressIdreturned at creation, anddepositIdmatches the deposit list for that address.reasonisbelow_minimum,awaiting_proof, orneeds_review.observedCredit.confirmationStateisconfirmedorprovisional.
eventId, when its reason, amount, or confirmation state changes. Refund a held standing deposit through /resolve.
Shielded funding events
shielded_funding.updated reports aggregate progress for a shielded Zcash source quote, including before an order exists. Subscribe at /v1/webhooks/shielded-funding. For transaction hashes, use the order events above.
data.quoteId to correlate funding events before and after the order is created, and call GET /v1/orchestration/status?quoteId=QUOTE_ID to read order.id once the order exists.
Keep the highest revision you have seen per quoteId. The revision increases when the reported funding state changes. Webhook confirmations stop at requiredConfirmations, and a refresh of refundLastVerifiedAt alone leaves the revision unchanged. See Funding status for fundingStatus values and recoveryReason codes.