V2 Migration Guide

This guide is written for developers using API v1. It’s meant to provide necessary resources to smoothly transition to API v2 and is intended for use in conjunction with the API V2 Documentation.

Please note that while a majority of core Classy components are available in V2, certain methods, such as aggregates, are in active development.

See the Deprecation Schedule for details and timelines.

Endpoint Changes

V1.0 Endpoint
(https://classy.org/api1)
V2.0 Endpoint
(https://api.classy.org/2.0)
Description
/account-info
/organizations/{id}
Returns Organization info for the Organization resource that matches the provided URL parameters.
/account-activity
/organizations/{id}/activity
Returns Organization Activity for the matched Organization resource.
/account-sponsor-matching
/campaigns/{id}/donation-matching-plans
Returns Donation Matching Plans for the matched Campaign resource.
/campaigns
/organizations/{id}/campaigns
Returns a collection of Campaigns belonging to the matched Organization resource.
/campaign-info
/campaigns/{id}
Return an individual Campaign Resource.
/campaign-tickets
/campaigns/{id}/tickets
Returns Campaigns belonging to the matched Organization resource.
/fundraisers
/campaigns/{id}/fundraising-pages
Returns a collection of Fundraising Pages belonging to the Campaign resource.
/fundraisers-info
/fundraising-pages/{id}
Returns an individual Fundraising Page resource.
/teams
/campaigns/{id}/fundraising-teams
Returns a collection of Fundraising Teams belonging to the matched Campaign resource.
/team-info
/fundraising-teams/{id}
Returns an individual Fundraising Team resource.
/team-create
TBD
Endpoint in development.
/donations
/organizations/{id}/transactions
Returns a collection of Transactions made to the matched Organization resource.
/campaigns/{id}/transactions
Returns a collection of Transactions made to the matched Campaign resource.
/recurring
/organizations/{id}/recurring-donation-plans
Returns a collection of Recurring Donation Plans belonging to the matched Organization resource.
/campaigns/{id}/recurring-donation-plans
Returns a collection of Recurring Donation Plans belonging to the matched Campaign resource.
/project-info
/designation/{id}
Returns an individual Designation (formerly known as a 'Project') resource.
/tickets
/campaigns/{id}/ticket-types
Returns a collection of Ticket Types belonging to the matched Campaign resource.

Implementation Examples

The following examples demonstrate how to use Version 2 of the Classy API to replicate the behavior of Version 1. All code snippets are written in Python. For a detailed explanation of each resource, please see the API Reference document.

Authentication

Classy API Version 2.0 uses the OAuth2 protocol for authentication against the API.

The API currently supports password and client_credentials grant types. For the examples in this guide, you will need to use the password grant type to generate a member token.

Members

Organizations

Campaigns

Fundraising Pages

Fundraising Teams

Transactions

Recurring Donation Plans

Designations (Projects)

Ticket Types (Tickets)