API reference · Donations
List donations
GET/v1/donations
List all your claimed and unclaimed donations.
Requires a Bearer access token.
Parameters
2 of 19 fields have no description in the spec.
limit#numberin queryThe max number of items to return.
cursor#stringin queryThe id of the last item from the previous page. Used to fetch the next page.
createdAt_lt#string (date-time)in queryFormat: YYYY-MM-DDTHH:MM:SSZ.
createdAt_lte#string (date-time)in queryFormat: YYYY-MM-DDTHH:MM:SSZ.
createdAt_gt#string (date-time)in queryFormat: YYYY-MM-DDTHH:MM:SSZ.
createdAt_gte#string (date-time)in queryFormat: YYYY-MM-DDTHH:MM:SSZ.
campaignId_notIn#string[]in queryat least 1 itemsUUIDcampaignId_in#string[]in queryat least 1 itemsUUIDcampaignId#stringin queryUUIDId of one your campaigns
status#stringin queryFilter on donation status
PENDINGDONEPROCESSEDCANCELEDexternalId#stringin queryAn optional internal id of your system e.g orderId or customerId. Can be used to link a donation to an entity in your system.
uniqueExternalId#stringin querySimilar to externalId but should be unique across all donations. Can be used to prevent duplicate donations.
accountId#stringin queryUUIDId of the account. Only useful for Platform customers to filter donations by child accounts
includeUrl#booleanin queryInclude the url to the page where the donation can be claimed
includeAssets#booleanin queryInclude dynamic assets such as donation cards and QR code
includeMatchedDonations#booleanin queryInclude matched donations made by and charged to the beneficiary after using their free donation.
donorId#stringin queryUUIDId of the donor.
includeChildDonations#booleanin queryInclude child donations i.e matched donations linked to a given donation
hasBeenCharged#booleanin queryInclude only donations which have been charged to the donor
Response
200 · Donation[]No field is described in the spec.
donationId#stringalways returnedamount#integer (int64)externalId#stringuniqueExternalId#stringstatus#DonationStatusalways returnedPENDINGDONEPROCESSEDCANCELEDsecret#stringalways returnedwithFiscalReceipt#booleanalways returnedhasBeenCharged#booleanalways returnedclaimedAt#string (date-time)validatedAt#string (date-time)processedAt#string (date-time)billingStatus#BillingStatusalways returnedPENDINGBILLEDPAIDhideAmount#booleanalways returnedbilledOn#DonationBilledOnalways returnedCREATIONCLAIMautoAssigned#booleanexpiryDate#string (date-time)sendingMode#CampaignSendingModealways returnedMANUALEMAILPHYSICALSLACKPOSTALsendingDate#string (date-time)sendingStatus#DonationSendingStatusalways returnedPENDINGFAILEDDONEexternalSendingId#stringlastReminderId#stringmessage#stringreminderMessage#stringfrom#stringlanguage#Languagealways returnedfrenptoType#PaidTimeOffTypealways returnedNONEPAID_TIME_OFFWORKING_TIME_REDUCTIONaccountId#stringalways returnedcampaignId#stringalways returnedcharityId#stringrecurringDonationId#stringtransactionId#stringdonorId#stringorderPlatformUserId#stringusageId#stringparentDonationId#stringparentVoteId#stringparentRecurringDonationId#stringcreatedAt#string (date-time)always returnedupdatedAt#string (date-time)always returned
Errors
400Invalid parameter includeDonor
{ "statusCode": 400, "message": "Invalid parameter includeDonor", "error": "Bad Request" }400A field is missing, has the wrong type, or is not part of the request schema.
Every request with a body or query is validated.
{ "statusCode": 400, "message": [ "amount must not be less than 1", "property foo should not exist" ], "error": "Bad Request" }401Unauthorized
Missing, expired or invalid access token.
{ "statusCode": 401, "message": "Unauthorized" }403Account closed
{ "message": "Account closed", "code": "ACCOUNT_CLOSED" }
curl -X GET https://api.sandbox.charitips.com/v1/donations \ -H "Authorization: Bearer $CHARITIPS_TOKEN"Request bodies are written for this docs and checked against the API's validation; ids in angle brackets are placeholders. Response values are placeholders built from the schema.