Overview
Cross-ramp transactions convert one fiat currency into another without the user needing to interact with cryptocurrency. Capa handles the conversion internally and delivers the target currency to the specified bank account. Supported currencies: MXN (Mexican Peso), DOP (Dominican Peso), USD (US Dollar), and EUR (Euro). The source and target currencies must differ. USD can also be delivered to bank accounts in China (CN) and Hong Kong (HK) as destination-only corridors. See China & Hong Kong destinations for the additional requirements.Business users: a cross-ramp involving MXN cannot be created until every beneficial owner (UBO) on record has digitally signed a cédula. See Associated Person Signature.
Integration Flow
1
Create a user and complete KYC
Create User, then KYC verification
2
Get a cross-ramp quote (optional)
Create Cross-Ramp Quote to lock the exchange rate
3
Create cross-ramp transaction
Create Cross-Ramp. For a payout to China or Hong Kong, attach the commercial invoice (
invoiceFile) now or upload it later; for any other country it is optional.4
Upload the invoice (China and Hong Kong, if you did not attach it)
If the payout is to China or Hong Kong and the cross-ramp was created without
invoiceFile, it is in WAITING_INVOICE. Upload Invoice, then read the cross-ramp to get the funding instructions.5
User deposits source currency
The user deposits fiat in the source currency to the bank account returned in
sourceBankAccountHow to do a Cross-Ramp Operation
To successfully execute a cross-ramp operation, follow these steps:-
Select Source and Target Currencies:
Choose the fiat currencies for the conversion. For example, MXN to USD or EUR to MXN. The source and target currencies must be different. -
Quoting:
- To show a real-time estimate of how much the user will receive, use the Get Cross-Ramp Quote Rate endpoint with
sourceCurrency,targetCurrency, and eithersourceAmountortargetAmount. - To lock a guaranteed exchange rate, use the Create Cross-Ramp Quote endpoint. This returns a
quoteIdwith an expiration time (expiresAt). Pass thequoteIdwhen creating the transaction to use the locked rate. - You can specify either
sourceAmountortargetAmount, not both.
- To show a real-time estimate of how much the user will receive, use the Get Cross-Ramp Quote Rate endpoint with
-
Target Bank Account:
Provide the bank account where the target currency will be delivered. You can either:- Pass
targetBankAccountinline in the request body with the bank details. - Use a previously saved bank account ID (
targetBankAccountId).
ThetargetCurrencymust match the currency of the target bank account’s country. - Pass
-
Create the Cross-Ramp Transaction:
With all required information gathered, create the transaction using the Create Cross-Ramp endpoint. Key parameters:userId(required): The user’s Capa IDsourceCurrency(required unless you pass aquoteId): The fiat currency the user will deposittargetCurrency(required unless you pass aquoteId): The fiat currency to be deliveredsourceAmountortargetAmount: The amount to convert (provide one, not both; omit both with aquoteId)targetBankAccount: Inline bank account details for the targetquoteId(optional): A locked quote ID from the Create Cross-Ramp Quote endpointpremiumSpread(optional): A spread percentage to apply to the exchange ratereference(optional): A free-form reference string for your own records (max 140 characters)targetCountry(optional): Target country override — required to deliver USD to China (CN) or Hong Kong (HK) (see below)targetRail(optional): Target payment rail for CN/HK —LOCAL(default) orSWIFTinvoiceFile(required to continue only for China and Hong Kong; optional for every other country): Base64-encoded PDF commercial invoice. For a China or Hong Kong payout, if omitted the cross-ramp is created asWAITING_INVOICEand no funding instructions are returned until you upload the invoice. For any other country, if omitted the cross-ramp is created asPENDING_FUNDSas usual; an invoice you do send is still stored.
-
Upload the Invoice and Deposit:
If you sentinvoiceFile, or the payout is not to China or Hong Kong, the transaction is created inPENDING_FUNDSand the response includessourceBankAccountwith the bank details where the user must deposit the source fiat currency. If the payout is to China or Hong Kong and you did not send an invoice, the transaction is created inWAITING_INVOICEandsourceBankAccountis not returned until you upload the invoice; once it moves toPENDING_FUNDS, read the transaction to getsourceBankAccount. Share the deposit details with the user only once they are returned.
China & Hong Kong destinations
USD can be delivered to bank accounts in China (CN) and Hong Kong (HK). These are destination-only corridors — CN and HK can be the target of a cross-ramp, never the source.- Delivered currency is USD. CNY is not yet supported. Because the source and target currencies must differ, the source currency must be MXN, DOP, or EUR (not USD).
- Set
targetCountry. PasstargetCountry: "CN"(or"HK") so USD is routed to China/Hong Kong — USD otherwise defaults to the US. If you pass an inlinetargetBankAccountwithcountry: "CN", the target country is resolved from it automatically. The sametargetCountry/targetRailalso apply when requesting a quote. - Payment rail.
targetRailselects how funds are delivered:LOCAL(default) for a domestic transfer, orSWIFTfor an international wire. - Commercial invoice.
invoiceFile(Base64-encoded PDF) is required to continue only when the payout bank account is in China (CN) or Hong Kong (HK); for every other country (US, Europe/SEPA, Mexico and the rest) it is optional. For CN/HK, attach it at creation or upload it afterwards: a cross-ramp created without it returns201with statusWAITING_INVOICE, and nothing is paid out until the invoice is uploaded. For any other country a cross-ramp created without it proceeds normally inPENDING_FUNDS, with no hold; an invoice you do send is still stored. - Reference/memo. The optional
referencefield (max 140 characters) is forwarded to the payment provider and is supported across all currencies. - Provider-managed accounts. CN/HK payout accounts are provisioned through Capa’s payment provider; provide the fields listed in the target bank account requirements above.
Amount limits for USD delivered to CN/HK are a minimum of 10 USD and a maximum of 10,000 USD per transaction.
Transaction Limits
The same minimum amounts apply as for on-ramp and off-ramp transactions:USD delivered to China (CN) or Hong Kong (HK) is limited to a minimum of 10 USD and a maximum of 10,000 USD per transaction.
Funding a Cross-Ramp
After creating the transaction with an invoice, the response includessourceBankAccount with the bank details where the user must deposit the source fiat currency. The transaction starts in PENDING_FUNDS status. Only a China or Hong Kong cross-ramp created without an invoice starts in WAITING_INVOICE, and its funding instructions are withheld everywhere (create response and transaction read/list endpoints) until the invoice is uploaded.
- For MXN source: The user deposits via SPEI to Capa’s bank account (same flow as on-ramp).
- For non-MXN source (USD, EUR, DOP): A deposit intent is created with instructions for the user to include in their transfer.
sourceBankAccount.message (the transaction id) in the concepto. Capa matches the deposit to that transaction; a deposit without it is matched by amount on the deposit account. Using the concepto matters most when the user has several cross-ramps open for the same amount.
Multiple Concurrent Orders
You can have multiple cross-ramp transactions open at the same time for a single user.Upload an invoice
A China or Hong Kong cross-ramp created withoutinvoiceFile is held in WAITING_INVOICE until you upload the commercial invoice. For other countries the invoice is optional and there is no hold, but you can still upload one while the cross-ramp is in WAITING_INVOICE. Upload it with Upload Cross-Ramp Invoice:
Response (
200): id, status (PENDING_FUNDS), updatedAt and, only when completed, completedAt. The response does not carry funding instructions: read the cross-ramp afterwards to get sourceBankAccount.
Behavior:
- The invoice is accepted automatically (no manual review): a valid PDF moves the cross-ramp from
WAITING_INVOICEtoPENDING_FUNDS. - Only China and Hong Kong are held. A China or Hong Kong cross-ramp created without an invoice stays in
WAITING_INVOICEand nothing is paid out until the invoice is uploaded; the payout to the provider is placed after the upload. Cross-ramps to other countries are never held for an invoice. - Naturally idempotent. Repeating an upload after it succeeded returns
200with the current status, with no second invoice record. This route does not support theIdempotency-Keyheader. - Before releasing the cross-ramp, Capa re-checks that the user is verified and that no beneficial-owner signature is outstanding. If either check fails the cross-ramp stays in
WAITING_INVOICE. - If storing the file fails, a retryable
400is returned and the cross-ramp stays inWAITING_INVOICE. Retry with the same file. - While in
WAITING_INVOICEthe cross-ramp can also be cancelled with the cancel endpoint. - Replacing an invoice that was already uploaded is not supported.
Partners also upload invoices from the Capa partners dashboard (users with cross-ramp create permission). The API and the dashboard share the same rules.
Quoting and Premium Spread
SetpremiumSpread when you create the quote; the quote carries it into the cross-ramp. If you provide a quoteId, don’t send premiumSpread in the cross-ramp request: it is rejected with 400. The valid range is 0 to 1.
A locked quote is valid for 10 seconds after creation (expiresAt field in the response) and can be used once. Once the quote is used to create a transaction, the rate is locked for that transaction. Your exchange rate is kept while the cross-ramp waits for the invoice.
A quote is optional — if no quoteId is provided, provide sourceAmount or targetAmount along with sourceCurrency and targetCurrency. You cannot specify both sourceAmount and targetAmount. The rate is then set when the cross-ramp is created. The amount you send is exact; the other one is derived from the rate.
When using
quoteId, do not pass sourceAmount, targetAmount, sourceCurrency, targetCurrency, premiumSpread or forwardingDays — these values are taken from the quote, and sending them is rejected.Rate and fees
- The rate is always at least 1.
rate(quotes) andexchangeRate(transactions) are expressed as a number of at least 1, whichever direction the money moves: 500 MXN to 25 USD gives20, and so does 25 USD to 500 MXN.sourceCurrencyandtargetCurrencyusually tell you the direction, but not for a near-parity pair (EUR and USD), where the spread can decide it. Before fees, the target amount is the source amount divided by the rate when the target currency is worth more per unit than the source after the spread (MXN to USD), and multiplied by it when it is worth less (USD to MXN).rate,exchangeRateandmarketRateexclude fixed fees: fixed fees are applied to the amounts, so always use the returnedsourceAmountandtargetAmountrather than recomputing them. - Fees are returned as a
feesarray of{ fee, currency, type, name }, all in the source currency, alongsidespread(andmarketRateon quotes).feeis a decimal string. The spread is already applied inside the rate; thespread_amountitem only shows it as money.
Bulk Cross-Ramp
Use Create Bulk Cross-Ramp when one user pays several beneficiaries at the same rate. You request one quote for the total, and Capa creates one cross-ramp per beneficiary. The currency exchange runs once, for the total; each cross-ramp is funded and paid out on its own.Bulk cross-ramp is enabled on request. Ask your Capa contact to enable it for your environments; until then the endpoint returns
404.Supported corridors
Exactly one side of the quote must be USD:
A quote where neither side is USD (for example MXN → EUR) cannot be used for a bulk. Beneficiaries in one bulk may differ, for example US and CN accounts under one MXN → USD quote.
How it works
- Quote the total. Create a cross-ramp quote for the sum of all the transactions, sized on the side shown above, with
bulkTransactionCountset to the number of transactions. The quote then nets one USD-leg fixed fee per transaction. A quote priced for another count is rejected, and a single cross-ramp can’t use a bulk-priced quote. - Create the bulk with 2–50 transactions whose amounts add up exactly to the quote on that side. The quote fixes the currencies, so the body has no
sourceCurrency/targetCurrency. The quote is consumed by the bulk. - Attach the invoices.
invoiceFileis optional per transaction. A bulk has one payout corridor. For a China or Hong Kong bulk, a transaction created without one isWAITING_INVOICE, with no funding instructions, exactly like a single cross-ramp. For any other country no invoice is needed: transactions arePENDING_FUNDSright away, and an invoice you do send is still stored. Upload the missing invoices. - Fund each transaction separately. Every transaction that has its invoice has its own
sourceBankAccount. For SPEI, use itsmessageas the concepto. - Settlement. Capa processes the whole bulk once it is ready: it executes the exchange for the total and places the single payout to the payment provider, then pays each beneficiary. For a China or Hong Kong bulk, that happens once every transaction has its invoice and is funded, and the supporting document sent to the provider is one PDF merged from all the bulk’s transaction invoices. For any other country the bulk is processed once every transaction is funded, with no invoice needed (invoices you sent are stored, but the provider ignores them). A transaction that is never funded, or (China and Hong Kong) never gets its invoice, holds the whole bulk; contact Capa support to resolve it.
Fees
Each transaction pays the fixed fee of its own USD leg, for its own route. When the quote targets USD and is sized onsourceAmount, the fee comes out of that transaction’s payout. When it targets USD and is sized on targetAmount, the payout stays exactly as sent and the fee is added to that transaction’s deposit, at the quote’s rate. When the quote starts from USD, the fee is added to that transaction’s deposit. The fee of the exchange leg, which runs once, is shared across the transactions in proportion to their amounts. Each transaction’s response shows its own amounts and fees.
Tracking
Each transaction is a normal cross-ramp, with its own id, statuses (starting atWAITING_INVOICE when it pays out to China or Hong Kong and was created without an invoice), webhooks and proof of payment. Group them with the bulkId and quoteId returned when the bulk is created.
Upload bulk invoices
Attach the invoices of a bulk’sWAITING_INVOICE transactions in one call with Upload Bulk Cross-Ramp Invoices:
- Limits per request: 1 to 25 entries, no repeated
transactionId, and about 25 MiB of Base64 text in total. Split larger sets across several requests. 200for a well-formed request, with{ bulkId, results: [{ transactionId, status, error? }] }in request order.statusisUPLOADED,ALREADY_UPLOADEDorERROR(witherror.codeanderror.message). Some entries can fail while others succeed, so read every entry.- Per-entry error codes are the ones of Upload Cross-Ramp Invoice:
CROSS_RAMP_NOT_AWAITING_INVOICE,USER_NOT_VERIFIED_ERROR,SIGNATURE_REQUIREMENT_NOT_MET,INVALID_COMMERCIAL_INVOICE(also for an unreadable, encrypted, empty or over-500-page PDF),COMMERCIAL_INVOICE_UPLOAD_FAILEDandINTERNAL_ERROR, plusCROSS_RAMP_BULK_INVOICE_BUDGET_EXCEEDED,CROSS_RAMP_BULK_INVOICE_PAGES_EXCEEDEDandCROSS_RAMP_BULK_INVOICE_SIZE_UNAVAILABLE(below). A failed entry leaves its transaction unchanged and can be retried. - Invoice budget per bulk. The stored invoices of one bulk may total at most 24 MiB (decoded) and 500 pages (a single file may also have at most 500 pages). An invoice that would go over is rejected with
CROSS_RAMP_BULK_INVOICE_BUDGET_EXCEEDED(size) orCROSS_RAMP_BULK_INVOICE_PAGES_EXCEEDED(pages), both400on a single upload, a per-entryERRORhere, and a rejection of the whole request on bulk create: nothing is stored, the transaction staysWAITING_INVOICE, and you can retry it with a smaller or shorter file. Cancelled transactions free their share. - Retry on
503. Both are temporary and store nothing.CROSS_RAMP_BULK_INVOICE_BUSY(another invoice of the same bulk is being processed; Capa already waits about 2 seconds for it) fails the whole request with HTTP503, because the route takes the bulk’s lock once per request: nothing was processed, so wait a second or two and resend the same request.CROSS_RAMP_BULK_INVOICE_SIZE_UNAVAILABLE(the size or page count of a stored invoice can’t be read yet) appears as a per-entryERRORresult, so retry only the failed entries after a short wait. - PDF validation. Each file is parsed as a PDF before anything is stored. An unreadable or encrypted file, or one with 0 or more than 500 pages, is a per-entry
ERRORwithINVALID_COMMERCIAL_INVOICEand does not block the other entries. - Envelope errors process nothing:
400for a missing or empty list, more than 25 entries, a repeatedtransactionId, a non-Base64 invoice or too large a request;404when the bulk does not exist or is another partner’s;404CROSS_RAMP_BULK_ITEMS_NOT_FOUNDwhen atransactionIdis not a transaction of this bulk. - Naturally idempotent, with no
Idempotency-Keysupport: an invoice for a transaction that already passed the invoice step is answeredALREADY_UPLOADED. - Available when bulk cross-ramp is enabled for your environment; otherwise
404. - A single transaction can also be completed with Upload Cross-Ramp Invoice.
Limits
- 2 to 50 transactions per bulk.
- The per-transaction limits apply to each transaction, including the 10–10,000 USD range for USD delivered to CN/HK.
- The whole create request, every
invoiceFileincluded, must stay under 25 MB, and the invoices supplied at creation may total at most 24 MiB decoded and 500 pages (CROSS_RAMP_BULK_INVOICE_BUDGET_EXCEEDEDorCROSS_RAMP_BULK_INVOICE_PAGES_EXCEEDED,400, nothing created). AninvoiceFilethat is not a readable PDF is rejected withINVALID_COMMERCIAL_INVOICEand nothing is created. - The invoices of one bulk may total at most 24 MiB decoded and 500 pages across creation and later uploads.
Transaction Status Progression
AWAITING_REFUND can also be entered from PENDING_FUNDS, FUNDS_RECEIVED, IN_PROGRESS and AWAITING_FUND_TRANSFER; of the entry edges, only those from COMPLETED and REFUND_FAILED (retry) are drawn. A cross-ramp only reaches the statuses in the table below: never FAILED, WAITING_FOR_FUNDS or any other status specific to on-ramps or off-ramps. status is an open enum: see Transaction Statuses for every value.
WAITING_INVOICE is a status value used only for China and Hong Kong cross-ramps created without an invoice. If your integration validates status against a fixed list, add it. See the changelog.Sandbox Testing
In the sandbox environment you can drive a cross-ramp through this progression without making a real deposit, by creating it with a magicsourceAmount: 2000.01 walks the full lifecycle to COMPLETED, 2000.02 cancels with NAME_VERIFICATION_FAILED, and 2000.03 halts at AWAITING_FUND_TRANSFER so you can exercise the payout leg.
Mock amounts apply to every cross-ramp that is in PENDING_FUNDS. A China or Hong Kong cross-ramp created without an invoice waits in WAITING_INVOICE in sandbox too: upload the invoice, then the magic-amount progression runs.
Only sourceAmount triggers a mock — the targetAmount path never matches. See the Mock Testing Guide for the full rules.
Notifications
Capa sends webhook notifications for each status change. The following events are emitted during a cross-ramp transaction lifecycle:
There is no webhook when a cross-ramp moves to
EXPIRED.
CREATED_CROSS_RAMP still fires for every new cross-ramp. When the invoice is uploaded the cross-ramp moves to PENDING_FUNDS; there is no separate upload event.
See the Transaction Events guide for full payload examples. Ensure your Webhook Settings are configured to receive these notifications.