---
title: "Generate Outstanding Collections Report"
method: POST
path: "/billing/reports/outstandingcollectionsreport/generate"
---

# Generate Outstanding Collections Report

`POST /billing/reports/outstandingcollectionsreport/generate`

## Request

- Base URL: `https://api-sandbox.ezypay.com/v2`
- URL: `https://api-sandbox.ezypay.com/v2/billing/reports/outstandingcollectionsreport/generate`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://identity-sandbox.ezypay.com/token`

Generate Outstanding Collections Report

## Headers

- `merchant` string, required

## Request body

- object
  - `reportFormat` string: Allows the report to be generated in either the .CSV format or the .PDF format. By default, it is `PDF`.
  - `daysOutstanding` string: Number of days outstanding, Supported values are `ALL`, `THIRTY`, `SIXTY`, `NINETY`. By default, it is `THIRTY`.
  - `reportFilters` string[], required: Results will be filtered by this field. Supported values are `FAILED_WITHOUT_FURTHER_RETRY`, `FAILED_BUT_WILL_ATTEMPT_RETRY`, `DUE_BUT_NOT_ATTEMPTED_YET`, `NOT_YET_DUE`.
  - `sortField` string, required: Results will be sorted by this field. Supported values are `CUSTOMER_NAME`, `CUSTOMER_NUMBER`, `EZYPAY_NUMBER`, `TOTAL_OUTSTANDING_AMOUNT`.

## Response `200`

200

- object
  - `fileId` string
  - `createdOn` string
  - `documentType` string

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `924be4030f56`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ezypay/apis/vault/changes/billing/reports/outstandingcollectionsreport/generate/post.md)

---

[API](https://skmtc.dev/ezypay/apis/vault.md) - [All operations](https://skmtc.dev/ezypay/apis/vault/llms.txt) - [OpenAPI document](https://skmtc.dev/ezypay/apis/vault/revisions/924be4030f56?raw)
