> For the complete documentation index, see [llms.txt](https://docs.alignlabs.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alignlabs.dev/products/stablecoin-to-fiat-off-ramp.md).

# Stablecoin to Fiat Off-Ramp API

Convert USDC, USDT or EURC into USD, EUR or AED bank payouts with the Align off-ramp API. Lock a quote, send the stablecoins, and Align pays the bank account.

An off-ramp turns stablecoins into money in a bank account. With the Align off-ramp API, your customer sends USDC, USDT or EURC and Align pays USD, EUR or AED to a bank account over local payment rails. You lock a quote, the customer sends the stablecoins to the deposit address Align gives you, and Align makes the bank payment.

## Who it's for

* Crypto-native companies paying suppliers, staff or themselves in fiat
* Payment platforms and marketplaces that collect in stablecoins and settle in local currency
* Exchanges and wallets that let users cash out to a bank account
* Treasury teams moving funds from a wallet back to the bank

## Currencies and payment rails

| Currency | Payment rails                      |
| -------- | ---------------------------------- |
| USD      | ACH, Fedwire, SWIFT                |
| EUR      | SEPA Instant, SEPA Credit Transfer |
| AED      | IPP, UAEFTS                        |
| GBP      | Faster Payments                    |

Need a currency that isn't listed? [Talk to sales](https://alignlabs.dev/connect/contact).

## Tokens and networks

You choose the token (`source_token`) and the network (`source_network`) when you create the quote. See [Blockchains & Stablecoins](https://docs.alignlabs.dev/overview/blockchains-and-stablecoins) for which token is available on which network.

## How it works

1. **Create a customer and verify them.** Use [Create Customer](https://docs.alignlabs.dev/align-api/customers/create-customer) and [Create KYC Session](https://docs.alignlabs.dev/align-api/customers/create-kyc-session).
2. **Save the recipient's bank account (optional).** [Create External Account](https://docs.alignlabs.dev/align-api/external-accounts/create-external-account) stores IBAN, US or international wire details so you can reuse them. You can also send the bank details directly when you create the transfer.
3. **Create a quote.** [Create Off-Ramp Quote](https://docs.alignlabs.dev/align-api/offramp-transfers/create-quote) returns the exchange rate, the fee and an `expire_at` time. Send either `source_amount` (stablecoins in) or `destination_amount` (fiat out).
4. **Create the transfer.** [Create Off-Ramp Transfer from Quote](https://docs.alignlabs.dev/align-api/offramp-transfers/create-transfer-from-quote) takes the external account ID or the bank details, plus a `transfer_purpose`. The response includes `quote.deposit_blockchain_address`, `quote.deposit_token`, `quote.deposit_network` and `quote.deposit_amount`.
5. **Send the stablecoins.** Send `deposit_amount` of `deposit_token` to `deposit_blockchain_address` on `deposit_network`.
6. **Confirm the deposit.** Call [Complete Off-Ramp Transfer](https://docs.alignlabs.dev/align-api/offramp-transfers/complete-offramp-transfer) with the `deposit_transaction_hash`. Align then makes the bank payment.
7. **Track the payout.** Use [Get Off-Ramp Transfer](https://docs.alignlabs.dev/align-api/offramp-transfers/get-offramp-transfer) or the `offramp_transfer.status.updated` [webhook](https://docs.alignlabs.dev/align-api/webhooks).

### Example: quote 5,000 USDC on Solana to EUR by SEPA

```bash
curl -X POST https://api-sandbox.alignlabs.dev/v0/customers/{customer_id}/offramp-transfer/quote \
  -H "Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source_amount": "5000",
    "source_token": "usdc",
    "source_network": "solana",
    "destination_currency": "eur",
    "destination_payment_rails": "sepa"
  }'
```

## Paying someone other than your customer

Payouts to a third party work differently from payouts to the customer's own account. See [1st Party & 3rd Party Payments](https://docs.alignlabs.dev/compliance/1st-party-and-3rd-party-payments).

## Fees

The quote shows Align's fee in `fee_amount`. To earn revenue on each transfer, add your own fee with `developer_fee_percent` or set a default in [Developer Fees](https://docs.alignlabs.dev/fees/developer-fees). Align's pricing depends on volume and currency. [Talk to sales](https://alignlabs.dev/connect/contact) for your rates.

## Test in the sandbox

Send requests to `https://api-sandbox.alignlabs.dev` and use [Simulate Off-Ramp Transfer (Sandbox)](https://docs.alignlabs.dev/align-api/offramp-transfers/simulate-sandbox) with the `complete_transfer` action to finish a transfer without real money.

## Next step

See how companies use Align for off-ramping and payouts at [alignlabs.dev/connect/liquidity](https://alignlabs.dev/connect/liquidity) and [alignlabs.dev/connect/payouts](https://alignlabs.dev/connect/payouts), or [talk to sales](https://alignlabs.dev/connect/contact).
