---
title: "Auto swap"
method: GET
path: "/custodial/auto_swap/initiate_onramp"
---

# Auto swap

`GET /custodial/auto_swap/initiate_onramp`

The Auto Swap feature creates a static bank account for a customer. Any fiat payment sent to this bank account is automatically converted to the selected crypto currency and sent to the customer’s crypto wallet.

## Request body

- object
  - `customer` object — Details of the customer who owns the static bank account.
    - `email` string — Note: Please use your company domain for the email extension.
    - `first_name` string — Please use the customer's first name, as it is the name the system will use for comparison before approving the deposit.
    - `last_name` string — Please use the customer's last name, as it is the name the system will use for comparison before approving the deposit.
  - `coin_deposit` object — The crypto wallet where the converted crypto will be sent.
    - `address` string — wallet address where crypto will be deposited
    - `network` string — blockchain network, for example erc20
    - `currency` string — The crypto currency the fiat deposit will be converted to, for example usdt
  - `bank_account` object — Bank details needed to create the static bank account.
    - `bvn` string — customer’s Bank Verification Number
    - `bank_code` string — Customer’s bank account. Allowed values are 035 - Wema Bank
    - `currency` string — Bank account currency, for example ngn.

## Response `200`

200

- object
  - `status` string
  - `message` string
  - `data` object
    - `public_id` string
    - `customer` object
      - `email` string
      - `first_name` string
      - `last_name` string
    - `side` string
    - `deposit_bank_account` object
      - `account_number` string
      - `account_name` string
      - `currency` string
      - `bank_name` string
      - `bank_code` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/quidax/apis/api-3-0.md) · [All operations](https://skmtc.net/quidax/apis/api-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quidax/api-3-0/revisions/75e2867b5dc0/schema)
