Manage one-time charges with the Billing API

Using one-time charges, you can implement two different billing models:

Pay one time

You can create the charge by using the appPurchaseOneTimeCreate mutation. Provide the name, price and returnUrl for the one-time purchase. The only possible currencyCode is USD. The returnUrl is where the merchant is redirected after accepting the charge and also includes the charge ID.

POST /admin/api/2021-10/graphql.json

View response

JSON response:

Pay as you go

You can use the appPurchaseOneTimeCreate mutation to create many charges:

POST /admin/api/2021-10/graphql.json

View response

JSON response:

Next steps