POST
/
disbursements
/
batch
/
getBatches
cURL
curl -X 'POST' \
  'https://api.onekhusa.com/sandbox/v1/disbursements/batch/getBatches' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer your-jwt-token' \
  --header 'X-Organisation-Id: FYH0NTVW0DXK' \
  --header 'X-Merchant-Account-Number: 35253486' \
  --header 'Accept-Language: en' \
  -d '{
  "merchantAccountNumber": 12345678,
  "batchDate": "2025-09-26T08:43:21.699084",
  "pageNumber": 1,
  "numberOfReturnedRows": 20,
  "isIncremental": true,
  "searchBy": "CapturedBy": 
  "searchText": "j1LgGY"
}'
[
  {
    "batchNumber": 2024001,
    "capturedBy": "johndoe@example.com",
    "dateCaptured": "2024-01-15",
    "batchStatusCode": "A",
    "batchStatusDescription": "Approved",
    "processDate": "2024-01-15",
    "isBatchScheduled": false,
    "numberOfTransactions": 100
  }
]

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

Required string length: 8

Required range: 10000000 <= x <= 99999999
batchDate
string<date>
required

Date filter for batch creation date (YYYY-MM-DD)

pageNumber
integer
required

Page number for pagination (starts from 1)

numberOfReturnedRows
integer
required

Number of records per page

isIncremental
boolean
required

If true, includes previous pages; if false, only current page

searchBy
enum<string>
required

Field to search by. Supported fields: CapturedBy, ReviewedBy, ApprovedBy, BatchStatus, BatchStatusDescription

Available options:
CapturedBy,
ReviewedBy,
ApprovedBy,
BatchStatus,
BatchStatusDescription
searchText
string

Text to search for

Response

Success Response (200)

headerId
integer

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

Required range: x > 0

batchNumber
integer

A unique integer identifier for the disbursement batch.

capturedBy
string<email>

Email address of the user who created the batch.

Example:

"johndoe@example.com"

dateCaptured
string<date>

Date when the batch was created and submitted.

batchStatusCode
string

Single-character code for batch status. Values: "A" - Approved, "P" - Pending, "E" - Error, "F" - Failed, "N" - Cancelled, "X" - Rejected, "C" - Completed.

batchStatusDescription
string

Human-readable description of the batch status. Examples: "Approved", "Processed", "Pending Review".

processDate
string<date>

Date when the batch was processed for disbursement.

isBatchScheduled
boolean

Boolean flag indicating if the batch is scheduled for future processing.

numberOfTransactions
integer

Number of transactions in the batch