Skip to content

Donations

/selfservice/v2/$FLOCK/donations/

Collecting donations through the self-service app.

http GET https://sls-api.sheepcrm.com/selfservice/v2/$FLOCK/donations/
{
"appeals": [
{
"accepting_donations": null,
"active": true,
"description": null,
"featured": null,
"id": "5eb3c921b4d5a2118ba7a6d3",
"office_only": null,
"photo": null,
"secondary_photos": null,
"short_description": null,
"target_amount": null,
"thank_text": null,
"title": "Covid-19 Appeal",
"uid": "5eb3c921b4d5a2118ba7a6d3",
"uri": "/example/donation_appeal/5eb3c921b4d5a2118ba7a6d3/",
"url": "/selfservice/v2/example/donations/5eb3c921b4d5a2118ba7a6d3/"
}
]
}

/selfservice/v2/$FLOCK/donation/{appeal_id}/

http GET https://sls-api.sheepcrm.com/selfservice/v2/$FLOCK/donation/{appeal_id}/
{
"accepting_donations": null,
"active": true,
"description": null,
"featured": null,
"id": "5eb3c914b4d5a20fc4a7a6d8",
"office_only": null,
"photo": null,
"secondary_photos": null,
"short_description": null,
"target_amount": null,
"thank_text": null,
"title": "Global Fund",
"uid": "5eb3c914b4d5a20fc4a7a6d8",
"uri": "/example/donation_appeal/5eb3c914b4d5a20fc4a7a6d8/",
"url": "/selfservice/v2/example/donation/5eb3c914b4d5a20fc4a7a6d8/"
}

/api/v1/$FLOCK/user/donations/{appeal_id}/

ParameterRequiredDescription
amountYesDonation amount
currencyYesDonation currency (three letter ISO code e.g. GBP, EUR, USD)
gift_aidYesY or N
donation_methodYesDonation method
http POST https://api.sheepcrm.com/api/v1/$FLOCK/user/donations/{appeal_id}/ "Authorization: Bearer $APP_API_TOKEN" amount=12.34 currency=gbp gift_aid=true donation_method=cash
{
"status": "ok",
"url": "/example/pledge/5f07330c80859ee28a8c5657/"
}