GET
/
merchants
/
accounts
/
get
cURL
curl -X GET "https://api.onekhusa.com/sandbox/v1/merchants/accounts/get?merchantAccountNumber=35223486" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "X-Organisation-Id: FYH0NTVW0DXK" \
  --header "X-Merchant-Account-Number: 35253486" \
  --header "Accept-Language: en"
{
  "organisationId": "FYH0NTVW0DXK",
  "accountName": "KHUSA VILLAGE BANKS",
  "merchantAccountNumber": 35253486,
  "accountBalance": 10000,
  "collectionBalance": 5000,
  "disbursmentBalance": 5000,
  "currencyCode": "MWK",
  "levelNumber": 1,
  "levelName": "Initiator Only",
  "statusCode": "A",
  "statusName": "Active",
  "capturedBy": "JohnDoe",
  "dateCreated": "2024-01-15T10:30:00Z"
}

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

Query Parameters

merchantAccountNumber
string
required

Merchant account number to retrieve

Response

200 - application/json

Success Response (200)

organisationId
integer

Organization identifier

Example:

"FYH0NTVW0DXK"

accountName
string

Merchant account name

Example:

"KHUSA VILLAGE BANKS"

merchantAccountNumber
integer

Required string length: 8

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

35253486

accountBalance
number

Current account balance

Example:

10000

collectionBalance
number

Available collection balance

Example:

5000

disbursmentBalance
number

Available disbursement balance

Example:

5000

currencyCode
string

A three-letter ISO 4217 code that identifies the currency used in the transaction

Example:

"MWK"

levelNumber
integer

Merchant authorization level

Example:

1

levelName
string

Human-readable level name

Example:

"Initiator Only"

statusCode
string

Account status code

Example:

"A"

statusName
string

Human-readable status name

Example:

"Active"

capturedBy
string

User who created the account

Example:

"JohnDoe"

dateCreated
string<date-time>

Account creation timestamp (ISO 8601)

Example:

"2024-01-15T10:30:00Z"