Hercle
WebSocket

Register Payee Address

Registers a new address for an existing payee.

Create a new address record for a payee with network-specific parameters.

Auth:API Key
Tags:
Banking
Payees
Addresses
Command Name
RegisterPayeeAddress

Command Arguments

ClientId
Required
Type:
string
Description:

Custom client ID for tracking (max 36 characters)

Example: "my-client-123"
PayeeId
Required
Type:
string
Description:

Payee ID

Example: "e3ab5fc5-fed6-4648-9e69-83c3fcb9e100"
Name
Required
Type:
string
Description:

Address name

Example: "USDC Wallet"
Asset
Required
Type:
string
Description:

Asset name

Example: "USDC"
Address
Required
Type:
string
Description:

Address string

Example: "address_001"
AddressParams
Required
Type:
object
Description:

Additional address parameters (network-specific)

Example: {"tag":"stable"}
Network
Required
Type:
string
Description:

Network name

Example: "Ethereum"
Comment
Required
Type:
string
Description:

Optional comment or description

Example: "USDC receiving wallet"

Command Invocation

Command Arguments Example:
[
  "my-client-123",
  "e3ab5fc5-fed6-4648-9e69-83c3fcb9e100",
  "USDC Wallet",
  "USDC",
  "address_001",
  {
    "tag": "stable"
  },
  "Ethereum",
  "USDC receiving wallet"
]
Invocation Example:
connection.invoke('RegisterPayeeAddress', 'my-client-123', 'e3ab5fc5-fed6-4648-9e69-83c3fcb9e100', 'USDC Wallet', 'USDC', 'address_001', { tag: 'stable' }, 'Ethereum', 'USDC receiving wallet')

Response Event

Event Name
executionEvents
Subject
banking.payee.address.registered
FieldTypeDescription
httpStatusCodenumberHTTP status code of the response
idstringUnique identifier of the newly created payee address
payeeIdstringID of the payee associated with the address
namestringDescriptive name for the address
assetstringAsset type for the address (e.g., EUR, USD)
addressstringThe blockchain or payment address
addressParamsobjectAdditional address parameters as key-value pairs
networkstringNetwork for the address (e.g., Sepa, Swift)
statusnumberStatus code of the address (1 = active)
commentstringOptional comment or description
confirmationStrategystringConfirmation strategy (e.g., EMAIL)
confirmationTokenstringConfirmation token (empty if not required)
messagestringResponse message

Example Response

{
  "data": {
    "httpStatusCode": 201,
    "id": "1f6983ec-7146-4446-9f9b-b3560ce8f1e1",
    "payeeId": "e3ab5fc5-fed6-4648-9e69-83c3fcb9e100",
    "name": "EUR",
    "asset": "EUR",
    "address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
    "addressParams": {
      "tag": "primary"
    },
    "network": "Sepa",
    "status": 1,
    "comment": "Primary",
    "confirmationStrategy": "EMAIL",
    "confirmationToken": "",
    "message": ""
  }
}

Network Types and Required Parameters

EUR Network Types

For EUR transfers, the following network types are available.

FieldTypeDescription
SepanetworkSingle Euro Payments Area transfer

GBP Network Types

For GBP transfers, the following network types are available.

FieldTypeDescription
Faster PaymentsnetworkInstant transfer within the UK

USD Network Types

For USD transfers, the following network types are available.

FieldTypeDescription
INTERNATIONAL_WIREnetworkInternational wire transfer
DOMESTIC_WIREnetworkDomestic wire transfer within the US
ACHnetworkStandard ACH transfer
ACH_SAME_DAYnetworkSame-day ACH transfer

Sepa - Required Address Parameters

Required parameters for Sepa network transfers.

FieldTypeDescription
bicstringBank Identifier Code (SWIFT code) - Required

Faster Payments - Required Address Parameters

Required parameters for Faster Payments network transfers.

FieldTypeDescription
sortcodestringSort code of the bank - Required

INTERNATIONAL_WIRE - Required Address Parameters

Required parameters for International Wire transfers.

FieldTypeDescription
accountnumberstringBank account number - Required
bicstringBank Identifier Code (SWIFT code) - Required
abastringAmerican Banking Association routing number - Required
banknamestringName of the bank - Required
bankaddressline1stringFirst line of bank's address - Required
bankaddresscitystringBank's city - Required
bankaddresspostalcodestringBank's postal code - Required
bankcountrystringBank's country code - Required

DOMESTIC_WIRE - Required Address Parameters

Required parameters for Domestic Wire transfers.

FieldTypeDescription
accountnumberstringBank account number - Required
wirestringWire routing number - Required
banknamestringName of the bank - Required

ACH / ACH_SAME_DAY - Required Address Parameters

Required parameters for ACH and ACH Same Day transfers.

FieldTypeDescription
accountnumberstringBank account number - Required
abastringACH routing number - Required
accounttypestringAccount type (CHECKING or SAVINGS) - Required

Code Examples

const signalR = require('@microsoft/signalr');

const apiKey = 'YOUR_API_KEY_HERE';
const connection = new signalR.HubConnectionBuilder()
  .withUrl('https://publicapi.sandbox.hercle.financial/ExecutionLiveServer/v1', {
    accessTokenFactory: () => apiKey,
  })
  .build();

connection.start()
  .then(() => {
    console.log('Connected to WebSocket');
    
    // Invoke command
    connection.invoke('RegisterPayeeAddress', "my-client-123", "e3ab5fc5-fed6-4648-9e69-83c3fcb9e100", "USDC Wallet", "USDC", "address_001", {"tag":"stable"}, "Ethereum", "USDC receiving wallet")
      .then(() => {
        console.log('Command sent successfully');
      })
      .catch(err => {
        console.error('Command failed:', err);
      });
  })
  .catch(err => {
    console.error('Connection failed:', err);
  });

// Listen for events
connection.on('executionEvents', (data) => {
  console.log('Received event:', data);
});

SignalR API Tester

Test this command in the sandbox environment

Disconnected

Your API key is only used locally and never stored

Event Log

No events yet. Connect and invoke a command to see events.