v2
You are reading v1 & v2. v1 and v2 are deprecated. They keep working and are still supported, but new integrations should use v3.

Generate a DCA code

User

POST/api/v1/user/dca-code

Send two credentials: your own, and the customer's.

How authentication works
Either
Authorization: BearerorUser-Authorization: Bearer

Language

Environment

Credentials

Your credential, or the customer's

Choose an environment first.

cURL request
curl -X POST https://api.btcdirect.eu/api/v1/user/dca-code \  -H "Authorization: Bearer $BTCD_PARTNER_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "sourceCurrency": "swift:0/iso4217:EUR",    "targetCurrency": "bip122:000000000019d6689c085ae165831e93/slip44:0",    "currencyPair": "BTC-EUR",    "walletAddress": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5",    "destinationTag": "ABC12345"  }'
Choose an environment to run this.

Response

Returns the data (IBAN, BIC, payment description, etc) for the DCA.
{  "name": "Doe",  "iban": "NL37BUNQ2025406444",  "description": 12345678,  "bic": "BUNQNL2A"}

Request

sourceCurrencystring

CAIP-19 identifier for the source currency. Alternative to currencyPair — when both sourceCurrency and targetCurrency are provided, currencyPair is derived automatically.

Exampleswift:0/iso4217:EUR

targetCurrencystring

CAIP-19 identifier for the target currency. Alternative to currencyPair — when both sourceCurrency and targetCurrency are provided, currencyPair is derived automatically.

Examplebip122:000000000019d6689c085ae165831e93/slip44:0

currencyPairstringrequired

The currency pair for the DCA code.

ExampleBTC-EUR

walletAddressstringrequired

The wallet address we send the cryptos to after the payment is completed.

Example3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5

destinationTagstring|integer

The destination tag where we send the cryptos to after the payment is completed.

ExampleABC12345

Responses

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

Body of the success response

namestring

Name of the account holder.

ExampleDoe

ibanstring

The IBAN where the fiat need to be sent to.

ExampleNL37BUNQ2025406444

descriptionstring

The code that needs to be sent in the description field.

bicstring

The BIC of the bank.

ExampleBUNQNL2A

Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.