Overview
Master advanced filtering techniques to find exactly the transactions you need. This guide covers all available filters, search patterns, and optimization strategies. What you’ll learn:- Filter by multiple criteria
- Combine filters effectively
- Search strategies
- Performance optimization
- Common filtering patterns
Available Filters
All filter parameters for transaction queries:| Filter | Type | Description | Example |
|---|---|---|---|
status | string | Transaction status | SUCCESS, PENDING, FAILED |
type | string | Transaction type | DEBIT, CREDIT, PEER-TRANSFER |
currency | string | Currency code | NGN, USD, SOL, ETH |
minAmount | number | Minimum amount | 1000 |
maxAmount | number | Maximum amount | 50000 |
startDate | string | Start date | 2024-02-01 |
endDate | string | End date | 2024-02-29 |
sortBy | string | Sort field | createdAt, amount, updatedAt |
sortOrder | string | Sort direction | asc, desc |
page | number | Page number | 1 |
limit | number | Items per page | 20 |
Filter by Status
Get transactions by status.Filter by Type
Get transactions by type (DEBIT, CREDIT, etc.).Filter by Currency
Get transactions for specific currencies.Filter by Amount Range
Get transactions within specific amount ranges.Filter by Date Range
Get transactions within specific time periods.Combine Multiple Filters
Combine filters for precise queries.Sorting
Sort transactions by different fields.Common Filtering Patterns
- Monthly Report
- Failed Transactions
- Large Transactions
- Pending Review
Best Practices
Specific Filters
Use specific filters to reduce response size
Date Ranges
Always use date ranges for large datasets
Limit Results
Use appropriate page limits (max 100)
Cache Results
Cache frequently accessed filter results
Sort Wisely
Sort by indexed fields (createdAt, amount)
Pagination
Always implement pagination for UX
Next Steps
Management
Learn transaction management basics
Webhooks
Set up real-time transaction notifications
Analytics
Analyze transaction patterns
Export
Export transaction data

