Skip to content

List a customer's bank accounts

Request

Returns the bank accounts registered against a customer.

Security
JWT
Path
idstringrequired

The ID of the customer

Example:cust_5JU9yv0lGSUP
curl -i -X GET \
  https://api.glomopay.com/api/v1/customer/cust_5JU9yv0lGSUP/bank-accounts \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Bank accounts retrieved successfully

Bodyapplication/json
Array [
idstringread-only

Unique identifier of the bank account.

Example:"acccus_6a5f1c92Xq4Wd"
account_numberstring

The customer's bank account number or IBAN. Masked in every response, showing only the last four characters.

Example:"50100123456789"
bank_namestring

Name of the bank holding the account.

Example:"HDFC bank"
bic_primarystring

SWIFT/BIC code of the bank. Provide this or bic_secondary.

Example:"HDFCINBBXXX"
bic_secondarystring

Local routing code of the bank — IFSC in India, sort code in the United Kingdom, ABA routing number in the United States. Provide this or bic_primary.

Example:"HDFC0000123"
holder_namestringread-only

Name on the account. Always the customer's own name, so it is derived from the customer and cannot be set on the request.

Example:"Priya Raghunathan"
]
Response
[ { "id": "acccus_6a5f1c92Xq4Wd", "account_number": "50100123456789", "bank_name": "HDFC bank", "bic_primary": "HDFCINBBXXX", "bic_secondary": "HDFC0000123", "holder_name": "Priya Raghunathan" } ]