Before you start: the OMS API is in early access. Every endpoint, including the ones in this guide, requires an early-access API key. Request access before you begin.Authenticate by exchanging your API key and secret for a bearer token at
POST /auth/token, then send it as Authorization: Bearer {accessToken} on every request. Every mutating request (POST and PATCH) also requires an Idempotency-Key header. See Get started for the full flow.Prerequisites
Before sending USDC from a wallet, you need:- A customer with a
cst_ID. - A funded OMS wallet with a
wlt_ID containing enough USDC to cover the source amount plus gas (if not sponsoring gas). - A destination: another OMS wallet (its
wlt_ID) or an external onchain address (a0x...address on the same network). - A webhook endpoint registered with
POST /webhooks(or in the OMS Dashboard) to receive transaction events.
Step 1: Create a quote
Create a quote to lock in the pricing. OMS infers the direction ascryptoToCrypto from the source and destination instruments (an OMS wallet to a crypto address).
Each side of a quote request is a typed instrument: a type plus a details object. The quote source must be an OMS wallet (walletCrypto) or a card. The destination describes where the funds land. For a crypto payout, use a walletExternal instrument: either details.blockchainAddress for a raw address, or details.id for a registered external wallet (ext_...). Set amount on exactly one side; OMS calculates the other.
Responses flatten each instrument: type, id, asset, and network sit at the top level of source and destination. An owner names the counterparty or other customer that owns the account when it is not your customer’s own, and a typed details block carries the display fields for that instrument type, such as a wallet address or a bank accountNumberLast4.
Request
customerId: The customer who owns this transaction.source: A typed instrument. SettypetowalletCryptoand put the OMS walletid,asset(usdcorusdt), andnetwork(polygon,ethereum,base) indetails.destination: A typed instrument naming where the funds land. For a crypto payout, usetype: "walletExternal"with eitherdetails.blockchainAddress(a raw address) ordetails.id(a registered external wallet,ext_prefix), plusassetandnetwork.amounton exactly one side: Here we set it on the source (send 2,000 USDC). OMS calculates the destination amount after fees. Set it on the destination instead to target an exact received amount.
sponsorGas: Whentrue, OMS absorbs gas fees. The customer sees no gas entry inpricing.feesand the response carriespricing.sponsorGas: true(an out-of-band developer cost on your account). At launch gas is always sponsored.metadata: Up to 20 arbitrary key-value pairs.
Response, 201 Created
id: The quote ID (prefixqt_). You pass it to create the transaction.status: "open": Pricing is locked, awaiting acceptance.sourceToDestination: "cryptoToCrypto": The direction OMS inferred from the instruments.customer: A single reference to the owning customer. Read the customer’s name and status from the customer resource; names are not denormalized here.sourceanddestination: Typed instruments. The source is the customer’s own OMS wallet, so noowneris reported. The destination is an unregistered external wallet, so it carries noid; the recipient’s on-chain address is indestination.details.address.pricing: All money lives here.pricing.destination.amountis what the destination receives. At launch OMS absorbs fees and gas, sopricing.feesis empty andpricing.sponsorGasistrue(the field is omitted when gas is not sponsored).- All amounts are decimal strings padded to the asset’s precision; the same amount renders the same string on every network.
expiresAt: Pricing expires after a short window. Create a new quote if it lapses.
Step 2: Create the transaction
Accept the quote by creating a transaction that references the quote ID. This is the point of no return: USDC is pulled from the wallet and the onchain send begins.Request
txn_.
Response, 201 Created
status: "processing": USDC has been pulled from the wallet and the onchain send is underway.subStatus: "processing.fundsPulled": Always-present operational detail in dot notation, indicating the USDC has been pulled. The next sub-status reflects send progress. Branch onstatusalone.payoutOrigin: Names where the payout is sent from. For a crypto send,type: "blockchain"andidis the source OMS wallet.- No
transfersarray yet: it appears once OMS creates the payout transfer. pricing.sponsorGas: true: OMS absorbed the gas cost; it is a separate, out-of-band developer cost on your account and does not appear inpricing.fees.- No
holdis present because the transaction has never been held. If a transaction needs you to act,statusbecomesawaitingActionandholdsays what to do.
Webhook: transaction.statusChanged
OMS fires transaction.statusChanged when the transaction enters processing, and again on every later transition. The full transaction arrives under the envelope’s data:
data.status rather than on the event name. previousStatus is absent here because processing is the initial state; on later transitions it names the status the transaction left. Deduplicate on id, and use sequence to ignore a delivery older than one you already applied. See Webhook events for the delivery envelope and the full catalog.
Step 3: Track the transaction
OMS pulls the USDC, broadcasts the onchain send, and the funds arrive at the destination address once the transaction confirms. OMS firestransaction.statusChanged again when the transaction reaches completed:
statusis nowcompletedandsubStatusiscompleted.settled.updatedAtreflects when the onchain send confirmed.transferslists the payout transfer. Fetch it withGET /v0.13/transfers/{transferId}to read the on-chain hash intracking.txHash. See Transfers.
pricing.sponsorGas is true on the response.
Polling alternative
If you prefer polling over webhooks, retrieve the transaction directly:status is completed or failed. Webhooks are preferred for production: they avoid unnecessary requests and notify you the moment status changes.
Failure handling
If the transaction fails after USDC has been pulled (for example, an onchain error or a compliance block),status moves to failed and OMS fires transaction.statusChanged. The failure object in data describes what went wrong:
failed is terminal. failure.code names what went wrong, failure.message is a fixed, vendor-neutral sentence for that code, and failure.retryable tells you whether trying the same operation again can succeed. Use them to decide whether to retry or surface the failure to the customer.
Returns and refunds
A bank payout that fails or is returned after the funds left the wallet (an invalid account, a bank rejection, a return code) does not strand the money. Because fiat payouts are funded from the wallet’s stablecoin balance, a failed payout re-credits the stablecoin side automatically; there is nothing to request. The payout transfer readsfailed or returned, and the transaction’s failure object reports what happened. subStatus reads processing.payoutRetrying while OMS sends the payout again, processing.returningToSender while the funds are on their way back, and failed.returnedToSender once they are returned. transaction.statusChanged fires on each status change.
Watch the same transaction rather than creating a compensating transfer yourself: crediting your user once when status turns failed and again when the funds come back is the classic double-credit bug.
These rails have no card-style chargeback exposure: OMS does not enable ACH pull, so an inbound deposit cannot be clawed back the way a card payment can.
Holds and compliance review
A compliance review does not fail the transaction. It staysprocessing with subStatus processing.underReview until OMS releases it. The event catalog has no dedicated hold event, so read the transaction to observe the state:
awaitingAction, and its hold object carries a code and a fixed message. The hold codes, senderAttribution and payoutDestinationMissing, cover deposits that arrive through a deposit address or virtual account; see the transaction lifecycle for what releases each one. awaitingAction is non-terminal. Once the hold clears, the transaction returns to processing and continues to completed or failed, firing the corresponding transaction event. Branch on status: a transaction in awaitingAction is not done.
Webhook events
Both flows in this guide, the crypto send and the bank payout, report through one event. Subscribe to it once and branch on the transaction’sstatus. See Webhook events for the envelope and the full catalog.
Key points
- The quote is the contract. The transaction request body is just
{ "quoteId": "..." }: no overrides. - Sides are typed instruments. A quote request
sourceiswalletCryptoorcard; the cryptodestinationiswalletExternal, either withdetails.blockchainAddressfor a raw address ordetails.idfor a registered external wallet. - Responses carry a typed
detailsblock.id,asset, andnetworksit on the response side directly, and the type’s labeling fields (an on-chainaddress, a bankaccountNumberLast4, a cardbrand) live indetails. Pick the fields you want to render. - Money lives in
pricing. Thesourceanddestinationsides carry identity and instrument only. Read amounts and the fee breakdown frompricing; every amount is padded to its asset’s precision. - OMS absorbs fees and gas at launch.
pricing.feesis empty andpricing.sponsorGasistrue(the field is omitted when gas is not sponsored). The gas cost OMS covers is a separate, out-of-band developer cost on your account and does not appear inpricing.fees. - Idempotency keys are per request. Use a distinct
Idempotency-Keyfor the quote and the transaction so retries are safe and don’t create duplicates.
Pay out to a bank account
A fiat payout follows the same two-step quote and transaction flow. The quotesource is still an OMS wallet holding USDC. The difference is the destination: instead of a crypto instrument, you target an external bank account. OMS infers the direction as cryptoToFiatAccount.
Register the bank account first with POST /external-accounts: pass an owner ({ "kind": "customer", "customerId": "..." }), type: "bankUs", and a bankUs object with the account and routing numbers. OMS returns the external account’s ext_ ID; the account starts pending and flips to active when provisioning completes. Reference that ID in the quote’s destination, with asset: "usd", a fiat network (ach, achSameDay, or wire), and accountHolder: "customer" (the only accepted value). The payout requires the customer’s usd endorsement to be active.
type, id, asset, and network on the destination directly, and a typed details block carrying the bank’s accountNumberLast4 (plus bankName, routingNumber, and holderName where known) for display. To read the full stored account, dereference the external account by id with GET /external-accounts/{id}. On the transaction, the bank destination carries no rail: the payout transfer in transfers reports the rail, and fetching it returns the rail reference in tracking (for example, imad on a wire). The top-level payoutOrigin names whose name the payout goes out under and does not inline the funding account’s identifiers.
Once the quote is open, create the transaction the same way, with { "quoteId": "..." }. Track it with the transaction.statusChanged event, or by polling GET /v0.13/transactions/{transactionId}. ACH transfers typically settle in 1 to 3 business days; wire is faster (about an hour, within the Fedwire window). The same operational notes apply: the quote is the contract, money lives in pricing, and you should use a distinct idempotency key per request. See Customer onboarding for the full external-account registration walkthrough.
For card rails, where the crypto lands is set by the quote’s
destination. A card buy with a walletExternal destination delivers to that on-chain address; any other crypto destination delivers to the customer’s OMS-custodied wallet on the destination chain. A card sell always settles into the customer’s walletCrypto.