Skip to content

Filters

Henry Sebastián Remache edited this page Jan 23, 2018 · 1 revision

Filters

Donorbox allows you add several filters to your donations.

Search by Campaign ID

Get all the donations of a specific campaign:

{GET} https://donorbox.org/api/v1/donation?campaign_id=XX

Number of donations per page

Set up the number of donations that you require per page

{GET} https://donorbox.org/api/v1/donations?per_page=XX

Order Donations

Order your donations ascending or descending

{GET} https://donorbox.org/api/v1/donations?order=asc

{GET} https://donorbox.org/api/v1/donations?order=desc

Combine filter

You can combine any of the filters described before. Ex:

{GET} https://donorbox.org/api/v1/donations?order=asc&per_page=XX&campaign_id=XX

Clone this wiki locally