Create a time-based subscription
A time-based subscription is a pricing model that charges a consistent, recurring amount for a service. Shopify offers billing intervals for every 30 days and every 365 days.
Merchants must approve the pricing plan. After accepting the charges, the merchant is redirected to a URL that you provide.
RequirementsAnchor link to section titled "Requirements"
- Your app can make authenticated requests to the GraphQL Admin API.
Step 1: Create the subscriptionAnchor link to section titled "Step 1: Create the subscription"
Step 2: Monitor subscription updatesAnchor link to section titled "Step 2: Monitor subscription updates"
To receive a notification when a subscription status changes, such as when a charge is successful, subscribe to the GraphQL Admin API's
APP_SUBSCRIPTION_UPDATE webhook topic.