Note: This article applies to publishing GitHub Apps in GitHub Marketplace only. For more information about publishing GitHub Actions in GitHub Marketplace, see "Publishing actions in GitHub Marketplace."
For more information about cancelling as it relates to billing, see "Billing customers."
If a customer chooses to cancel a GitHub Marketplace order, GitHub sends a
marketplace_purchase webhook with the action
cancelled to your app when the cancellation takes effect. If the customer cancels during a free trial, your app will receive the event immediately. When a customer cancels a paid plan, the cancellation will occur at the end of the customer's billing cycle.
When a customer cancels a free or paid plan, your app must perform these steps to complete cancellation:
- Deactivate the account of the customer who canceled their plan.
- Revoke the OAuth token your app received for the customer.
- If your app is an OAuth app, remove all webhooks your app created for repositories.
- Remove all customer data within 30 days of receiving the