Hercle
REST
POST/api/v1/payee

Register Payee

Register a new payee.

Auth:Bearer <api_key>
Tags:Banking

Request

cURL
curl -X POST https://publicapi.sandbox.hercle.financial/api/v1/payee \
  -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
type*:number
// Type of payee (0: Individual, 1: Company)
name*:string
// Name of the payee
endUserId:string
// End user identifier
surname*:string
// Surname of the payee
company*:string
// Company name of the payee (if applicable)
country*:string
// Country of the payee (ISO 3166-1 alpha-2 format)
state*:string
// State or province of the payee
city*:string
// City of the payee
address*:string
// Street address of the payee
postalCode*:string
// Postal code of the payee

Example

{
  "type": 0,
  "name": "John",
  "endUserId": "",
  "surname": "Doe",
  "company": "Company Inc.",
  "country": "US",
  "state": "CA",
  "city": "San Francisco",
  "address": "123 Market St",
  "postalCode": "94103"
}

Response

Success Response Schema

FieldTypeDescription
idstringUnique identifier for the payee
userIdstringUser identifier who owns the payee
endUserIdstringEnd user identifier
typenumber
Payee type
0→ Individual
1→ Company
namestringFirst name of the payee
surnamestringLast name of the payee
companystring | nullCompany name if applicable
countrystringCountry code (ISO 3166-1 alpha-2)
statestringState or province
citystringCity name
addressstringStreet address
postalCodestringPostal or ZIP code

Responses

Payee created successfully

200 application/json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "userId": "987e6543-e21b-12d3-a456-426614174000",
  "endUserId": "",
  "type": 0,
  "name": "John",
  "surname": "Doe",
  "company": "Company Inc.",
  "country": "US",
  "state": "CA",
  "city": "San Francisco",
  "address": "123 Market St",
  "postalCode": "94103"
}

API Tester

Test this endpoint directly against the sandbox environment

Get your API key from Hercle Sandbox

https://publicapi.sandbox.hercle.financial/api/v1/payee