export_view_to_file
Export financial data views (authorizations, settlements, cards) to JSON or CSV files. Apply filters, aggregations, and field selection. Note: API limits to 10,000 records per query; use narrower date ranges for larger exports.
Instructions
Export datasets to a file (JSON or CSV). Note: DiVA API limits results to 10,000 records per query. To get more data, use narrower date ranges or more specific filters and call multiple times. Supports all view types: authorizations, settlements, clearings, declines, loads, cards, users, etc.
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": {
"view_name": "<view_name>",
"output_path": "<output_path>"
},
"name": "export_view_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_name | Yes | Name of the view (e.g., 'authorizations', 'settlements', 'cards') | |
| aggregation | No | Aggregation level | detail |
| output_path | Yes | File path where data will be written (e.g., './exports/authorizations.json') | |
| format | No | Output file format | json |
| max_records | No | Maximum total records to export (omit to export all matching records) | |
| fields | No | Specific fields to include in export | |
| filters | No | Filters on data fields. For date filtering, use actual date field names with operators (e.g., {'transaction_timestamp': '>=2023-10-20'}) | |
| sort_by | No | Field to sort by | |
| program | No | Override default program |