Skip to main content
object

The schema's entry-point for mutations. This acts as the public, top-level API from which all mutations must start.

•AppCreditCreatePayload

Allows an app to create a credit for a shop that can be used towards future app purchases. This mutation is only available to Partner API clients that have been granted the View financials permission.

Arguments

•MoneyInput!
required

The amount that can be used towards future app purchases in Shopify.

•ID!
required

The id of the app to associate the credit with. Example value: gid://partners/App/123.

•String!
required

The description of the app credit.

•ID!
required

The id of the shop to be credited. Example value: gid://partners/Shop/456.

•Boolean
Default:false

Specifies whether the app credit is a test transaction.


Anchor to appSubscriptionCancelappSubscriptionCancel
•AppSubscriptionCancelPayload

Cancels an app subscription.

Arguments

•ID!
required

The id of the app. Example value: gid://shopify/App/123.

•Boolean!
required

Whether to defer cancellation until the end of the current billing cycle.

•Boolean!
required

Whether to issue prorated credits for the unused portion of the subscription. Cannot be used together with skipFinalUsageCharge.

•ID!
required

The id of the shop. Example value: gid://shopify/Shop/456.

Anchor to skipFinalUsageChargeskipFinalUsageCharge
•Boolean!
required

Whether to skip the final usage charge when cancelling. Only applicable to usage-billed subscriptions. Cannot be used together with prorate.


Anchor to appSubscriptionMigrationOperationCancelappSubscriptionMigrationOperationCancel
•AppSubscriptionMigrationOperationCancelPayload

Cancels an app subscription migration operation.

Arguments

•ID!
required

The ID of the app. Example value: gid://shopify/App/123.

•ID!
required

The ID of the operation. Example value: gid://shopify/AppSubscriptionMigrationOperation/1.


Anchor to appSubscriptionMigrationOperationCreateappSubscriptionMigrationOperationCreate
•AppSubscriptionMigrationOperationCreatePayload

Creates an app subscription migration operation for a batch of shops.

Arguments

•ID!
required

The ID of the app. Example value: gid://shopify/App/123.

•String

A key that identifies this batch. Submitting the same key again returns the operation created the first time instead of creating another one, including after that operation has been canceled. Defaults to a digest of the batch, so retrying an identical request is safe without supplying one. Pass a new key to reschedule a batch that was previously canceled.

•[AppSubscriptionMigrationInput!]!
required

The migration actions to perform, one per shop.


•EventsinkCreatePayload

Creates a new Eventsink.

Arguments

•EventsinkCreateInput!
required

Details of eventsink to create.


•EventsinkDeletePayload

Deletes an Eventsink.

Arguments

•ID!
required

The App that associated with the Eventsink.

•ID!
required

Eventsink to delete.

•EventsinkTopic!
required

The topic of the Eventsink.



Was this section helpful?