Hercle
REST
POST/api/v1/addresses/deposit

Create Deposit Address

Creates a deposit address for the given asset.

Auth:Bearer <api_key>
Tags:Addresses

Request

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

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
Content-TypestringYesContent type of the request body

Request Body

Schema

object
asset*:string
// The asset code (e.g., EUR, USD)
network*:string
// The network of the asset (e.g., Sepa, Swift)

Example

{
  "asset": "EUR",
  "network": "Sepa"
}

Response

Success Response Schema

FieldTypeDescription
idstringUnique identifier for the deposit address
namestringUser-defined name for the deposit address
userIdstringID of the user who owns the deposit address
assetstringAsset code (e.g., BTC, ETH, USD)
networkstringNetwork name (e.g., Bitcoin, Ethereum)
addressstringThe deposit address
addressParamsobjectAdditional parameters for the deposit address
endUserIdstringEnd user ID associated with the deposit address
refAccountTypestring | nullType of reference account
refAccountIdstring | nullReference account ID
refAccountDetailsobject | nullDetailed account information (bank details or crypto details)

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

Address request submitted successfully

201 application/json
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "My Deposit Address",
    "userId": "123e4567-e89b-12d3-a456-426614174000",
    "asset": "EUR",
    "network": "Sepa",
    "address": "DE89370400440532013000",
    "addressParams": {},
    "endUserId": "",
    "refAccountType": null,
    "refAccountId": null,
    "refAccountDetails": null
  },
  {
    "id": "addr_def456ghi789",
    "name": "EUR Virtual Account",
    "userId": "user_789xyz",
    "asset": "EUR",
    "network": "Sepa",
    "address": "DE89370400440532013000",
    "addressParams": {},
    "endUserId": "eus_123456789",
    "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"
    }
  }
]

API Tester

Test this endpoint directly against the sandbox environment

Get your API key from Hercle Sandbox

https://publicapi.sandbox.hercle.financial/api/v1/addresses/deposit