The Transaction Search API provides programmatic access to your PayPal transaction data, enabling real-time queries and automated reporting workflows. You can use this API to get transaction data with various query parameters and filters. It takes a maximum of three hours for executed transactions to appear in the API calls, and it provides transaction data for the previous three years.Documentation Index
Fetch the complete documentation index at: https://docs.paypal.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- PayPal Developer account.
- API credentials (Client ID and Secret).
- Access token generation capability.
- Understanding of REST API principles.
Server-side integration
Authentication setup
Basic transaction search
Steps for implementation
-
Set up authentication
- Obtain API credentials from PayPal Developer portal.
- Implement token generation and refresh logic.
- Secure credential storage.
-
Build query parameters
- Define date ranges.
- Set transaction status filters.
- Configure pagination settings.
-
Make API calls
- Send authenticated requests.
- Handle response data.
- Implement error handling.
-
Process results
- Parse transaction data.
- Transform for your business logic.
- Store or forward as needed.
Warnings
- API rate limits apply (check documentation).
- Date ranges are limited to specific periods.
- Some transaction details may have delays.
Samples
Testing
- Use sandbox endpoints for development.
- Test with various date ranges and filters.
- Verify pagination handling.
- Check error response handling.
Best practices
- Implement proper authentication refresh.
- Use appropriate page sizes.
- Handle rate limiting gracefully.
- Store transaction IDs for deduplication.