Hercle
REST
PATCH/api/v1/payees/{payeeId}/addresses/{payeeAddressId}/approve

Approve Payee Address

Approve a payee address using the confirmation token received via email. This endpoint is used to confirm and activate a previously registered payee address.

Auth:Bearer <api_key>
Tags:Banking

Request

cURL
curl https://publicapi.sandbox.hercle.financial/api/v1/payees/{payeeId}/addresses/{payeeAddressId}/approve \
  -H "Authorization: Bearer eyJhb..." \

Path Parameters

NameTypeRequiredDescription
payeeIdstringYesThe ID of the payee
Example: 123e4567-e89b-12d3-a456-426614174000
payeeAddressIdstringYesThe ID of the payee address to approve
Example: 123e4567-e89b-12d3-a456-426614174001

Headers

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

Request Body

Schema

object
email*:string
// Email address associated with the confirmation
confirmationToken*:string
// The confirmation token used to approve the payee address. When confirmationStrategy is EMAIL, a confirmation link containing the token is sent to the registered email address. When confirmationStrategy is API, the token is returned directly in the Register Payee Address response.

Example

{
  "email": "user@example.com",
  "confirmationToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

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, BTC)
addressstringThe payment or blockchain address
addressParamsarray | nullAdditional address parameters
addressParams[].idstringParameter identifier
addressParams[].valuestringParameter value
networkstringNetwork name (e.g., Sepa, BTC)
statusnumber
Status of the address
0created
1pending
2refused
commentstring | nullOptional comment for the address
confirmationStrategystring
Strategy for confirming the address
Allowed values:
EMAIL
API
confirmationTokenstring | nullToken used for confirming the address

Responses

200 application/json
{
  "id": "123e4567-e89b-12d3-a456-426614174001",
  "payeeId": "123e4567-e89b-12d3-a456-426614174000",
  "name": "My Payee Address",
  "asset": "BTC",
  "address": "bc1q...",
  "addressParams": null,
  "network": "BTC",
  "status": 1,
  "comment": null,
  "confirmationStrategy": "EMAIL",
  "confirmationToken": null
}

API Tester

Test this endpoint directly against the sandbox environment

Get your API key from Hercle Sandbox

The ID of the payee

The ID of the payee address to approve

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