Use this API to get race donations for a charity group.
{ "race_donations": [ { "donation_id": 12345, "race_fundraiser_id": 1, "race_id": 555, "transaction_id": 1234567, "rsu_transaction_id": 7654321, "invoice_num": 1234, "donor": [ "user_id": 123, "first_name": "John", "last_name": "Doe", "email": "john.doe@example.com", "phone_number": "555-555-5555" ], "donation_amount": $90.00, "amount_paid": $88.00, "processing_fee": $2.00, "status": "Normal", "on_behalf_of": "The Doe Family", "anonymous": "F", "donation_date_ts": 111111111, "charity_id": 33, "charity_name": "Save the Whales" } ] }
Parameter | HTTP Method | Default | Description | Datatype |
---|---|---|---|---|
charity_group_id Required |
GET | ID of charity group. | uint |
|
rsu_api_key Required |
GET | API key. | string |
|
X-RSU-API-SECRET Required |
HTTP Header | API secret. | string |
|
page |
GET | 1 | Page number to get. | uint |
results_per_page |
GET | 50 | Number of results per page. | uint |
donations_after_ts |
GET | Get donations donated on or after the provided timestamp. | uint |
|
donations_before_ts |
GET | Get donations donated on or before the provided timestamp. | uint |
{ "openapi": "3.0.3", "info": { "title": "Get Donations for Charity Group", "description": "Get list of charity group donations.", "version": "1.0.0", "contact": { "name": "RunSignup API Support", "url": "https://runsignup.com/API", "email": "info@runsignup.com" } }, "servers": [ { "url": "https://runsignup.com/API", "description": "Production API Server" } ], "tags": [ { "name": "Charity Group", "description": "APIs related to Charity Group" } ], "components": { "schemas": { "Error": { "type": "object", "properties": { "error": { "type": "string", "description": "Error message" } }, "required": [ "error" ] }, "BadRequestError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating invalid request parameters or structure" } ] }, "UnauthorizedError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating authentication failure" } ] }, "ForbiddenError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating the authenticated user lacks required permissions" } ] }, "NotFoundError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating the requested resource does not exist" } ] }, "ServerError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating an unexpected server-side issue" } ] } }, "securitySchemes": { "apiKey": { "type": "apiKey", "in": "query", "name": "api_key", "description": "RunSignup API Key" }, "apiSecret": { "type": "apiKey", "in": "query", "name": "api_secret", "description": "RunSignup API Secret" } } }, "paths": { "/v2/charity-group/get-charity-group-race-donations.json": { "get": { "tags": [ "Charity Group" ], "summary": "Get Donations for Charity Group", "description": "Get list of charity group donations.", "operationId": "v2_charity_group_get_charity_group_race_donations_json", "parameters": [ { "name": "charity_group_id", "in": "query", "description": "ID of charity group.", "required": true, "schema": { "type": "integer" } }, { "name": "rsu_api_key", "in": "query", "description": "API key.", "required": true, "schema": { "type": "string" } }, { "name": "X-RSU-API-SECRET", "in": "header", "description": "API secret.", "required": true, "schema": { "type": "string" } }, { "name": "page", "in": "query", "description": "Page number to get.", "required": false, "schema": { "type": "integer", "default": "1" } }, { "name": "results_per_page", "in": "query", "description": "Number of results per page.", "required": false, "schema": { "type": "integer", "default": "50" } }, { "name": "donations_after_ts", "in": "query", "description": "Get donations donated on or after the provided timestamp.", "required": false, "schema": { "type": "integer" } }, { "name": "donations_before_ts", "in": "query", "description": "Get donations donated on or before the provided timestamp.", "required": false, "schema": { "type": "integer" } } ], "security": [ { "apiKey": [] }, { "apiSecret": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BadRequestError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UnauthorizedError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForbiddenError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotFoundError" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServerError" } } } } }, "x-permissions": [] } } } }