---
title: Generate a DCA code
endpoint: POST /api/v1/user/dca-code
description: User
---

`POST /api/v1/user/dca-code`

## Request

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `sourceCurrency` | string | optional | `swift:0/iso4217:EUR` | CAIP-19 identifier for the source currency. Alternative to currencyPair — when both sourceCurrency and targetCurrency are provided, currencyPair is derived automatically. |
| `targetCurrency` | string | optional | `bip122:000000000019d6689c085ae165831e93/slip44:0` | CAIP-19 identifier for the target currency. Alternative to currencyPair — when both sourceCurrency and targetCurrency are provided, currencyPair is derived automatically. |
| `currencyPair` | string | required | `BTC-EUR` | The currency pair for the DCA code. |
| `walletAddress` | string | required | `3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5` | The wallet address we send the cryptos to after the payment is completed. |
| `destinationTag` | string\|integer | optional | `ABC12345` | The destination tag where we send the cryptos to after the payment is completed. |

## Responses

| Status | Meaning |
| --- | --- |
| 200 | Returns the data (IBAN, BIC, payment description, etc) for the DCA. |
| 400 | A list of possible errors for this endpoint. |

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `name` | string | optional | `Doe` | Name of the account holder. |
| `iban` | string | optional | `NL37BUNQ2025406444` | The IBAN where the fiat need to be sent to. |
| `description` | string | optional |  | The code that needs to be sent in the description field. |
| `bic` | string | optional | `BUNQNL2A` | The BIC of the bank. |
