export_view_to_file
Export financial data views like authorizations, settlements, or cards to JSON or CSV files for analysis, reporting, or integration with other systems.
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.
Input Schema
TableJSON 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 |