Skip to main content

Billing

Contains function used to bill merchants for your app.

This object is returned on authenticated Admin requests.

Provides utilities that apps can use to request billing for the app using the Admin API.

Anchor to cancel
cancel
(options: ) => Promise<AppSubscription>
required

Cancels an ongoing subscription, given its ID.

Anchor to check
check
(options: <Config>) => Promise<BillingCheckResponseObject>
required

Checks if the shop has an active payment for any plan defined in the billing config option.

Anchor to request
request
(options: <Config>) => Promise<never>
required

Requests payment for the plan.

Anchor to require
require
(options: <Config>) => Promise<BillingCheckResponseObject>
required

Checks if the shop has an active payment for any plan defined in the billing config option.



Was this page helpful?