Skip to main content
object

Provides users access to services and/or features for a duration of time.

•
DateTime!non-null

The date and time when the app subscription was created.

•

The date and time when the current app subscription period ends. Returns null if the subscription isn't active.

•
ID!non-null

A globally-unique ID.

•

The plans attached to the app subscription.

•
String!non-null

The name of the app subscription.

•
URL!non-null

The URL that the merchant is redirected to after approving the app subscription.

•

The status of the app subscription.

•
Boolean!non-null

Specifies whether the app subscription is a test transaction.

•
Int!non-null

The number of free trial days, starting at the subscription's creation date, by which billing is delayed.


Was this section helpful?

•
mutation

Cancels an app subscription on a store.

Arguments

•
ID!required

The ID of the app subscription to be cancelled.

•
BooleanDefault:false

Whether to issue prorated credits for the unused portion of the app subscription. There will be a corresponding deduction (based on revenue share) to your Partner account. For example, if a $10.00 app subscription (with 0% revenue share) is cancelled and prorated half way through the billing cycle, then the merchant will be credited $5.00 and that amount will be deducted from your Partner account.


Fields

•

The cancelled app subscription.

•

The list of errors that occurred from executing the mutation.

•
mutation

Allows an app to charge a store for features or services on a recurring basis.

Arguments

•

Attaches one or more pricing plans to an app subscription. Only one pricing plan can be defined for each available type.

•
String!required

A descriptive name for the app subscription.

•

The replacement behavior when creating an app subscription for a merchant with an already existing app subscription.

•
URL!required

The URL pointing to the page where the merchant is redirected after approving the app subscription.

•
BooleanDefault:false

Whether the app subscription is a test transaction.

•

The number of days of the free trial period, beginning on the day that the merchant approves the app charges.


Fields

•

The newly-created app subscription.

•

The URL pointing to the page where the merchant approves or declines the charges for an app subscription.

•

The list of errors that occurred from executing the mutation.

•
mutation

Updates the capped amount on the usage pricing plan of an app subscription line item.

Arguments

•
MoneyInput!required

The new maximum amount of usage charges that can be incurred within a subscription billing interval.

•
ID!required

The ID of the app subscription line item to be updated.


Fields

•

The updated app subscription.

•

The URL where the merchant approves or declines the updated app subscription line item.

•

The list of errors that occurred from executing the mutation.

•
mutation

Extends the trial of an app subscription.

Arguments

•
Int!required

The number of days to extend the trial. The value must be greater than 0 and less than or equal to 1000.

•
ID!required

The ID of the app subscription to extend the trial for.


Fields

•

The app subscription that had its trial extended.

•

The list of errors that occurred from executing the mutation.


Was this section helpful?

•
interface

Was this section helpful?