Skip to content

Register a customer's bank account

Request

Registers the bank account a customer sends money from.

A customer holds one bank account at a time. Registering another one replaces the existing account, so use this endpoint to correct an account or to move a customer to a new bank.

For an LRS remittance, register the customer's Indian bank account with POST /customer/{id}/bank_account (createLrsCustomerBankAccount) instead. Accounts registered here have acccus_ IDs and cannot be used as lrs.bank_account_id on an order.

Security
JWT
Path
idstringrequired

The ID of the customer

Example:cust_5JU9yv0lGSUP
Bodyapplication/jsonrequired
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"
curl -i -X POST \
  https://api.glomopay.com/api/v1/customer/cust_5JU9yv0lGSUP/bank-accounts \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "account_number": "50100123456789",
    "bank_name": "HDFC bank",
    "bic_primary": "HDFCINBBXXX",
    "bic_secondary": "HDFC0000123"
  }'

Responses

Bank account registered. Any account previously registered against this customer is no longer in use.

Bodyapplication/json
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" }