POST
/
disbursements
/
batch
/
download
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/disbursements/batch/download" \
      --header "Authorization: Bearer your-jwt-token" \
      --header "Content-Type: application/json" \
      --header "Accept-Language: en" \
      -d '{
        "merchantAccountNumber": 35253486,
        "batchNumber": 12345,
        "downloadType": "XLSX"
      }'
"fileContentBase64:. UEsDBBQAAAAIAA... "

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
batchNumber
integer
required

A unique integer identifier that represents a batch of disbursement transactions in the system.

Required range: x > 0

downloadType
enum<string>
required

The file format for the download. Supported values: "XLSX" or "CSV"

Available options:
XLSX,
CSV

Response

200 - application/json

Success Response (200 OK)

The response is of type string.

Example:

"fileContentBase64:. UEsDBBQAAAAIAA... "