Hercle
REST
POST/api/v1/deposit-accounts

Create Deposit Account

Creates a new deposit account for either fiat (bank account) or crypto (blockchain address) deposits.

Auth:Bearer <api_key>
Tags:BankingSandbox

Request

cURL
curl -X POST https://publicapi.sandbox.hercle.financial/api/v1/deposit-accounts \
  -H "Authorization: Bearer eyJhb..." \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer API_KEY
Example: Bearer your_api_key_here
Content-TypestringYesapplication/json
Example: application/json

Request Body

Schema

FieldTypeDescriptionRequired
assetstringAsset type (e.g., EUR, GBP, USD, BTC). Must be between 3 and 30 charactersYes
networkstringNetwork type. Must be between 3 and 30 characters. Must match the asset type (crypto networks for crypto assets, fiat networks for fiat assets)Yes
fiatAccountIdstringFiat account ID (required for fiat assets). Must follow the format fac_ followed by alphanumeric characters (e.g., fac_123abc456)No
endUserIdstringEnd user ID (optional for fiat assets). Must follow the format eus_ followed by alphanumeric characters (e.g., eus_987xyz654)No

Example

{
  "asset": "EUR",
  "network": "Sepa",
  "fiatAccountId": "fac_123abc456",
  "endUserId": "eus_987xyz654"
}

Response

Success Response Schema

FieldTypeDescription
idstringUnique identifier of the deposit account
userIdstringUser ID associated with the deposit account
endUserIdstringEnd user ID associated with the deposit account
namestringName of the deposit account
assetstringAsset type (e.g., EUR, BTC)
networkstringNetwork type (e.g., Sepa, Bitcoin)
refAccountIdstringReference account ID (virtual account ID for fiat, blockchain address for crypto)
refAccountTypestringType of reference account
refAccountDetailsobject | nullDetailed account information

Bank Details Object (Fiat Only)

Detailed bank account information for fiat deposit accounts

FieldTypeDescription
bankNamestringName of the bank
accountHolderNamestringName of the account holder
countrystringCountry code (ISO 3166-1 alpha-2, e.g., DE, GB)
accountNumberstringBank account number
routingCodesarrayArray of routing code objects
ibanstringInternational Bank Account Number
bicstringBank Identifier Code (SWIFT code)

Routing Code Object

Routing code information for bank transfers

FieldTypeDescription
typestringType of routing code (e.g., sort_code, aba)
valuestringValue of the routing code

Crypto Deposit Account Details Object

Blockchain address and details for crypto deposit accounts

FieldTypeDescription
idstringUnique identifier of the crypto deposit account
addressstringBlockchain address for deposits
legacyAddressstringLegacy address format
enterpriseAddressstring | nullEnterprise address
tagstringTag or memo for certain cryptocurrencies
eosAccountNamestringEOS account name
statusstring | nullStatus of the crypto deposit account
activationTxIdstring | nullTransaction ID of the activation transaction

Responses

Deposit account created successfully

201 application/json
[
  {
    "id": "addr_def456ghi789",
    "userId": "user_789xyz",
    "endUserId": "eus_987xyz654",
    "name": "EUR Virtual Account",
    "asset": "EUR",
    "network": "Sepa",
    "refAccountId": "vac_123456789",
    "refAccountType": "VIRTUAL_ACCOUNT",
    "refAccountDetails": {
      "bankName": "Deutsche Bank",
      "accountHolderName": "John Doe",
      "country": "DE",
      "accountNumber": "532013000",
      "routingCodes": [
        {
          "type": "sort_code",
          "value": "123456"
        }
      ],
      "iban": "DE89370400440532013000",
      "bic": "COBADEFFXXX"
    }
  },
  {
    "id": "addr_def456ghi789",
    "userId": "user_789xyz",
    "endUserId": "eus_987xyz654",
    "name": "ETH Deposit Account",
    "asset": "ETH",
    "network": "Ethereum",
    "refAccountId": "35",
    "refAccountType": "CRYPTO_ACCOUNT",
    "refAccountDetails": {
      "id": "30",
      "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
      "legacyAddress": "",
      "enterpriseAddress": null,
      "tag": "",
      "eosAccountName": "Address ETH",
      "status": null,
      "activationTxId": null
    }
  }
]

API Tester

Test this endpoint directly against the sandbox environment

Get your API key from Hercle Sandbox

https://publicapi.sandbox.hercle.financial/api/v1/deposit-accounts