POST
/
merchants
/
bankAccounts
/
update
cURL
curl -X POST "https://api.onekhusa.com/sandbox/v1/merchants/bankAccounts/update" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "X-Organisation-Id: FYH0NTVW0DXK" \
  --header "X-Merchant-Account-Number: 35253486" \
  --header "Accept-Language: en" \
  -d '{
    "merchantAccountNumber": 35253486,
    "accountId": 12,
    "accountNumber": "9876543210",
    "connectorId": 550044,
    "accountName": "Jane Smith",
    "capturedBy": "johndoe@example.com"
  }'
"Merchant bank account has been updated successfully"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <Token>, where <Token> is your access token.

Headers

X-Organisation-Id
string
required

The organization identifier

X-Merchant-Account-Number
string
required

The merchant account number

Accept-Language
string
default:en

Preferred language for the response

Body

application/json
merchantAccountNumber
string
required

The merchant account number associated with the settlement account

Example:

"35253486"

accountId
integer
required

The unique identifier of the settlement account to update

Example:

12

accountNumber
string
required

The updated bank account number

Example:

"9876543210"

connectorId
integer
required

The unique identifier of the connector/bank. See Get Connectors for available values.

Example:

550044

accountName
string
required

The updated name of the bank account holder

Example:

"Jane Smith"

capturedBy
string<email>
required

Email address of the user updating the settlement account

Example:

"johndoe@example.com"

Response

200 - application/json

OK - Settlement account successfully updated

message
string
Example:

"Merchant bank account has been updated successfully"