App Purchase One Time
Requires The staff member must have permission to manage app billing or approve app charges if authenticated with an online access token as described in https://shopify.dev/apps/auth/oauth/access-modes.
Services and features purchased once by a store.
Anchor to FieldsFields
- Anchor to createdAtcreated•Date
At Time!non-null The date and time when the app purchase occurred.
- •ID!non-null
A globally-unique ID.
- Anchor to namename•String!non-null
The name of the app purchase.
- Anchor to priceprice•Money
V2!non-null The amount to be charged to the store for the app purchase.
- Anchor to statusstatus•App
Purchase Status!non-null The status of the app purchase.
- Anchor to testtest•Boolean!non-null
Whether the app purchase is a test transaction.
Anchor to MutationsMutations
- •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.
- Anchor to namename•String!required
The name of the one-time purchase from the app.
- Anchor to priceprice•Money
Input!required The amount to be charged to the store for the app one-time purchase.
- Anchor to returnUrlreturn•URL!required
Url The URL where the merchant is redirected after approving the app one-time purchase.
- Anchor to testtest•BooleanDefault:false
Whether the app one-time purchase is a test transaction.
Arguments
- Anchor to appPurchaseOneTimeapp•App
Purchase One Time Purchase One Time The newly created app one-time purchase.
- Anchor to confirmationUrlconfirmation•URL
Url 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
toactive
.You get paid after the charge is activated.
- Anchor to userErrorsuser•[User
Errors Error!]!non-null The list of errors that occurred from executing the mutation.
Fields