Manage Beneficiaries

Creating and managing beneficiaries is required before making payments for certain currencies. Check the Currency Support page to see which currencies require beneficiary creation.

Create Beneficiary

To create a beneficiary, you must submit a request with the beneficiary details. This request includes the necessary information to ensure payments are directed to the correct recipient.

Request

POSThttps://api.harpfi.com/v1/payments/outflows/beneficiaries

General Request Body

Field KeyTypeLengthDescriptionRequired
nicknamestring100A friendly name or identifier for the beneficiaryNo
referencestring50A unique reference identifier for the beneficiaryYes
entityobject20Information about the beneficiary entity (individual or business)Yes
entity.typestring20The type of entity. Must be one of: individual or businessYes
entity.namestring200The full name of the individual or business nameYes
entity.addressDetailsobject-Address information for the beneficiaryYes
entity.addressDetails.addressstring200Street address or address lineYes
entity.addressDetails.citystring100City nameYes
entity.addressDetails.statestring100State or provinceNo
entity.addressDetails.countryCodestring2ISO country code (e.g. "US", "GB", "DE")Yes
entity.addressDetails.postalCodestring20Postal or ZIP codeNo
destinationobject-Payment destination informationYes
destination.typestring20Type of destination. Must be bank_accountYes
destination.currencystring3Currency code for the destination account (e.g. "USD", "GBP", "EUR")Yes
destination.bankAccountobject-Bank account details (see bank account object specification below)Yes
destination.bankAccount.typestring20Type of bank account. Valid values are domestic, swiftYes
destination.bankAccount.bankNamestring200Name of the bankYes
destination.bankAccount.accountHolderNamestring200Name of the account holderYes
destination.bankAccount.countryCodestring2Bank ISO country code (e.g. "US", "GB", "DE")Yes
destination.bankAccount.bankAddressstring200Bank street address or address lineYes
destination.bankAccount.bankAddressPostalCodestring20Postal or ZIP code for the bank locationNo

Scheme Account Request Body

Field KeyTypeDescriptionRequired
destination.bankAccount.typestringType of bank account. Must be swiftYes
destination.bankAccount.accountNumberstringAccount number, accepts digits and IBANYes
destination.bankAccount.swiftBicstringSWIFT/BIC code for the bankYes
JSON
{
    "nickname": "Ash Cole",
    "reference": "2831982749188",
    "entity": {
        "type": "individual", 
        "name": "Asher Ram",
        "addressDetails": {
            "address": "10b Western Gateway",
            "city": "London",
            "state": "Mumbai",
            "countryCode": "IN",
            "postalCode": "10101010"
        }
    },
    "destination": {
        "type": "bank_account",
        "currency": "USD",
        "bankAccount": {
            "type": "domestic",
            "accountNumber": "45009092",
            "wireRoutingNumber": "031204101",
            "accountHolderName": "Hello",
            "swiftBic": "REVOGB21",
            "bankName": "J.P. MORGAN (SECURITIES) LLC",
            "countryCode": "US",
            "bankAddress": "10A Western Gateway, Luton",
            "bankAddressPostalCode": "E104OY"
        }
    }
}

Response

JSON
{
    "success": true,
    "message": "Beneficiary created successfully",
    "data": {
        "id": "TPOB_2qFm9YCyBPyt",
        "reference": "2831982749188",
        "status": "active"
    }
}

Get Beneficiary Details

You can retrieve a beneficiary's details by submitting the beneficiary's reference as a query parameter. This allows you to fetch detailed information about any created beneficiary.

Request

GEThttps://api.harpfi.com/v1/payments/outflows/beneficiaries/:beneficiaryReference

Response

JSON
{
    "success": true,
    "message": "Beneficiary details retrieved successfully",
    "data": {
        "id": "TPOB_JsUUUjJFa2DN",
        "reference": "a6b3d491125cd7a79751b773fd7821",
        "nickname": "Peter",
        "status": "active",
        "name": "Peter Dury",
        "type": "individual",
        "destination": {
            "type": "bank_account",
            "currency": "USD",
            "bankAccount": {
                "type": "domestic",
                "accountNumber": "45009092",
                "swiftBic": "REVOGB21",
                "wireRoutingNumber": "031204101",
                "bankName": "J.P. MORGAN (SECURITIES) LLC"
            }
        }
    }
}