payware_data_generate_report
Generates asynchronous merchant data reports for analysis; resolve the report ID from payware_data_list_reports, since access is production-only and entitlement-checked.
Instructions
[Merchant] Generate an asynchronous data report for merchant data analysis and reporting. Production only - not supported in sandbox.
⚠️ Running a report is entitlement-checked as of 2026-08-22. Naming a report answers 403
ERR_REPORT_NOT_AVAILABLE when that report is not included in the caller's plan or partner type.
Until that date only the menu was filtered - the door was not - so a caller that hard-coded a
report id it had never been offered could still run it, and may now start failing.
Always resolve the id from payware_data_list_reports rather than hard-coding one. That call
and this check share a single rule, so the menu and the door cannot drift apart: if a report is in
that list, this call will accept it.
Distinguish the two failures:
403
ERR_REPORT_NOT_AVAILABLE- the report exists, this caller may not run it. Not retryable; it is a plan boundary, not a transient error.404
ERR_REPORT_UNIT_ID_NOT_FOUND- no report is registered under that id at all. Usually a typo or a stale id.
For an ISV acting on behalf of a merchant, the plan that applies is the merchant's, and reports are outside the Basic plan entirely.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"reportUnitId": "<reportUnitId>"
},
"name": "payware_data_generate_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTo | No | End date (YYYY-MM-DD). Optional: defaults to today. | |
| locale | No | Locale for the report | en_US |
| dateFrom | No | Start date (YYYY-MM-DD). Optional: defaults to today; the WTD, MTD and YTD reports compute their own start. | |
| timeZone | No | Timezone for date calculations (e.g., 'Europe/Sofia', 'America/New_York') | GMT |
| partnerId | No | Partner ID from payware dashboard. Uses PAYWARE_PARTNER_ID env var as default. | partner_12345 |
| privateKey | No | RSA private key for authentication. Uses production private key as default (Data API is production-only). | |
| reportUnitId | Yes | The ID of the report to generate | processedTransactions |
| ignorePagination | No | If true, return report as single continuous document. If false, paginate results. |