Contributions
List and filter contributions and their transactions for a user.
This function retrieves a list of contributions and related transactions based on several filtering criteria such as recurring contributions, contribution type, date range, amount range, card, source, and search parameters. It also calculates and returns monthly analytics for the transactions.
Filtering options:
- filter_by_user: Admin users can filter contributions by a specific user.
- recurring: Filters contributions based on whether they are recurring.
- type: Filters contributions by contribution type.
- date_from and date_to: Filters contributions based on the creation date range.
- amount_min and amount_max: Filters contributions by amount.
- card_id: Filters contributions by the card used in transactions.
- source: Filters contributions by the source of the transaction.
- search: Searches contributions by the source name, type name, or memo field.
The function paginates the results and appends monthly analytics data to the response.
:param request: The HTTP request object containing query parameters for filtering. :return: A paginated response with the filtered transactions and monthly analytics.
A page number within the paginated result set.
Number of results to return per page.
falseA UUID string identifying this contribution.
A UUID string identifying this contribution.
falseA UUID string identifying this contribution.
No response body
No response body
No content
A UUID string identifying this contribution.
false