Skip to content

Update the bank customer ID on an LRS bank account

Request

Sets bank_customer_id on a customer's LRS bank account, for example to correct a value the customer entered wrongly. Any existing value is replaced. The value is checked against the rules of the account's bank.

Security
JWT
Path
idstringrequired

The ID of the customer

Example:cust_68468bfcxaGo2
bank_account_idstringrequired

The ID of the LRS bank account

Example:acclrs_68468c03g9xt7
Bodyapplication/jsonrequired
bank_customer_idstring

The customer's identifier at their bank. Required for banks that use one. For those banks it must contain only digits, with a length inside the range the bank accepts. For other banks it is optional; omitting it clears the value.

Example:"12345678"
curl -i -X PATCH \
  https://api.glomopay.com/api/v1/customer/cust_68468bfcxaGo2/bank_account/acclrs_68468c03g9xt7 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "bank_customer_id": "12345678"
  }'

Responses

Bank customer ID updated

Bodyapplication/json
idstringread-only

Unique identifier of the LRS bank account. It starts with acclrs_.

Example:"acclrs_68468c03g9xt7"
bank_codestring

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.

Example:"hdfc"
account_numberstring

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.

Example:"12345678901234"
bank_customer_idstring

Optional. The customer's identifier at their bank. For banks that use one, it must contain only digits, with a length inside the range that bank accepts; an invalid value is rejected with 400.

Example:"12345678"
Response
{ "id": "acclrs_68468c03g9xt7", "bank_code": "hdfc", "account_number": "12345678901234", "bank_customer_id": "12345678" }