Reports
Generated from the OpenAPI document, API version 2026-12-01. Money is always a decimal string with a currency code.
- POST
/v1/reportsRequest a CSV export (balance transactions, pay-ins or payouts) - GET
/v1/reports/{id}Retrieve an export and its download link
Request a CSV export (balance transactions, pay-ins or payouts)
POST /v1/reports
- Scope:
reports:write - SDK:
createReport() - Success: HTTP 202
Body
| Field | Type | Required | Notes |
|---|---|---|---|
kind | enum | yes | one of balance_transactions payins payouts |
currency | enum | one of INR USDT; default "INR" | |
from | string | yes | pattern ^\d{4}-\d{2}-\d{2}$ |
to | string | yes | pattern ^\d{4}-\d{2}-\d{2}$ |
Example
const result = await nicepay.createReport({
"kind": "balance_transactions",
"from": "2026-11-01",
"to": "2026-11-01"
});$result = $nicepay->createReport([
'kind' => 'balance_transactions',
'from' => '2026-11-01',
'to' => '2026-11-01',
]);Response โ the Report object
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "report" | |
livemode | boolean | |
kind | enum | one of balance_transactions payins payouts |
currency | enum | one of INR USDT |
from | string | pattern ^\d{4}-\d{2}-\d{2}$ |
to | string | pattern ^\d{4}-\d{2}-\d{2}$ |
time_zone | string | |
status | enum | one of queued ready failed |
row_count | integer or null | may be null |
sha256 | string | null | |
error | string | null | |
created_at | timestamp | |
ready_at | timestamp or null | may be null |
download_url | string | null | |
download_expires_at | timestamp or null | may be null |
Example response
{
"id": "rep_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
"object": "report",
"livemode": true,
"kind": "balance_transactions",
"currency": "INR",
"from": "2026-11-01",
"to": "2026-11-01",
"time_zone": "time_zone",
"status": "queued",
"row_count": 1,
"sha256": "sha256",
"error": "error",
"created_at": "2026-11-23T10:00:00.000Z",
"ready_at": "2026-11-23T10:00:00.000Z",
"download_url": "download_url",
"download_expires_at": "2026-11-23T10:00:00.000Z"
}Retrieve an export and its download link
GET /v1/reports/{id}
- Scope:
reports:write - SDK:
getReport() - Success: HTTP 200
Path
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
Example
const result = await nicepay.getReport("<id>");$result = $nicepay->getReport('<id>');Response โ the Report object
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "report" | |
livemode | boolean | |
kind | enum | one of balance_transactions payins payouts |
currency | enum | one of INR USDT |
from | string | pattern ^\d{4}-\d{2}-\d{2}$ |
to | string | pattern ^\d{4}-\d{2}-\d{2}$ |
time_zone | string | |
status | enum | one of queued ready failed |
row_count | integer or null | may be null |
sha256 | string | null | |
error | string | null | |
created_at | timestamp | |
ready_at | timestamp or null | may be null |
download_url | string | null | |
download_expires_at | timestamp or null | may be null |
Example response
{
"id": "rep_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
"object": "report",
"livemode": true,
"kind": "balance_transactions",
"currency": "INR",
"from": "2026-11-01",
"to": "2026-11-01",
"time_zone": "time_zone",
"status": "queued",
"row_count": 1,
"sha256": "sha256",
"error": "error",
"created_at": "2026-11-23T10:00:00.000Z",
"ready_at": "2026-11-23T10:00:00.000Z",
"download_url": "download_url",
"download_expires_at": "2026-11-23T10:00:00.000Z"
}