POST
/
merchants
/
accounts
/
add
cURL
curl -X POST "https://api.onekhusa.com/sandbox/v1/merchants/accounts/add" \
  --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 '{
       "organisationId": "FYH0NTVW0DXK",
       "accountName": "KHUSA VILLAGE BANKS",
      "currencyCode": "MWK",
      "levelNumber": "1",
      "capturedBy": "johndoe@example.com"
   }'
"Merchant has been created 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
organisationId
integer
required

The unique identifier of the organization

Example:

"FYH0NTVW0DXK"

accountName
string
required

The name of the merchant account

Example:

"KHUSA VILLAGE BANKS"

currencyCode
string
required

The currency code for the merchant (e.g., "MWK")

Example:

"MWK"

levelNumber
integer
required

The level number for the merchant. See Get Authorization Levels for available levels.

Example:

"1"

capturedBy
string<email>
required

Email address of the user creating the merchant

Example:

"johndoe@example.com"

Response

201 - application/json

Created - Merchant successfully created

The response is of type string.

Example:

"Merchant has been created successfully"