Registers the Indian bank account an LRS remittance is debited from. Pass the returned id (acclrs_...) as lrs.bank_account_id when you create an LRS order.
This is not the same endpoint as POST /customer/{id}/bank-accounts (createCustomerBankAccount), and the two sets of accounts are kept apart:
A customer can hold several LRS bank accounts. Registering another one adds to the list, whereas
createCustomerBankAccountkeeps one account per customer and replaces it. Registering the same account number at the same bank twice is rejected here.LRS bank accounts are not returned by
GET /customer/{id}/bank-accounts, and a bank account fromPOST /customer/{id}/bank-accountscannot be used aslrs.bank_account_id.The account number is returned in full, as sent.
Code of the customer's bank. Must be a bank_code returned by GET /lrs/banks for your account, matched exactly and case-sensitively. An LRS order that uses this account must use a quote created for the same bank_code, or the order is rejected.
The customer's account number at that bank. Digits only, with a length inside the range that bank accepts. Returned in full, as sent, in the response. In sandbox, 50100117322072 with hdfc and 925010000230876 with axis make checkout ask for a document after the OTP; any other number skips that step. See Test it in sandbox.
- Production serverhttps://api.glomopay.com/api/v1/customer/{id}/bank_account
curl -i -X POST \
https://api.glomopay.com/api/v1/customer/cust_68468bfcxaGo2/bank_account \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"bank_code": "hdfc",
"account_number": "12345678901234",
"bank_customer_id": "12345678"
}'LRS bank account registered
Unique identifier of the LRS bank account. It starts with acclrs_.
Code of the customer's bank. Must be a bank_code returned by GET /lrs/banks for your account, matched exactly and case-sensitively. An LRS order that uses this account must use a quote created for the same bank_code, or the order is rejected.
The customer's account number at that bank. Digits only, with a length inside the range that bank accepts. Returned in full, as sent, in the response. In sandbox, 50100117322072 with hdfc and 925010000230876 with axis make checkout ask for a document after the OTP; any other number skips that step. See Test it in sandbox.
{ "id": "acclrs_68468c03g9xt7", "bank_code": "hdfc", "account_number": "12345678901234", "bank_customer_id": "12345678" }