GET /v2/swap/quote.
Money-movement routes are available only after Ramp status is approved. See KYC setup guide and Track Pods Ramp status.
How ramp quotes work
A quote is defined by four query parameters.originChain and destinationChain set the source and destination networks; fiat on either side selects the local payment rail. tokenIn and tokenOut set the fiat currency or on-chain asset. The direction follows from which side is fiat: originChain=fiat is an onramp, destinationChain=fiat is an offramp.
1
Request a quote
Call
GET /v2/swap/quote. On onramps pass destinationAddress (the wallet that receives crypto). On offramps pass originAddress plus the payout target (pixKey for Pix, or the USD bank fields).2
Act on the response
- Onramp — the response carries
paymentInstructions(transactionDatais[],chainIdisnull). Show the local rail:paymentInstructions.pix.copyPastefor Pix, orpaymentInstructions.usdbank fields for a USD wire. - Offramp — the response carries
transactionDatato sign and execute in order fromoriginAddresson the quoted chain. Batch same-chain legs into one atomic transaction when your wallet stack supports it (see Execute a swap).
3
Poll until settled
Track with
GET /v2/swap/status/{quote.quoteId} until fulfilled. After a Brazil Pix payment settles, that response includes fiatSettlement with the Pix end-to-end id. See Pix receipt.quote.feeBreakdown.charges. Each charge has a kind:
paymentRail— the local rail’s pass-through fee (Pix fee, wire fee).bridgeAndSlippage— on-chain execution cost, shown ontokenOut.pods/customer— Pods or your platform markup, present only on pairs that charge it. BRLA, BRS, BRZ, and Avenia USD carry no Pods/customer markup. UnblockPay USD can include both, taken from the credited or sent USDC.
Conventions
-
Amounts are always in the token’s smallest unit.
amountIn=1000withdecimals: 2is BRL 10.00;amountIn=1000000with USDCdecimals: 6is 1.00 USDC. -
Chains —
originChain/destinationChainaccept network names (fiat,base,monad,polygon,ethereum,solana). Responses additionally carry canonical numeric chain ids (chainId,chainIdIn,chainIdOut) when resolvable. -
Shared query parameters — every pair uses these; per-network sections below only note what changes.
The receiving/sending wallet must match an
approvedRamp KYC profile for that wallet.
Before you quote: KYC
A user must hold anapproved Ramp KYC profile with the relevant currency unlocked before any quote in that currency succeeds.
- Brazil Pix — full walkthrough in KYC setup guide. In short: submit the Sumsub share token server-side, poll
GET /api/v1/kyc/statusuntilapproved, thenPOST /api/v1/kyc/currency-unlockto enable BRL. Share tokens expire quickly and must stay server-side. - Foreign USD — requires a foreign profile with
usdEnabled: true. Walkthrough in Foreign USD KYC; the currency-unlock errors are catalogued under Errors.
Token addresses
Brazil Pix
The examples below show how to integrate selected Pix routes. Find token addresses by network in Supported ramp routes.
The shared Pix payout rules (pixKey validation, BR Codes, third-party payouts) apply to every offramp below.
Pix to Base
USDC on Base (chainId 8453). Fees: a Pix rail fee, optional Pods/customer markup (when configured), and bridge/slippage.
Pix to USDC (onramp)
PassdestinationAddress; the response carries the Pix QR.
paymentInstructions.pix.copyPaste to the user. After Pix settles, Pods delivers USDC to destinationAddress.
USDC to Pix (offramp)
PassoriginAddress and pixKey; the response carries transactionData.
originAddress on Base (chainId 8453): the first transfers USDC to depositAddress, the next records the transfer for tracking. After Pods confirms the transfer, Pods pays the Pix payout to pixKey.
Pix to Monad
USDC and Morpho hyperUSDCa on Monad (chainId 143). The hyperUSDCa pair deposits into the Morpho vault within the same quote. Fees: a Pix rail fee, optional markup, and bridge/slippage; the yield pair shows fees in feeBreakdown.
Pix to USDC (onramp)
Same shape as Pix → USDC on Base; only the destination network and token change.tokenOut.contract the Monad USDC address, tokenOut.chainId 143, paymentInstructions.pix.copyPaste to pay, empty transactionData, chainId: null. After Pix settles, Pods delivers USDC to destinationAddress.
USDC to Pix (offramp)
PassoriginAddress and pixKey; the response carries transactionData.
chainId 143: transfer USDC to depositAddress, then track. Execute both in order from originAddress on Monad. After Pods confirms the transfer, Pods pays the Pix payout to pixKey.
Pix to hyperUSDCa (deposit into yield)
Deposit Pix BRL into the Morpho Hyperithm USDC Apex vault. Identical to the USDC onramp excepttokenOut is the vault share token.
tokenOut.decimals is 18 (vault shares) and expectedAmountOut is a raw share amount of hyperUSDCa, not USDC — store it so you can redeem the exact shares later. feeBreakdown.charges is empty. After Pix settles, Pods converts to USDC on Monad, mints hyperUSDCa, and delivers the shares to destinationAddress.
hyperUSDCa to Pix (redeem yield)
chainId 143): the first leg redeems hyperUSDCa to USDC and sends USDC to depositAddress, the next records the transfer. Pods validates the redeem before creating the Pix payout to pixKey.
Reading the position. Use
GET /v2/wallets/{wallet} and find the entry whose strategy matches Morpho Hyperithm on Monad. spotPosition.currentPosition, principal, profit, and cumulativeProfit are reported in USDC terms even though the wallet holds hyperUSDCa shares on-chain — do not use them as amountIn here. To exit into USDC on Monad without Pix, use that strategy’s withdraw bytecode endpoint (underlying-token amount); see Withdraw from a yield strategy.Pix to Polygon
BRLA and BRZ on Polygon (chainId 137). Neither carries Pods/customer markup; an optional Pix fee may appear as paymentRail.
Pix to BRLA (onramp)
BRLA is minted directly todestinationAddress — no Pods inventory hop.
tokenOut BRLA (decimals 18, chainId 137), feeBreakdown without Pods/customer charges, empty transactionData, chainId: null. After Pix settles, Pods delivers BRLA to destinationAddress.
Use this pair to deliver BRLA; use Pix → USDC to deliver USDC. Do not integrate the underlying rail provider directly — use
GET /v2/swap/quote.BRLA to Pix (offramp)
PassoriginAddress and pixKey; the response carries transactionData.
amountIn is in 18 decimals. BRLA uses no EIP-2612 permit: transactionData has two legs on Polygon (chainId 137) — an ERC-20 transfer of BRLA to the deposit address for this quote, then a Pods Track event (version 0, action 2, quote.quoteId). The destination is the to of the transfer leg; there is no top-level depositAddress. A transfer without the matching Track does not confirm the quote. After Pods confirms the transfer, Pods pays the Pix payout to pixKey.
Pix to BRZ (onramp)
Pricing is 1:1 (BRLA 18 ↔ BRZ 18). The user never holds BRLA — Pods settles that inventory internally. The Ramp KYCwalletAddress and destinationAddress must be the user’s Polygon address.
tokenOut BRZ (decimals 18, chainId 137). After Pix settles, Pods delivers BRZ to destinationAddress.
BRZ to Pix (offramp)
PassoriginAddress and pixKey; the response carries transactionData.
amountIn is in 18 decimals. BRZ also has no EIP-2612 permit: transactionData is an ERC-20 transfer of BRZ to the Pods bridge address plus a Pods Track event (version 0, action 2, quote.quoteId). A transfer to the bridge without that matching Track does not confirm the quote. After Pods confirms the transfer, Pods pays the Pix payout to pixKey.
Pix to Solana
BRS (Nora) on Solana (chainId 0). No Pods/customer markup; 1:1 BRLA inventory after decimal scale (BRLA 18 ↔ BRS 6); an optional Pix fee may appear as paymentRail.
Pix to BRS (onramp)
The user never holds BRLA; Pods settles that inventory internally. The Ramp KYCwalletAddress and destinationAddress must be the user’s Solana public key.
tokenOut BRS (decimals 6, chainId 0), paymentInstructions.pix.copyPaste to pay, empty transactionData, chainId: null. After Pix settles, Pods delivers BRS to destinationAddress.
BRS to Pix (offramp)
PassoriginAddress and pixKey. The origin payload is Solana, not an EVM array.
amountIn is in 6 decimals. Default output=bytecode returns type: intra-chain-solana with transactionData.rawTransaction (base64). That transaction transfers BRS to the Pods inventory ATA and includes Memo V1 { version: 1, actionId }, where actionId is the quote UUID (quote.quoteId), not the Action ObjectId. Sign and submit it from originAddress.
Wallets that assemble instructions themselves can request output=instructions (Solana-origin only; bytecode is the default). EVM and fiat origins reject instructions with OUTPUT_NOT_SUPPORTED. After Pods confirms the transfer, Pods pays the Pix payout to pixKey.
Pix to Stable
USDT0 on Stable (chainId 988). USDT0 is Stable’s gas token; Pods quotes and pays it as the ERC-20 at 0x779Ded0c9e1022225f8E0630b35a9b54bE713736 (decimals 6). Pricing follows the USDC Pix rail (USDT0 at USD parity). Fees: a Pix rail fee, optional Pods/customer markup (when configured), and bridge/slippage.
Pix to USDT0 (onramp)
Same shape as Pix → USDC on Base; only the destination network and token change.tokenOut USDT0 (decimals 6, chainId 988), paymentInstructions.pix.copyPaste to pay, empty transactionData, chainId: null. After Pix settles, Pods delivers USDT0 to destinationAddress.
USDT0 to Pix (offramp)
PassoriginAddress and pixKey; the response carries transactionData and a depositAddress unique to this quote.
amountIn is in 6 decimals. Pay the quote in one of two ways:
- Bytecode. Execute every
transactionDataleg in one batch fromoriginAddresson Stable (chainId988): an ERC-20transferof USDT0 (net of customer markup) to the Pods bridge address, a second USDT0transferof the customer markup to your fee collector when markup is configured, then a Pods Track event forquote.quoteId. Pods confirms the quote only when that Track group pays the exact amounts. A transfer without the matching Track, or a reverted transaction, does not confirm it. - Plain deposit. Send exactly
quote.tokenIn.amountof USDT0 todepositAddress. Native USDT0 sends and exchange withdrawals work: Stable records them as the same ERC-20 transfer. A deposit that does not match the quote, or that arrives after the quote expires, is repriced as on the other USDC Pix offramps.
pixKey.
Pix payout rules
These apply to every Pix offramp above.-
pixKeyvalidation. An explicitly suppliedpixKeyis trimmed and validated. Invalid or unknown keys return400 INVALID_PIX_KEY; empty keys are rejected (missing required destination inputs may surface422 VALIDATION_ERRORfirst). A successful lookup confirms the key resolves to a recipient — it does not confirm it is the recipient the user intended. Recipient-lookup details are not added to the swap response. Keys supplied only throughdestinationAddressor saved quote data do not trigger this check. -
Pricing-only fallback. When the ordinary-key lookup is unavailable, a quote with an origin wallet and a destination can still generate funding instructions: an explicit upstream HTTP 5xx lets the request continue, while timeouts, auth/rate-limit errors, and incomplete responses return
502 PIX_KEY_LOOKUP_FAILED. This fallback does not bypass KYC, ownership, third-party, or payout checks. -
BR Codes must be supplied as
pixKeywhen requesting the quote. All Pix offramps validate their format, checksum, metadata, and expiration before pricing; the outage fallback above does not apply. A fixed-amount code determinesamountOut, and the quote calculates the required crypto input including fees. On an EVM USDC origin with a dedicateddepositAddress(every EVM origin exceptbsc), a deposit of at least thattokenIn.amountwithin the quote deadline confirms. USDC above that amount does not change the Pix or the fees. When the quote was requested with anoriginAddress, the surplus is returned to that address on the origin chain in the same transaction that collects the deposit. Without anoriginAddress, or when the surplus is below 0.01 USDC, it is retained by Pods. Deposits that reach thedepositAddressafter collection are not returned automatically. A smaller deposit does not confirm and is not paid proportionally. Onbsc,solana, andstellarthe deposit must matchtokenIn.amountexactly. Keep the same code when requesting payment bytecode. Adding or changing a BR Code, or replacing a quoted code with an ordinary key, returns400 PIX_BRCODE_REQUOTE_REQUIRED; request a new quote first. Codes that expire before acceptance return400 PIX_BRCODE_EXPIRED. -
Blocked receivers. When the ramp provider reports that it does not accept payouts to the receiver of a
pixKeyor BR Code, the quote and payment bytecode requests return400 PIX_RECEIVER_BLOCKEDbefore any funding instructions are issued. Use another receiver. -
Third-party payout. By default the
pixKeymust belong to the same person asoriginAddress. To pay someone else, setthirdParty=trueand pass the recipient’spixKey(USDC onbaseormonad). Everything else matches a normal offramp; only the payout recipient differs.
Pix recipient details
When you providepixKey for a BRL offramp, GET /v2/swap/quote includes
quote.pixRecipient if the payment rail lookup returns recipient details. This
applies to ordinary keys and Pix copia-e-cola (BR Codes), with or without inline
execution fields. For example, the recipient portion of the response is:
decodePixKey=true.
The original BR Code and its payment amount remain unchanged.
Only available fields are included; a BR Code may return just name, for example.
taxId preserves the payment rail’s masking. When there are no recipient details
(or an allowed lookup outage), pixRecipient is omitted. These details describe
the explicit key looked up for this request and are not persisted or returned by
later status requests. Existing quote and execution fields remain unchanged.
Wire to USDC
Move money between a USD bank wire and USDC. Avenia quotes show the WIRE rail fee aspaymentRail and do not add a Pods or customer markup. UnblockPay takes its flat wire fee and 15 bps before the USDC credit; Pods and customer fees on that quote are priced from the credited USDC. Requires a foreign KYC profile — Avenia uses usdEnabled: true, UnblockPay uses ramps.unblockpay.unlock. See Foreign USD KYC.
With
rampProvider=unblockpay, the paymentRail charge is UnblockPay’s flat wire fee (plus any partner fees), in USD in both directions. UnblockPay also prices a small FX spread into its rate. That spread is not itemized: on the onramp it shows as bridgeAndSlippage, and on the offramp it is already in tokenOut.amount. Do not subtract the flat fee or the 15 bps again from the quoted USDC.destinationChain on an onramp or originChain on an offramp. Network availability depends on the provider and direction. Each direction accepts exactly one of amountIn or amountOut. Supported USD bank routes
- Onramp —
amountInis USD cents to send;amountOutis USDC raw to receive. - Offramp —
amountInis USDC raw to send;amountOutis USD cents to receive.
amountOut when the product promise is “receive exactly N”.
Wire to USDC (onramp)
Onramp: the user pays USD by bank wire and receives USDC. PassdestinationAddress; the response carries the bank wire instructions.
Example: receive exactly 4 USDC → send ~USD 14.04 (WIRE In Fee ~USD 10).
paymentInstructions.usd to the user:
After the wire settles, Pods delivers USDC to
destinationAddress. Poll GET /v2/swap/status/{quote.quoteId} until fulfilled.
rampProvider=unblockpay settles only on Base. It does not call UnblockPay’s quote or pay-in. The price is local: a 15 USD wire fee, then 15 bps of the USD sent. Pods and customer fees come out of the USDC that schedule credits. The execution quote, the one that includes destinationAddress, creates or reuses the Base virtual account when the USD wire onramp rail is already approved. paymentInstructions.usd is that standing wire block from currency unlock: there is no depositMessage, and expiresAt is null. If the account is still unpublished, the quote returns 409 UNBLOCKPAY_USD_VIRTUAL_ACCOUNT_NOT_READY. A price quote without destinationAddress does not create the account. Several execution quotes can stay open together. When the wire credits USDC equal to exactly one open action’s expected amount, Pods sends that credit on to that quote’s destination, which must still be a wallet on the KYC profile. A different amount, or an amount shared by more than one open action, stays in the custodial wallet. The quote and the Action expire after 5 days. A wire UnblockPay starts processing before then still settles when it completes later, at the same exact amount. A credit with no open quote stays in the custodial wallet too.USDC to Wire (offramp)
Send USDC, receive a USD bank wire. PassoriginAddress plus the beneficiary bank fields — Pods resolve-or-creates the payout beneficiary (matching account + routing reuses the existing record; otherwise it registers one). With those fields present, the response includes transactionData to sign — there is no paymentInstructions block, since the user pays on-chain.
The WIRE Out Fee (~10.04 USDC) already sits in the spread between
tokenIn.amount and tokenOut.amount, and also appears as a paymentRail charge on tokenIn. With amountIn, USD out is net of that fee. With amountOut, tokenIn.amount is the USDC the wallet must transfer (fee included). A 5-USDC amountIn does not cover the WIRE fee, so use amountOut or an amountIn above ~10 USDC.
Example: receive exactly USD 4.00 → send 14.035088 USDC (WIRE Out Fee ~10.035 USDC).
originAddress, signing with each item’s chainId (base → 8453, polygon → 137). The first transfers USDC to depositAddress; the next records the transfer. After Pods detects the USDC, Pods pays the wire to the resolved bank account.
With
rampProvider=unblockpay, send the bank fields on this quote, including optional isThirdParty (default false). A US beneficiary address is required (beneficiaryCountry=USA or US). Pods reuses an external account with the same account and routing numbers and the same isThirdParty, or creates the one named on the quote. Bytecode for that quote keeps its isThirdParty unless the request sends it again. A different bank is not a mismatch.The user signs one transfer of the quoted gross (tokenIn.amount) to the quote’s depositAddress, plus the tracking transaction. Fee transfers are not in that user transaction. Avenia still uses the provider deposit address shown above.While the external account is pending, the USDC stays at that address. Approval alone does not move it. Once the account is approved and the balance covers the quoted gross, Pods opens the payout and sweeps three legs that add up to the gross: the net to UnblockPay, and the Pods and customer fees to their collectors. USDC above the gross returns to refundAddress, or to originAddress when no refund address was set.A balance below the quoted gross, a denied account, or a hold that passes the quote deadline refunds the whole deposit to that same address. No Pods or customer fee is taken. The quote and the Action are marked refunded. A refund is not sent after the payout sweep has been submitted.