Award app credits to merchants

You can use the GraphQL Admin API to give credits to merchants who've installed your app. Merchants can use these app credits to get discounts on future app purchases, monthly subscription fees, and usage charges.

The amount of app credits that you give to a merchant is based on your revenue share, and is withdrawn from your Partner account. The total amount of credits can't exceed the following amounts:

  • The total amount that the merchant was charged in the last 30 days

  • The total amount of pending payouts in your Partner account

  • $300

You can implement your billing model using the following objects:

To use these objects, you'll need to implement triggers for the charge, such as when a merchant installs an app, upgrades their service plan, or makes an individual purchase.

The following example creates an app credit worth $5 USD using the appCreditCreate mutation: