- Register a customer's bank account
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.
The customer's bank account number or IBAN. Masked in every response, showing only the last four characters.
- Production serverhttps://api.glomopay.com/api/v1/customer/{id}/bank-accounts
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"
}'Bank account registered. Any account previously registered against this customer is no longer in use.
The customer's bank account number or IBAN. Masked in every response, showing only the last four characters.
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.
{ "id": "acccus_6a5f1c92Xq4Wd", "account_number": "50100123456789", "bank_name": "HDFC bank", "bic_primary": "HDFCINBBXXX", "bic_secondary": "HDFC0000123", "holder_name": "Priya Raghunathan" }