Hercle
REST
POST/api/v1/payees/{payeeId}/addresses

Register Payee Address

Register a new address for a payee. The required address parameters vary by currency and network type. See the Network Requirements section below for details.

Auth:Bearer <api_key>
Tags:Banking

Request

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

Path Parameters

NameTypeRequiredDescription
payeeIdstringYesThe ID of the payee to add the address for
Example: 123e4567-e89b-12d3-a456-426614174000

Headers

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

Request Body

Schema

object
name*:string
// Name associated with the address
asset*:string
// Asset associated with the address (e.g., USD, EUR)
address*:string
// The payment address
addressParams*:array
// Additional parameters required for the address. Requirements vary by network: ** EUR - Sepa: ** • bic (required): Bank Identifier Code (SWIFT code) ** GBP - Faster Payments: ** • sortcode (required): Sort code of the bank ** USD - INTERNATIONAL_WIRE: ** • accountnumber (required): Bank account number • bic (required): Bank Identifier Code (SWIFT code) • aba (required): American Banking Association routing number • bankname (required): Name of the bank • bankaddressline1 (required): First line of bank's address • bankaddresscity (required): Bank's city • bankaddresspostalcode (required): Bank's postal code • bankcountry (required): Bank's country code ** USD - DOMESTIC_WIRE: ** • accountnumber (required): Bank account number • wire (required): Wire routing number • bankname (required): Name of the bank ** USD - ACH / ACH_SAME_DAY: ** • accountnumber (required): Bank account number • aba (required): ACH routing number • accounttype (required): Account type (CHECKING or SAVINGS)
[item]:object
network*:string
// Network type for the transfer. Available options by currency: ** EUR: ** Sepa (Single Euro Payments Area transfer) ** GBP: ** Faster Payments (Instant transfer within the UK) ** USD: ** INTERNATIONAL_WIRE, DOMESTIC_WIRE, ACH, ACH_SAME_DAY
confirmationStrategy:string
// Strategy for confirming the address. When set to EMAIL, a confirmation link containing the token is sent to the registered email address. When set to API, the token is returned directly in the response.
comment:string
// Optional comment for the address

Example

{
  "name": "John Doe",
  "asset": "EUR",
  "address": "IT60X0542811101000000123456",
  "addressParams": [
    {
      "id": "bic",
      "value": "ABCDITMMXXX"
    }
  ],
  "network": "Sepa",
  "confirmationStrategy": "EMAIL",
  "comment": "My primary EUR address"
}

Response

Success Response Schema

FieldTypeDescription
idstringUnique identifier for the payee address
payeeIdstringPayee identifier this address belongs to
namestringName associated with the address
assetstringAsset code (e.g., EUR, USD)
addressstringThe payment or blockchain address
addressParamsarrayAdditional address parameters
addressParams[].idstringParameter identifier
addressParams[].valuestringParameter value
networkstringNetwork name (e.g., Sepa, Swift)
statusnumber
Status of the address
0created
1pending
2refused
confirmationStrategystring
Strategy for confirming the address. When set to EMAIL, a confirmation link containing the token is sent to the registered email address. When set to API, the token is returned directly in the response.
Allowed values:
EMAIL
API
confirmationTokenstringToken used for confirming the address. Only returned when confirmationStrategy is API. When confirmationStrategy is EMAIL, the token is included in the confirmation link sent to the email address.
commentstringOptional comment for the address

Responses

201 application/json
{
  "id": "123e4567-e89b-12d3-a456-426614174001",
  "payeeId": "123e4567-e89b-12d3-a456-426614174000",
  "name": "John Doe",
  "asset": "EUR",
  "address": "IT60X0542811101000000123456",
  "addressParams": [
    {
      "id": "bic",
      "value": "ABCDITMMXXX"
    }
  ],
  "network": "Sepa",
  "status": 1,
  "confirmationStrategy": "EMAIL",
  "confirmationToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
  "comment": "My primary EUR address"
}

API Tester

Test this endpoint directly against the sandbox environment

Get your API key from Hercle Sandbox

The ID of the payee to add the address for

https://publicapi.sandbox.hercle.financial/api/v1/payees/{payeeId}/addresses