POST
/
disbursements
/
batch
/
generateFakeTransactions
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/disbursements/batch/generateFakeTransactions" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  -d '{
    "fileType": "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

Request payload for generating fake disbursement transactions

fileType
enum<string>
required

The file format for the generated transactions

Available options:
XLSX,
CSV
Example:

"XLSX"

Response

200 - application/json

Success Response (200 OK)

Response containing the generated fake transactions file

fileContentBase64
string

Base64-encoded content of the generated file

Example:

"UEsDBBQAAAAIAA..."