Get the Gift Aid summary for a tax year
curl --request GET \
--url https://api.scoutworks.app/api/v1/gift-aid/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/gift-aid/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/gift-aid/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"taxYear": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"donationsTotal": "<string>",
"giftAidDue": "<string>",
"lineCount": 0,
"byType": {
"declaration": {
"donationsTotal": "<string>",
"giftAidDue": "<string>",
"lineCount": 0
},
"gasds": {
"donationsTotal": "<string>",
"giftAidDue": "<string>",
"lineCount": 0
},
"manual": {
"donationsTotal": "<string>",
"giftAidDue": "<string>",
"lineCount": 0
}
},
"excludedUnreconciledCount": 0,
"truncated": true
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Gift Aid
Get the Gift Aid summary for a tax year
The claimable donations in one UK tax year, the Gift Aid due on them, and the split between declarations, small donations (GASDS) and donations the treasurer marked by hand. Without taxYear, the current tax year, UK time. The figures come from the same calculation as the Gift Aid claim in Scoutworks, so they match it to the penny.
GET
/
gift-aid
/
summary
Get the Gift Aid summary for a tax year
curl --request GET \
--url https://api.scoutworks.app/api/v1/gift-aid/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/gift-aid/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/gift-aid/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"taxYear": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"donationsTotal": "<string>",
"giftAidDue": "<string>",
"lineCount": 0,
"byType": {
"declaration": {
"donationsTotal": "<string>",
"giftAidDue": "<string>",
"lineCount": 0
},
"gasds": {
"donationsTotal": "<string>",
"giftAidDue": "<string>",
"lineCount": 0
},
"manual": {
"donationsTotal": "<string>",
"giftAidDue": "<string>",
"lineCount": 0
}
},
"excludedUnreconciledCount": 0,
"truncated": true
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}