POST
/
merchants
/
accounts
/
topup
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/merchants/accounts/topup" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  -d '{
    "merchantAccountNumber": 35253486,
    "connectorId": 550044,
    "topupAmount": 1000000,
    "createdBy": "johndoe@example.com"
  }'
"Merchant account topup is successful"

Authorizations

Authorization
string
header
required

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

Headers

Accept-Language
string
default:en

Preferred language for the response

Body

application/json
merchantAccountNumber
integer
required

Required string length: 8

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

35253486

connectorId
integer
required

The connector ID for the transaction. See Get Connectors for available values.

Example:

550044

topupAmount
number<decimal>
required

The amount to add to the merchant's balance

Required range: 0.01 <= x <= 5000000000
Example:

1000000

createdBy
string<email>
required

Email address of the user initiating the topup

Example:

"johndoe@example.com"

Response

200 - text/plain

Success Response (200)

The response is of type string.

Example:

"Merchant account topup is successful"