Skip to main content
Webhooks deliver signed JSON events to an HTTPS endpoint you register. Signatures, retries, and deduplication for order events are on Order status.

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:
The secret is shown once. 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.status is fallback_delivered when a token named by address could not be bought and its fallback stablecoin was delivered instead.
  • order.failed: failure; inspect data.error.
  • order.unfulfilled: deposit replaced or unconfirmed.
  • order.refunded: refund confirmed.
  • order.superseded carries a snapshot of the original order. Use data.supersededByOperationId to look up the successor’s current order status.
  • order.recovery_required: operator release or refund decision needed.
Recovery events go only to /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:
Notes on the fields that need them:
  • amountOut is null before completion and on fallback_delivered orders, which carry fallbackAsset, fallbackAmount, and fallbackTxHash instead. destination.txHash records delivery; refund is always an object with nullable fields.
  • sourceAssetAddress and destinationAssetAddress identify each token on chain; see Order fields.
  • feeAmount is in feeAsset units and reads “0” for invoice-billed partners.
  • quoteId is null for legacy address deposits.
  • tag is the value sent on the quote, offramp, or onramp request, or null. Several orders can share one tag; see Tags.
  • feePlan and feePayouts are 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, and spotUsdPerBtc appear on orders created with a USD amount.
  • zeroconfOffer is the Bitcoin 0-conf offer; see ZeroConf. error.code values are in Errors.
  • supersededByOperationId points to the successor after an RBF-replaced deposit; recoveredFromOperationId points back. Both are omitted when absent.
  • Shielded Zcash sources report null for source.address, source.sweepTxHash, and depositAddress. Optional source.txHashes and refund.txHashes follow the order transaction hash rules. source.txHash and refund.txHash are null unless the corresponding list contains exactly one hash.
  • Dedupe on the tuple of data.id, event, and data.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.
  • state is refund_reported when the provider says it refunded the deposit, or needs_review when Flashnet must investigate.
  • reason is fee_estimation_failed, provider_refund, or provider_failure.
  • refundDestination is customer_provided for the quote’s refundAddress, internal_recovery when the refund address configured with the provider is one Orchestra generated, or unknown. 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; reconcile internal_recovery against a receipt, not against this field.
  • provider and providerStatus pass through the provider’s own values. Do not branch on them.
  • customerRefundVerified is 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. providerOriginTxHashes holds at most 16 entries.
The same records are available by polling. 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.
  • addressType is standing or accumulation. addressId is the standingAddressId or accumulationAddressId returned at creation, and depositId matches the deposit list for that address.
  • reason is below_minimum, awaiting_proof, or needs_review.
  • observedCredit.confirmationState is confirmed or provisional.
Held deposits are reported in batches every 15 minutes. Standing deposits are reported in the first batch after they are held; accumulation deposits once 30 minutes have passed since they were seen on chain. An accumulation event always reports the Solana USDC credit. A deposit emits a new event, with a new 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.
Use 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.