POST
/
merchants
/
bankAccounts
/
add
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/merchants/bankAccounts/add" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  -d '{
    "merchantAccountNumber": 35253486,
    "accountNumber": "1234567890",
    "connectorId": 550044,
    "accountName": "John Doe",
    "capturedBy": "johndoe@example.com"
  }'
"Merchant bank account has been created successfully"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer Token, Where accessToken is the access token used to authenticate the request.

Headers

Accept-Language
string
default:en

Preferred language for the response

Body

application/json
merchantAccountNumber
integer
required

The unique identifier of the merchant account

Required range: 10000000 <= x <= 99999999
Example:

35253486

accountNumber
string
required

The bank account number

Example:

"1234567890"

connectorId
integer
required

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

Example:

550044

accountName
string
required

The name of the bank account holder

Example:

"John Doe"

capturedBy
string<email>
required

Email address of the user creating the settlement account

Example:

"johndoe@example.com"

Response

201 - application/json

Created - Settlement account successfully created

message
string
Example:

"Merchant bank account has been created successfully"