Skip to main content

Using the Marketplace API in your app

REST endpoints for the Marketplace API

To help manage your app on Marketplace, use these Marketplace API endpoints.

Webhook events for the Marketplace API

A Marketplace app receives information about changes to a user's plan from the Marketplace purchase event webhook. A Marketplace purchase event is triggered when a user purchases, cancels, or changes their payment plan.

Testing your app

recommends testing your app with APIs and webhooks before submitting your listing to Marketplace so you can provide an ideal experience for customers. Before an onboarding expert approves your app, it must adequately handle the billing flows.

Handling new purchases and free trials

When a customer purchases a paid plan, free trial, or the free version of your Marketplace app, you'll receive the marketplace_purchase event webhook with the purchased action, which kicks off the purchasing flow.

Handling plan changes

Upgrading or downgrading a Marketplace app triggers the marketplace_purchase event webhook with the changed action, which kicks off the upgrade or downgrade flow.

Handling plan cancellations

Cancelling a Marketplace app triggers the marketplace_purchase event webhook with the cancelled action, which kicks off the cancellation flow.