List the lines of a Gift Aid claim
curl --request GET \
--url https://api.scoutworks.app/api/v1/gift-aid/claim-lines \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/gift-aid/claim-lines"
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/claim-lines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "transaction",
"type": "declaration",
"date": "2023-12-25",
"amount": "<string>",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionSplitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"donationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"declarationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"donorName": "<string>",
"donorAddressLine1": "<string>",
"donorPostcode": "<string>"
}
],
"nextCursor": "<string>"
}{
"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
List the lines of a Gift Aid claim
The donations the HMRC claim for one UK tax year takes, by date, as the claim file in Scoutworks lists them. Small donations (gasds) are claimed separately from the rest. Without taxYear, the current tax year. With gift-aid.people:read too, each declaration line also carries the donor’s name, first address line and postcode. The summary’s truncated says when a tax year is too large to claim in one go. The figures come from the same calculation as the Gift Aid claim in Scoutworks, so they match it to the penny.
GET
/
gift-aid
/
claim-lines
List the lines of a Gift Aid claim
curl --request GET \
--url https://api.scoutworks.app/api/v1/gift-aid/claim-lines \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/gift-aid/claim-lines"
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/claim-lines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "transaction",
"type": "declaration",
"date": "2023-12-25",
"amount": "<string>",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionSplitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"donationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"declarationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"donorName": "<string>",
"donorAddressLine1": "<string>",
"donorPostcode": "<string>"
}
],
"nextCursor": "<string>"
}{
"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"
]
}