🎟️ Campaign

A campaign refers to a registration event created on our Events platform. Each campaign will have a unique ID, 'campaign_guid' or 'shared_campaign_guid', which can be used to get information on your registrants, payments made to that event and fundraising pages created.

The following table contains the fields that are returned within the response call of the campaign endpoints.

The first table contains the fields within the response while the others breakdown the nested objects within the response.

KeyLabelTypeDescription
account_guidAccount GUIDUUIDAccount GUID
campaign_guidCampaign GUIDUUIDCampaign GUID
date_createdDate CreatedDateDate campaign created
date_fromDate FromDateDate campaign begins
date_toDate ToDateDate campaign ends
date_updatedDate UpdatedDateDate campaign updated
enabledEnabledBooleanIs campaign enabled
nameNameStringName of campaign
typeTypeStringType of campaign

The following table contains the fields that are returned within the response call of the campaign/summary endpoint.

/campaigns/summary

KeyLabelTypeDescription
activitySummaryActivity SummaryActivity SummaryActivity summary object
donationsSummaryDonations SummaryDonations SummaryDonations summary object
fundraisingSummaryFundraising SummaryFundraising SummaryFundraising summary object

🏃Activity Summary

KeyLabelTypeDescription
distance_logged_unitDistance Logged UnitStringUnit used to log distance
total_activities_loggedTotal Activities LoggedLongTotal number of logged activities
total_activities_logged_lblTotal Activities Logged LabelStringTotal number of logged activities label
total_activities_logged_strTotal Activities Logged StringStringTotal number of logged activities string
total_calories_burnedTotal Calories BurnedLongTotal calories burned
total_calories_burned_lblTotal Calories Burned LabelStringTotal calories burned label
total_calories_burned_strTotal Calories Burned StringStringTotal calories burned label string
total_distance_loggedTotal Distance LoggedLongTotal distance logged
total_distance_logged_lblTotal Distance Logged LabelStringLogged distance from activities label
total_distance_logged_strTotal Distance Logged StringStringLogged distance from activities string
total_height_climbedTotal Height ClimbedLongTotal height climbed
total_height_climbed_lblTotal Height Climbed LabelStringTotal height climbed label
total_height_climbed_strTotal Height Climbed StringStringTotal height climbed string
total_time_loggedTotal Time LoggedLongTotal time logged
vtotal_time_logged_lblTotal Time Logged LabelStringTotal time logged label
total_time_logged_strTotal Time Logged StringStringTotal time logged string

💳 Donations Summary

KeyLabelTypeDescription
total_donationsTotal DonationsLongTotal donations
total_donations_lblTotal Donations LabelStringTotal donations label
total_donations_strTotal Donations StringStringTotal donations string

💫 Fundraising Summary

KeyLabelTypeDescription
total_fundraisersTotal FundraisersLongTotal fundraisers
total_fundraisers_lblTotal Fundraisers LabelStringTotal fundraisers label
total_fundraisers_strTotal Fundraisers StringStringTotal fundraisers string
total_raisedTotal RaisedLongTotal amount raised
total_raised_giftaidTotal Raised GiftaidLongTotal amount raised through Gift Aid
total_raised_giftaid_lblTotal Raised Giftaid LabelStringTotal amount raised through Gift Aid label
total_raised_giftaid_strTotal Raised Gift Aid StringStringTotal amount raised through Gift Aid string
total_raised_lblTotal Raised LabelStringTotal amount raised label
total_raised_offlineTotal Raised OfflineLongTotal amount raised offline
total_raised_offline_lblTotal Raised Offline LabelStringTotal amount raised offline label
total_raised_offline_strTotal Raised Offline StringStringTotal amount raised offline string
total_raised_onlineTotal Raised OnlineLongTotal amount raised online
total_raised_online_lblTotal Raised Online LabelStringTotal amount raised online label
total_raised_online_strTotal Raised Online StringStringTotal amount raised online string
total_raised_strTotal Raised StringStringTotal amount raised string
total_targetTotal TargetLongTotal target
total_target_lblTotal Target LabelStringTotal target label
total_target_strTotal Target StringStringTotal target string
total_teamsTotal TeamsLongTotal raised by teams
total_teams_lblTotal Teams LabelStringTotal raised by teams label
total_teams_strTotal Teams StrStringTotal raised by teams string

🚀 Return a list of campaigns within your account

/campaigns

Get a list of all of your campaigns filterable by the attributes below:

KeyLabelTypeDescription
campaign_guidsCampaign GuidsArray[string]Campaign GUID associated with the campaign object
date_fromDate FromStringDate from which to filter based on the created date of the campaign object
date_toDate ToStringDate to filter to based on the created date of the campaign object
limitLimitIntegerNumber of records to be returned in the response
pagePageIntegerThe number of pages to skip before starting to collect the result set
searchSearchStringString to search by
typeTypeStringUsed to filter response, values can be:
-Team
-Individual.

Sample Request

GET - http://dataapi.enthuse.com/campaigns/search?api_key=eje2381
&campaign_guid=00000000-0000-0000-0000-000000000000
&date_from=2022-11-3100:00:00
&date_to=2022-12-31 00:00:00
&limit=25
&page=1

Sample Responses:

200 - OK call was successful and returned data

{
  "campaignSearchList": [
    {
      "name": "string",
      "pageUrl": "string",
      "profilePic": "string",
      "teamName": "string",
      "teamPageUrl": "string",
      "totalRaised": 0,
      "type": "string"
    }
  ],
  "message": "string",
  "status": 0
}

401 - Access token has expired or is incorrect

{
  "message": "Unauthorized.",
  "status": 401
}

403 - The account linked to the token does not match the account of the records attempting to retrieve

{
  "message": "Forbidden.",
  "status": 403
}

404 - Call authenticated but no records match the searched criteria

{
  "message": "No records found.",
  "status": 404
}

413 - Call authenticated but no filters used

{
  "message": "Please enter some form of filter",
  "status": 413
}

500 - Error occurred within Service, data could not be returned

{
  "message": "Internal Server Error.",
  "status": 500
}

🚀 Retrieve an existing campaign

campaigns/{campaign_guid}

Use a known 'campaign_guid' to return information on that campaign.

KeyLabelTypeDescription
campaign_guidsCampaign GuidsArray[string]Campaign GUID associated with the campaign object

Sample Request

GET - http://dataapi.enthuse.com/campaigns/?access_token=qRXe5sM-yOAHzA1jtfyxSTPbgVg
&campaign_guid=00000000-0000-0000-0000-000000000000
&date_from=2022-11-3100:00:00
&date_to=2022-12-3100:00:00
&limit=25
&page=1

Sample Responses:

200 - OK was successful and returned data

{
  "campaignList": [
    {
      "account_guid": "d290f1ee-6c54-4b01-90e6-d701748f0851",
      "campaign_guid": "d290f1ee-6c54-4b01-90e6-d701748f0851",
      "date_created": "2020-01-01 00:00:00",
      "date_from": "2020-01-01 00:00:00",
      "date_to": "2020-01-01 00:00:00",
      "date_updated": "2020-01-01 00:00:00",
      "enabled": true,
      "name": "string",
      "type": "string"
    }
  ],
  "message": "string",
  "status": 0
}

401 - Access token has expired or is incorrect

{
  "message": "Unauthorized.",
  "status": 401
}

403 - The account linked to the token does not match the account of the records attempting to retrieve

{
  "message": "Forbidden.",
  "status": 403
}

404 - Call authenticated but no records match the searched criteria

{
  "message": "No records found.",
  "status": 404
}

*500 - Error occurred within Service, data could not be returned

{
  "message": "Internal Server Error.",
  "status": 500
}

🚀 Return a summary for a single or multiple campaigns

/campaigns/summary

Use multiple known values for 'campaign_guid' to return information on those campaigns.

KeyLabelTypeDescription
campaign_guidsCampaign GuidsArray[string]Campaign GUID associated with the campaign object

Sample Request

GET - http://dataapi.enthuse.com/campaigns/summary?api_key=S52z44ag
&campaign_guid=00000000-0000-0000-0000-000000000000

Sample Responses:

200 - OK call was successful and returned data

{
  "activitySummary": {
    "distance_logged_unit": "string",
    "total_activities_logged": 0,
    "total_activities_logged_lbl": "string",
    "total_activities_logged_str": "string",
    "total_calories_burned": 0,
    "total_calories_burned_lbl": "string",
    "total_calories_burned_str": "string",
    "total_distance_logged": 0,
    "total_distance_logged_lbl": "string",
    "total_distance_logged_str": "string",
    "total_height_climbed": 0,
    "total_height_climbed_lbl": "string",
    "total_height_climbed_str": "string",
    "total_time_logged": 0,
    "total_time_logged_lbl": "string",
    "total_time_logged_str": "string"
  },
  "donationSummary": {
    "total_donations": 0,
    "total_donations_lbl": "string",
    "total_donations_str": "string"
  },
  "fundraisingSummary": {
    "total_fundraisers": 0,
    "total_fundraisers_lbl": "string",
    "total_fundraisers_str": "string",
    "total_raised": 0,
    "total_raised_giftaid": 0,
    "total_raised_giftaid_lbl": "string",
    "total_raised_giftaid_str": "string",
    "total_raised_lbl": "string",
    "total_raised_offline": 0,
    "total_raised_offline_lbl": "string",
    "total_raised_offline_str": "string",
    "total_raised_online": 0,
    "total_raised_online_lbl": "string",
    "total_raised_online_str": "string",
    "total_raised_str": "string",
    "total_target": 0,
    "total_target_lbl": "string",
    "total_target_str": "string",
    "total_teams": 0,
    "total_teams_lbl": "string",
    "total_teams_str": "string"
  }
}

401 - Access token has expired or is incorrect

{
  "message": "Unauthorized.",
  "status": 401
}

403 - The account linked to the token does not match the account of the records attempting to retrieve

{
  "message": "Forbidden.",
  "status": 403
}

404 - Call authenticated but no records match the searched criteria

{
  "message": "No records found.",
  "status": 404
}

*500 - Error occurred within Service, data could not be returned

{
  "message": "Internal Server Error.",
  "status": 500
}

🚀 Return a list of registrants and teams within your account

/campaigns/search

Retrieve data on the registrants and teams for your campaigns

KeyLabelTypeDescription
campaign_guidsCampaign GuidsArray[string]Campaign GUID associated with the campaign object
date_fromDate FromStringDate from which to filter based on the created date of the campaign object
date_toDate ToStringDate to filter to based on the created date of the campaign object
limitLimitIntegerNumber of records to be returned in the response
pagePageIntegerThe number of pages to skip before starting to collect the result set
searchSearchStringString to search by
typeTypeStringUsed to filter response, values can be:
-Team
-Individual.

Sample Request

GET - http://dataapi.enthuse.com/campaigns/search?api_key=eje2381
&campaign_guid=00000000-0000-0000-0000-000000000000
&date_from=2022-11-3100:00:00
&date_to=2022-12-31 00:00:00
&limit=25
&page=1

Sample Responses:

200 - OK call was successful and returned data

{
  "campaignSearchList": [
    {
      "name": "string",
      "pageUrl": "string",
      "profilePic": "string",
      "teamName": "string",
      "teamPageUrl": "string",
      "totalRaised": 0,
      "type": "string"
    }
  ],
  "message": "string",
  "status": 0
}

401 - Access token has expired or is incorrect

{
  "message": "Unauthorized.",
  "status": 401
}

403 - The account linked to the token does not match the account of the records attempting to retrieve

{
  "message": "Forbidden.",
  "status": 403
}

404 - Call authenticated but no records match the searched criteria

{
  "message": "No records found.",
  "status": 404
}

413 - Call authenticated by no filters used

{
  "message": "Please enter some form of filter",
  "status": 413
}

500 - Error occurred within Service, data could not be returned

{
  "message": "Internal Server Error.",
  "status": 500
}