You can use the Refunds API call to retrieve information for a particular refund, or for multiple refunds, filtered by date, contact, or event. You can also create, edit, or delete a refund.
Wild Apricot's API is intended for use by developers with technical expertise. If you need assistance, we provide support via email or through our Developers forum.
Refunds API functions
The Refunds API call supports the following functions. To view the Swagger documentation, click the appropriate function below.
- Retrieving a specific refund
- Retrieving multiple refunds using filter criteria
- Creating a new refund
- Updating a refund
- Deleting a refund
Specifying filter criteria
When retrieving information for multiple refunds, you must include filter criteria. You can filter the results by specifying a contact or event, by specifying a start and/or end date, and by specifying a set of refund ids. You can combine multiple filter criteria to further narrow the results.
Specifying a contact or event
You can filter the refunds by specifying a particular contact and/or event.
Specifying a start or end document date
You can filter the refunds by specifying a start date and/or an end date (using the DocumentDate field).
where date is the start or end date of the range (using the yyyy-mm-dd date format).
Specifying a set of refund IDs
You can filter the refunds by specifying a set of refund IDs.
where id is the unique identifier of a refund.
Retrieving just refund IDs
You can retrieve just the refund IDs that match the filter criteria by including the idsOnly parameter. This parameter is only available when you specify v2.1 as the API version. The refund IDs will be listed by document date in descending order.
Using the $skip and $top parameters, you can retrieve records in sets or pages. You use the $top parameter to specify the maximum number of records to be returned, and the $skip parameter to specify the number of records to skip. The $skip parameter is incremented each call to return the next set or page of records.
You want to retrieve 50 records using an application that can only process 20 records at a time. Using the following calls, the application retrieves the first set of 20 records, then a second set of 20, and finally, the remaining 10 records.
In this example, the $top specifies the maximum number of records to retrieve (20), and the $skip parameter is incremented from 0 to 20 to 40 to skip the recordsretrieved by the previous call(s).