GET
/
api
/
v1
/
beneficiaries
/
query
curl --location 'http://api.sandbox.uqpay.org/api/v1/beneficiaries/query?account_currency=USD&account_number=accadfgtrg31da&payment_method=local&entity_type=company&company_name=lark%E9%80%9A%E7%9F%A5&beneficiary_id=null&bank_country=null&email=admin%40gmail.com&first_name=null&last_name=null' \
--header 'x-client-id: RxxlL413omk6gqqn2jpg7J' \
--header 'x-auth-token: Bearer 4739e82520d26a115a5a77703cb3a04e'
{
    "code": 200,
    "message": "Success",
    "data": {
        "beneficiary_id": "c45a4e8e-5969-4609-8218-091f5db7287e",
        "entity_type": "company",
        "payment_method": "swift",
        "beneficiary_email": "[email protected]",
        "beneficiary_nickname": "MANY A-SUN",
        "beneficiary_company_name": "Courtesy Hardware Store",
        "beneficiary_summary": "USD account ending in 4557",
        "account_currency_code": "USD",
        "bank_country_code": "US",
        "beneficiary_bank_details": {
            "bank_name": "1ST STATE BANK",
            "bank_address": "4929 Briarwood Drive",
            "bank_country_code": "US",
            "account_holder": "Robert Shishani",
            "account_currency_code": "USD",
            "account_number": "4865393923574557",
            "iban": "",
            "swift_code": "230",
            "clearing_system": "SWIFT",
            "routing_code_type1": "",
            "routing_code_value1": "",
            "routing_code_type2": "",
            "routing_code_value2": ""
        },
            "beneficiary_address": {
            "country_code": "US",
            "city": "Montgomery",
            "street_address": "1230 Stafford Dr",
            "postal_code": "36117",
            "state": "Alabama"
        }
    }
}
x-client-id
string
required

x-client-id.

x-auth-token
string
required

Bearer YOUR_TOKEN_HERE.

Parameters

account_currency
string
required

Three-letter ISO 4217 currency code.

account_number
string
required

Number of the account this beneficiary is associated with.
Maximum length 60

payment_method
string
required

Payment method of the beneficiary.
One of local, swift

beneficiary_id
string

Beneficiary UUID.

bank_country
string

Two-letter ISO 3166-2 country code.

entity_type
string

Entity type of the beneficiary.
One of individual, company

email
string

Email of the beneficiary.

first_name
string

First name of the beneficiary.
Maximum length 45

last_name
string

Last name of the beneficiary.
Maximum length 45

company_name
string

Company name of the beneficiary.
Maximum length 120

Response

code
number

Indicates whether the call was successful. 200 if successful, 400 if not.

message
string

Response Message. “Success” if successful, others not.

data
object
curl --location 'http://api.sandbox.uqpay.org/api/v1/beneficiaries/query?account_currency=USD&account_number=accadfgtrg31da&payment_method=local&entity_type=company&company_name=lark%E9%80%9A%E7%9F%A5&beneficiary_id=null&bank_country=null&email=admin%40gmail.com&first_name=null&last_name=null' \
--header 'x-client-id: RxxlL413omk6gqqn2jpg7J' \
--header 'x-auth-token: Bearer 4739e82520d26a115a5a77703cb3a04e'
{
    "code": 200,
    "message": "Success",
    "data": {
        "beneficiary_id": "c45a4e8e-5969-4609-8218-091f5db7287e",
        "entity_type": "company",
        "payment_method": "swift",
        "beneficiary_email": "[email protected]",
        "beneficiary_nickname": "MANY A-SUN",
        "beneficiary_company_name": "Courtesy Hardware Store",
        "beneficiary_summary": "USD account ending in 4557",
        "account_currency_code": "USD",
        "bank_country_code": "US",
        "beneficiary_bank_details": {
            "bank_name": "1ST STATE BANK",
            "bank_address": "4929 Briarwood Drive",
            "bank_country_code": "US",
            "account_holder": "Robert Shishani",
            "account_currency_code": "USD",
            "account_number": "4865393923574557",
            "iban": "",
            "swift_code": "230",
            "clearing_system": "SWIFT",
            "routing_code_type1": "",
            "routing_code_value1": "",
            "routing_code_type2": "",
            "routing_code_value2": ""
        },
            "beneficiary_address": {
            "country_code": "US",
            "city": "Montgomery",
            "street_address": "1230 Stafford Dr",
            "postal_code": "36117",
            "state": "Alabama"
        }
    }
}