payware_data_generate_report
[Merchant] Generate an asynchronous data report for merchant data analysis and reporting. Production only - not supported in sandbox.
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), with period CUSTOM or no period. Only an end date covers that one day; no end on a range is today. | |
| locale | No | Locale for the report | en_US |
| period | No | Period preset: TODAY, YESTERDAY, THIS_WEEK, LAST_WEEK, THIS_MONTH, LAST_MONTH, THIS_QUARTER, LAST_QUARTER, THIS_YEAR, LAST_YEAR, or CUSTOM with dateFrom (and dateTo for a range). Which presets a report takes is its `period` in payware_data_list_reports. Omitted with dates is CUSTOM; omitted without dates is today, or the last closed month or quarter for a statement. Every preset is open on every plan; a custom range needs Standard or above (ERR_REPORT_CUSTOM_RANGE_NOT_IN_PLAN). | |
| dateFrom | No | Start date (YYYY-MM-DD), with period CUSTOM or no period. Ignored with any other preset. | |
| 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. |