Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to appPurchaseOneTimeCreate

appPurchaseOneTimeCreate

mutation

Charges a shop for features or services one time. This type of charge is recommended for apps that aren't billed on a recurring basis. Test and demo shops aren't charged.

String!required

The name of the one-time purchase from the app.

MoneyInput!required

The amount to be charged to the store for the app one-time purchase.

URL!required

The URL where the merchant is redirected after approving the app one-time purchase.

BooleanDefault:false

Whether the app one-time purchase is a test transaction.


Was this section helpful?

Anchor to AppPurchaseOneTimeCreatePayload returnsAppPurchaseOneTimeCreatePayload returns

The newly created app one-time purchase.

The URL that the merchant can access to approve or decline the newly created app one-time purchase.

If the merchant declines, then the merchant is redirected to the app and receives a notification message stating that the charge was declined. If the merchant approves and they're successfully invoiced, then the state of the charge changes from pending to active.

You get paid after the charge is activated.

The list of errors that occurred from executing the mutation.


Was this section helpful?