PUT
/
disbursements
/
batch
/
approve
cURL
curl -X PUT "https://api.onekhusa.com/sandbox/v1/disbursements/batch/approve" \
  --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 '{
    "merchantAccountNumber": 35253486,
    "batchNumber": 678,
    "actionedBy": "admin@example.com"
  }'
"Batch number 678 has been approved 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
merchantAccountNumber
integer
required

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

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

35253486

batchNumber
integer
required

The unique identifier of the batch number to approve

Required range: x >= 1
Example:

678

actionedBy
string
required

The email address of the user approving the batch

Maximum length: 60
Example:

"admin@example.com"

Response

200 - application/json

Success Response (200 OK) - Batch approved successfully

The response is of type string.

Example:

"Batch number 678 has been approved successfully"