Skip to main content
The payments search API provides powerful capabilities to query, filter, and analyze both charges and payouts in a unified interface. With over 20 search parameters and support for complex filtering, you can build everything from real-time dashboards to detailed reconciliation reports that match your exact business requirements.

What You’ll Build With This Guide

This guide equips you with patterns and code examples for:
  • Unified payment searches: Query charges and payouts together or separately
  • Advanced filtering: Combine date ranges, amounts, statuses, and metadata for precise results
  • Reconciliation workflows: Match funding events to bank statements using the funding event ID from the ACH addenda record
  • Return tracking: Analyze reversed payments and identify high-risk patterns
  • Export capabilities: Generate CSV and JSON reports for accounting systems
  • Performance monitoring: Build real-time metrics and anomaly detection
  • Pagination strategies: Efficiently process large datasets with parallel requests
Whether you need daily settlement reports, customer payment histories, or failure analysis, this guide provides production-ready patterns for every reporting scenario. The payments search endpoint allows you to query both charges and payouts together or separately, providing a complete view of money movement through your platform. Search for all payments in a date range:
Response includes both charges and payouts:

Search Parameters

Date Filters

Payment Filters

Reference Filters

Pagination & Sorting

Common Search Patterns

Daily Settlement Report

Get all successful payments for settlement reconciliation:

Failed Payment Analysis

Identify failure patterns for risk optimization:

Customer Payment History

View all payments for a specific customer:

Advanced Filtering

Find payments in specific states:

Amount Range Filtering

Find high-value transactions:
Search using your custom metadata:

Reconciliation Workflows

Bank Statement Reconciliation

Match funding events to bank transactions using the funding event id. Each funding event produces a single ACH transfer; the ACH addenda record on that transfer contains the funding event id and a description (e.g., charge deposit, payout withdrawal). Your bank surfaces this in the transaction detail, giving you a direct, programmatic link back to the Straddle API.

Return Tracking

Monitor and analyze returned payments:

Export Patterns

CSV Export

Generate CSV reports for accounting:

JSON Export with Details

Export complete payment data:

Monitoring & Alerts

Real-Time Monitoring

Track payment metrics in real-time:

Anomaly Detection

Identify unusual payment patterns:

Pagination Strategies

Cursor-Based Iteration

Process large result sets efficiently:

Parallel Processing

Speed up large exports with parallel requests:

Performance Optimization

Efficient Date Ranges

For better performance, use specific date ranges rather than open-ended queries. The API performs best with date ranges under 90 days.

Index-Friendly Filters

Use indexed fields for faster queries:

Common Use Cases

Monthly Billing Report

Best Practices

Use Date Ranges

Always specify date ranges to improve query performance

Paginate Large Results

Use pagination for exports exceeding 100 records

Cache Frequently Used

Cache search results that don’t change frequently

Monitor Rate Limits

Implement rate limiting for bulk operations

Troubleshooting

Missing Payments

If payments aren’t appearing in search results:
  1. Check date ranges - Ensure dates include the payment creation time
  2. Verify filters - Remove filters one by one to identify issues
  3. Check status - Some statuses like unknown may not appear by default
  4. Review pagination - Check if results are on subsequent pages

Performance Issues

For slow queries:
  • Narrow date ranges to 30 days or less
  • Use specific IDs when possible
  • Avoid complex metadata queries
  • Implement caching for repeated searches

Next Steps

API Reference

Complete search endpoint documentation

Webhook Events

Real-time payment notifications

Funding Search

Search and analyze funding events

Funding Events

Settlement and reconciliation