Skip to content

fundraisers

Confirms that the fundraiser identified by id has an active enrolment with the supplied channel. Call this before posting a donation so the partner UI can fail fast with a clear error.

GET /fundraisers

client_id and client_secret headers. See Authentication.

ParameterRequiredTypeDescription
X-Correlation-IDYesuuidFresh UUID per request. Echoed back as correlationId on the response and in any error envelope.
ParameterRequiredTypeDescription
channelYesSourceChannelPartner platform making the request.
idYesstringASF Member Number

SuccessEnvelope with data.items of type FundraiserSummary:

FieldTypeDescription
namestringDisplay name of the fundraiser.
fundraiserIdstringASF Member Number
productEnrollmentIdstringIdentifier for the product enrolment.
statusstringHuman-readable enrolment status, e.g. Enrollment Validated.
import os
import uuid
import requests
BASE_URL = "https://sit.api.asf.org.au/fundraisers/api/v1"
response = requests.get(
f"{BASE_URL}/fundraisers",
params={
"channel": "XYZ Platform",
"id": "ASF123456",
},
headers={
"client_id": os.environ["ASF_CLIENT_ID"],
"client_secret": os.environ["ASF_CLIENT_SECRET"],
"X-Correlation-ID": str(uuid.uuid4()),
},
timeout=10,
)
response.raise_for_status()
print(response.json()["data"]["items"]["status"]) # "Enrollment Validated"
{
"apiVersion": "1.0.0",
"correlationId": "210c68180-2ac6-11ee-b000-111",
"method": "/fundraisers",
"data": {
"items": {
"name": "Wombat Park Softball Club",
"fundraiserId": "ASF123456",
"productEnrollmentId": "a0T0T000006MMN2UAO",
"status": "Enrollment Validated"
}
}
}
StatusCodeWhen it fires
400FUNDRAISER:VALIDATIONFundraiser isn’t enrolled with the channel, or required fields failed validation.
401Basic credentials or client_id/client_secret are invalid.
429Request quota exhausted.
500FUNDRAISER:UNKNOWNUnhandled server error. Retry with backoff.
503Server temporarily unavailable.