Overview
The node integrates with the BrainTree API to perform operations related to transactions. Specifically, for the "Transaction" resource and the "Find" operation, it allows users to retrieve recent transaction data based on a specified time frame. This is useful in scenarios where you want to fetch recent payment transactions for reporting, auditing, or triggering further workflows based on recent sales activity.
Practical examples include:
- Fetching all transactions from yesterday to generate daily sales reports.
- Retrieving transactions from the last week to analyze weekly revenue trends.
- Getting transactions from a custom number of days (up to 15) for flexible date range queries.
Properties
Name | Meaning |
---|---|
Since | Selects the time period for which to return transactions. Options: Last Week, Number of Days, Today, Yesterday. |
Number Of Days | When "Since" is set to "Number of Days", specify how many days back to retrieve transactions (1 to 15). Optional and can be an expression. |
Output
The node outputs JSON data representing the transactions retrieved from the BrainTree API according to the selected time frame. The structure typically includes transaction details such as IDs, amounts, statuses, timestamps, and other relevant metadata returned by the API.
If binary data is present (not indicated explicitly here), it would represent any associated files or attachments related to transactions, but this is not evident from the provided code.
Dependencies
- Requires an active connection to the BrainTree API via an API key credential configured in n8n.
- The node depends on internal modules handling routing and transaction actions within the bundled source.
- No additional external dependencies are indicated beyond the BrainTree API access.
Troubleshooting
Common Issues:
- Incorrect or missing API credentials will prevent successful API calls.
- Selecting an invalid number of days (outside 1-15) may cause errors or unexpected results.
- Network connectivity issues can lead to timeouts or failed requests.
Error Messages:
- Authentication errors typically indicate invalid or expired API keys; reconfigure credentials.
- Validation errors if "Number Of Days" is out of allowed range; ensure input is between 1 and 15.
- API rate limits might cause temporary failures; consider retry logic or reducing request frequency.
Links and References
- BrainTree API Documentation
- n8n Expressions Documentation (for using expressions in "Number Of Days")