Free, Pro, & Team
English
Developers
Free, Pro, & Team
English
Using the GitHub Marketplace API in your app
Learn how to integrate the GitHub Marketplace API and webhook events into your app for the GitHub Marketplace .
Handling new purchases and free trials
When a customer purchases a paid plan, free trial, or the free version of your GitHub Marketplace app, you'll receive the
marketplace_purchaseevent webhook with thepurchasedaction, which kicks off the purchasing flow.Handling plan changes
Upgrading or downgrading a GitHub Marketplace app triggers the
marketplace_purchaseevent webhook with thechangedaction, which kicks off the upgrade or downgrade flow.Handling plan cancellations
Cancelling a GitHub Marketplace app triggers the
marketplace_purchaseevent webhook with thecancelledaction, which kicks off the cancellation flow.
Help us make these docs great!
All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.
Make a contribution
