PUT
/
disbursements
/
single
/
approve
cURL
curl -X PUT "https://dev.api.onekhusa.com/sandbox/v1/disbursements/single/approve" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  --header "X-Idempotency-Key: your-idempotency-key" \
 -d '{
    "merchantAccountNumber": 35253486,
    "transactionReferenceNumber": "251105CJZ16U",
    "actionedBy": "johndoe@example.com"
  }'
{
  "merchantAccountNumber": 37463669,
  "transactionReferenceNumber": "251105CJZ16U",
  "responseCode": "S100"
}

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

X-Idempotency-Key
string

A unique key to ensure idempotent requests

Body

application/json
merchantAccountNumber
integer
required

The unique identifier of the merchant account (Required string length: 8)

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

35253486

transactionReferenceNumber
string
required

The unique transaction reference number to approve

Example:

"251105CJZ16U"

actionedBy
string
required

The username or identifier of the user approving the transaction

Maximum string length: 60
Example:

"johndoei@example.com"

Response

200 - application/json

200-OK

merchantAccountNumber
integer
Example:

37463669

transactionReferenceNumber
string
Example:

"251105CJZ16U"

responseCode
string
Example:

"S100"