API reference · Recurring Donations
Claim a recurring donation
POST/v1/recurring-donations/{recurringDonationId}/claim
Link a recurring donation with a given Charity.
Requires a Bearer access token.
Parameters
This field has no description in the spec.
recurringDonationId#stringin pathrequired
Body
ClaimRecurringDonationDtocharityId#stringrequiredUUIDId of the Charity to which the recurring donation will be made.
Response
200 · RecurringDonationNo field is described in the spec.
recurringDonationId#stringalways returnedtype#RecurringDonationTypealways returnedFREQUENCYMANUALamountType#RecurringDonationAmountTypealways returnedFIXED_AMOUNTRATEstatus#RecurringDonationStatusalways returnedPENDINGACTIVEPAUSEDCANCELEDhasBeenCharged#booleanalways returnedfeeType#FeeTypealways returnedEXCLUDEDINCLUDEDamount#integer (int64)always returnedrate#numberbaseAmount#integer (int64)withRounding#booleanalways returnedfrequency#stringsecret#stringalways returnedexternalId#stringuniqueExternalId#stringsendingMode#CampaignSendingModealways returnedMANUALEMAILPHYSICALSLACKPOSTALsendingDate#string (date-time)sendingStatus#DonationSendingStatusalways returnedPENDINGFAILEDDONElastReminderId#stringmessage#stringreminderMessage#stringfrom#stringlanguage#Languagealways returnedfrenaccountId#stringalways returnedcampaignId#stringalways returnedcharityId#stringdonorId#stringalways returnedcreatedAt#string (date-time)always returnedupdatedAt#string (date-time)always returned
Errors
- 400 Bad Request
Insufficient campaign budget.
{ "message": "Insufficient campaign budget.", "code": "INSUFFICIENT_CAMPAIGN_BUDGET" }A 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" }- 401 Unauthorized
Unauthorized
Missing, expired or invalid access token.
{ "statusCode": 401, "message": "Unauthorized" }- 403 Forbidden
Campaign has ended.
{ "statusCode": 403, "message": "Campaign has ended.", "error": "Forbidden" }Account not validated
{ "statusCode": 403, "message": "Account not validated", "error": "Forbidden" }Account closed
{ "message": "Account closed", "code": "ACCOUNT_CLOSED" }Forbidden
Your credentials cannot perform this action on this resource. An id from another account answers 404 in the path, 400 in the body or the query.
{ "statusCode": 403, "message": "Forbidden" }- 404 Not Found
Not Found
No resource with this id on your account: the API answers as if it did not exist.
{ "statusCode": 404, "message": "Not Found" }- 409 Conflict
Recurring donation has been canceled
{ "statusCode": 409, "message": "Recurring donation has been canceled", "error": "Conflict" }
curl -X POST https://api.sandbox.charitips.com/v1/recurring-donations/<recurringDonationId>/claim \ -H "Authorization: Bearer $CHARITIPS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "charityId": "<charityId>" }'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.