POST
/
merchants
/
accounts
/
update
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/merchants/accounts/update" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  -d '{
    "merchantAccountNumber": 35253486,
    "accountName": "KHUSA VILLAGE BANKS",
    "currencyCode": "MWK",
    "organisationId": "FYH0NTVW0DXK",
    "capturedBy": "johndoe@example.com",
    "levelNumber": 2
  }'
"Merchant has been updated 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 to update

Example:

35253486

accountName
string
required

The updated name of the merchant account

Example:

"KHUSA VILLAGE BANKS"

currencyCode
string
required

The updated currency code (can only be changed if merchant has no transactions)

Example:

"MWK"

organisationId
string
required

The unique identifier of the organization

Example:

"FYH0NTVW0DXK"

capturedBy
string<email>
required

Email address of the user updating the merchant

Example:

"johndoe@example.com"

levelNumber
integer
required

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

Example:

1

Response

200 - application/json

OK - Merchant successfully updated

The response is of type string.

Example:

"Merchant has been updated successfully"