---
title: "aid_settlement_generate_test_report"
method: POST
path: "/accounts/{aid}/settlements/reports/generate-test-report"
tags: ["settlements"]
---

# aid_settlement_generate_test_report

`POST /accounts/{aid}/settlements/reports/generate-test-report`

Generate a test settlement report. Only available in test.

*scopes*:
  - admin:billing
  - admin:reports

## Path parameters

- `aid` string, ^[PT]{1}\d{8}$, required

## Request body

- TestReportOptions — Options to determine which transactions to include. If no options are included transactions from the last 7 days will be included. Only operations for a transaction that has not already been settled will be included.
  - `transaction_ids` string[] — Array of transaction IDs to include in the report. If a transaction has already been settled earlier it will be ignored. An empty array will be ignored. Should not be combined with `number_of_transactions` or `date_range`.
  - `number_of_transactions` integer — Number of transactions to include. Can be combined with `date_range`, but should not be combined with `transaction_ids`. Must be a positive integer.
  - `date_range` object — A date range to limit which transactions to include. Can be combined with `number_of_transactions`, but should not be combined with `transaction_ids`. `start_date` must be before `end_date`.
    - `start_date` string, date, required
    - `end_date` string, date, required

## Response `200`

No transactions to generate report. This can be if there are
no new transaction events to generate report for.

- TestReportResponse
  - `message` string, required

## Other responses

- `201` — Settlement report created
- `400` — Bad / Invalid request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Unexpected Error

---

[API](https://skmtc.net/dintero/apis/account-management-api.md) · [All operations](https://skmtc.net/dintero/apis/account-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dintero/account-management-api/revisions/9b83a4199008/schema)
