Nice Paydocs API version 2026-12-01 OpenAPI

Reports

Generated from the OpenAPI document, API version 2026-12-01. Money is always a decimal string with a currency code.

Request a CSV export (balance transactions, pay-ins or payouts)

POST /v1/reports

  • Scope: reports:write
  • SDK: createReport()
  • Success: HTTP 202

Body

FieldTypeRequiredNotes
kindenumyesone of balance_transactions payins payouts
currencyenumone of INR USDT; default "INR"
fromstringyespattern ^\d{4}-\d{2}-\d{2}$
tostringyespattern ^\d{4}-\d{2}-\d{2}$

Example

const result = await nicepay.createReport({
  "kind": "balance_transactions",
  "from": "2026-11-01",
  "to": "2026-11-01"
});

Response โ€” the Report object

FieldTypeNotes
idstring
object"report"
livemodeboolean
kindenumone of balance_transactions payins payouts
currencyenumone of INR USDT
fromstringpattern ^\d{4}-\d{2}-\d{2}$
tostringpattern ^\d{4}-\d{2}-\d{2}$
time_zonestring
statusenumone of queued ready failed
row_countinteger or nullmay be null
sha256string | null
errorstring | null
created_attimestamp
ready_attimestamp or nullmay be null
download_urlstring | null
download_expires_attimestamp or nullmay be null
Example response
JSON
{
  "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

FieldTypeRequiredNotes
idstringyes

Example

const result = await nicepay.getReport("<id>");

Response โ€” the Report object

FieldTypeNotes
idstring
object"report"
livemodeboolean
kindenumone of balance_transactions payins payouts
currencyenumone of INR USDT
fromstringpattern ^\d{4}-\d{2}-\d{2}$
tostringpattern ^\d{4}-\d{2}-\d{2}$
time_zonestring
statusenumone of queued ready failed
row_countinteger or nullmay be null
sha256string | null
errorstring | null
created_attimestamp
ready_attimestamp or nullmay be null
download_urlstring | null
download_expires_attimestamp or nullmay be null
Example response
JSON
{
  "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"
}