Getting started
Prerequisites
- PayPal Business account with API access
- Understanding of your reporting schedule needs
- Technical capability for automation setup
- Secure storage for automated reports
Scheduling options
Payflow reporting API scheduling
The Transaction Search API allows you to programmatically retrieve transaction history for a PayPal account. 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.SFTP automation setup
PayPal offers SFTP access for secure retrieval of reports that are updated daily. Reports like the Transaction Detail Report are generated and placed on SFTP on a 24-hour basis in CSV format. The Transaction Detail Report is generated and put on PayPal’s website and the Secure Dropbox by no later than 12:00PM daily.Steps for SFTP configuration
-
Request SFTP access
- Contact PayPal support for SFTP credentials
- Provide security requirements and IP restrictions
- Configure firewall and access controls
-
Set Up automated retrieval
- Schedule daily report downloads
- Reports available by 12 PM in leading time zone
- Implement secure file transfer protocols
-
Process retrieved files
- Automate file parsing and validation
- Integrate with your business systems
- Archive processed reports securely
Sample SFTP integration
Webhook automation
PayPal’s REST APIs use webhooks for event notification, which are HTTP callbacks that receive notification messages for events. You can subscribe webhook listeners to events and automate responses when transactions occur. You can use webhooks for reporting by collecting information from webhook notifications to create reports based on different triggers, such as subscription cancellations.Webhook setup for reporting
-
Configure webhook endpoints
- Set up secure HTTPS endpoints
- Implement signature verification
- Handle event processing logic
-
Event-driven report generation
- Trigger reports based on specific events
- Process transaction completion webhooks
- Generate custom reports on demand
Webhook processing example
Delete report schedules
Best practices
- Monitor automation health regularly
- Implement failure notifications
- Maintain backup scheduling methods
- Secure all automated processes
- Test schedule changes in sandbox first