Skip to main content

Integration Flow

1

Create a user and complete KYC

2

Get an off-ramp quote (optional)

Create Quote to lock the exchange rate
3

Create off-ramp transaction

4

User sends crypto

The user sends crypto to the wallet address returned in the transaction response

How to do an Off-Ramp Operation

To successfully execute an off-ramp operation, follow these steps:
  1. Select the Blockchain and Token:

    1. The following is a list of the Blockchains and Tokens
    2. The list of Blockchains - Tokens symbols supported in Capa are:
      1. POL - USDC, USDT
      2. ETH - USDC, USDT
      3. SOL - USDC
      4. BSC - USDT
      5. TRX - USDT
  2. Select the Fiat Currency:

    1. Choose the supported fiat currency for the transaction. Capa currently supports the following fiat currencies:
      1. MXN (Mexican Peso)
      2. DOP (Dominican Peso)
  3. Quoting:

    1. To show a real-time estimate of how much fiat the user will get with the selected Blockchain Token, Fiat Currency and Amount use the Get Quote Rate endpoint.
    2. To lock a guaranteed exchange rate, use the Create Quote endpoint. This returns a quoteId with an expiration time (expiresAt). Pass the quoteId when creating the transaction to use the locked rate.
    3. You can specify either fiatAmount or cryptoAmount in the quote request.
    4. Forward Settlement (MXN only): For MXN orders, the locked quote supports a forwardingDays parameter (0-4) that lets you lock the rate now but settle the transaction T+N days later.
  4. User Bank Information:

    1. The user bank information can be provided in multiple ways:
      • Inline bank details: Pass userBankInformation directly in the off-ramp request body.
      • Saved bank account: Use a previously saved bank account ID.
    2. Bank account requirements vary by country:
    3. For MX accounts, the bank information will go through a penny testing process to ensure that the KYC’d user is the actual owner. If the user is successfully verified the transaction will go through, otherwise it will be CANCELLED and the crypto will be reimbursed.
  5. Obtain User Wallet Address:

    After a successful KYC users get their own Wallet Address which is used as an intermediary to identify the user’s off ramps on chain transaction. In order to show the user where the crypto must be sent to you must obtain the wallet by creating the Off Ramp transaction, the response would have the wallet address.
  6. Execute the Off-Ramp:

    With all required information gathered, you can proceed to execute the off-ramp operation using the Capa API. See the documentation to execute the off ramp Create Off Ramp Key parameters:
    • userId (required): The user’s Capa ID
    • fiatCurrency, blockchainSymbol, tokenSymbol: The selected currency, blockchain, and token (required when quoteId is not provided)
    • fiatAmount or cryptoAmount: The amount to convert
    • userBankInformation (optional): Inline bank account details
    • quoteId (optional): A locked quote ID from the Create Quote endpoint
    • premiumSpread (optional): A spread percentage to apply to the exchange rate

Transaction Status Progression

  • CRYPTO_NOT_RECEIVED is not final: a deposit that arrives after the window closed moves the off-ramp back to CRYPTO_RECEIVED.
  • FAILED means the crypto could not be sent on after it was received. Capa still holds it, so the off-ramp can move into a refund.
  • AWAITING_REFUND can also be entered from every status above except CRYPTO_NOT_RECEIVED, CANCELLED, EXPIRED and REFUNDED; only the edges from FAILED and COMPLETED are drawn. A refund from COMPLETED happens when the payout provider reverses a payment it had reported as delivered.
  • AWAITING_MANUAL_FIAT_TRANSFER means Capa’s operations team sends the fiat payout manually. Operations can also intervene manually in other cases.
  • status is an open enum. See Transaction Statuses for every value and the full transition table.

Settlement Times

Expected settlement times for MXN off-ramp fiat payouts:
The times above apply to same-day settlements. For forwarded OTC quotes that use the forwardingDays parameter (1–4), the fiat payout is scheduled on settlement day T+N and the 10–30 minute window applies once that day arrives.

Over-Funding

If a partner sends more crypto than the quoted amount, the excess remains in the user’s wallet and is not included in the off-ramp transaction.

SPEI Payout Reference

Off-ramp fiat payouts via SPEI include the sanitized transaction ID (with dashes, the - character, removed) in the concepto field, allowing partners to match payouts to specific off-ramp orders. For example, a transaction ID of f51f2332-c7d4-40eb-8fb2-11e1608bc24c appears in the concepto as f51f2332c7d440eb8fb211e1608bc24c.

Rounding

Fiat amounts are returned with 2 decimal places, rounded half away from zero. Crypto amounts have up to 6 decimal places; a crypto amount you send with more decimals is rounded to 6. The amount you send is exact once rounded, and the transaction amount you fund and reconcile against is that rounded value; the other side is derived from the rate. If the user sends more crypto than the transaction amount, the difference stays in the user’s wallet. See the FAQ for the JSON types of amounts and fees.

Execute Off-Ramp (Forwards-Enabled Partners)

This section only applies to partners enabled for forwards who hold crypto in their wallet. To enable this feature, contact the Capa development team.
For partners with forwards enabled, off-ramp transactions are not immediately executed after creation. Instead, you must explicitly trigger processing by calling the Execute Off-Ramp endpoint with the transactionId. This call triggers the CRYPTO_RECEIVED_OFF_RAMP webhook event and starts the fiat payout process.
If you receive the error "partner is not configured for manual off-ramp execution", this feature has not been enabled for your partner account. Contact the Capa team to request enablement.

Available Platforms

  • Partner API: Off-ramp operations are performed via the API using the Partner API key. For instructions on generating and using the API key, refer to the API Key Generation Guide.
  • Sandbox: Test and manage off-ramp transactions, users, quoting, and webhook configuration in the sandbox environment.
  • Dashboard: Manage off-ramp transactions, users, quoting, and webhook configuration in production.

Notifications

Capa sends notifications to keep you updated on transaction statuses:
  • Webhooks for Partners: Capa posts updates to the configured partner webhooks to notify of transaction status changes.
    Email Notifications for Users (Optional): Users receive email notifications regarding their transaction status and other relevant updates. Webhooks
  • Ensure that your webhook settings are correctly configured to receive timely notifications and stay informed about the status of transactions. Webhook Settings

Dominican Republic Banks

JSON

What’s Next