get_declines
Retrieve declined transaction data with transaction tokens, decline reasons, merchant details, and amounts. Aggregate by detail, day, week, or month. Apply filters and sort for targeted analysis.
Instructions
Get declined transaction data. Includes transaction tokens, decline reasons, merchant information, and amounts. Supports detail, day, week, and month aggregation. Note: DiVA API limits results to 10,000 records per query. Use narrower date ranges or more specific filters for larger datasets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aggregation | No | Aggregation level for the data | detail |
| fields | No | Specific fields to return | |
| filters | No | Filters on data fields. For date filtering, use actual date field names with operators (e.g., {'post_date': '>=2023-10-20'}) | |
| sort_by | No | Field to sort by | |
| count | No | Maximum records to return (up to 10,000, default 10,000) | |
| program | No | Override default program |