Marketplace Purchase

This event occurs when there is activity relating to a GitHub Marketplace purchase. For more information, see "GitHub Marketplace." For information about the APIs to manage GitHub Marketplace listings, see the GraphQL documentation or "GitHub Marketplace" in the REST API documentation.

Actions

ActionSent when
cancelledSomeone cancelled a GitHub Marketplace plan, and the last billing cycle has ended. The change will take effect on the account immediately.
changedSomeone upgraded or downgraded a GitHub Marketplace plan, and the last billing cycle has ended. The change will take effect on the account immediately.
pending-changeSomeone downgraded or cancelled a GitHub Marketplace plan. The new plan or cancellation will take effect at the end of the current billing cycle. When the change takes effect, the changed or cancelled event will be sent.
pending-change-cancelledSomeone cancelled a pending change to a GitHub Marketplace plan. Pending changes include plan cancellations and downgrades that will take effect at the end of a billing cycle.
purchasedSomeone purchased a GitHub Marketplace plan. The change will take effect on the account immediately.

Payload

Fields of the delivery for the first action above. Every action shares the event's core fields.

FieldTypeRequiredDescription
actionstringYes
effective_datestringYes
enterpriseobjectNoAn enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured
installationobjectNoThe GitHub App installation. Webhook payloads contain the installation property when the event is configured
marketplace_purchaseobjectYes
organizationobjectNoA GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an
previous_marketplace_purchaseobjectNo
repositoryobjectNoThe repository on GitHub where the event occurred. Webhook payloads contain the repository property
senderobjectYesA GitHub user.