Charging for your app

Shopify’s Billing API provides an integrated billing solution that enables app charges to be handled by Shopify's merchant invoicing system. Leveraging this functionality provides the best merchant experience while greatly simplifying and streamlining billing for your apps. You select the API resources for your billing model and include the amount to charge; Shopify handles charging the merchant and making sure you get paid.

The Billing API includes three API resources to help meet the needs of your specific billing model:

  • ApplicationCharge is used to bill your users one time only, for example when their free trial expires. This type of charge is recommended for apps that aren’t billed on a recurring basis.
  • RecurringApplicationCharge is used to bill your users on a recurring 30-day billing cycle.
  • UsageCharge – is used to charge merchants when fees are recurring, but vary from month to month.

There are several advantages to using Shopify's Billing API:

  • The charges appear directly on the merchant’s Shopify invoice – merchants don't have to input their credit card information to pay for your app.
  • Apps that use Shopify’s Billing API see higher free-to-paid conversion rates because charges appear to originate directly from Shopify.
  • The correct amount of tax is charged automatically.
  • You automatically receive your 80% revenue share from Shopify.
  • Shopify handles all chargebacks.

Tip

Shopify Partners are more likely to recommend apps they’ve used before. Consider allowing free app testing in Shopify Partner development stores to help increase your app sales. Development stores can be identified and granted free testing access through the Shop API. They show up as an 'affiliate' when you look up the 'plan_name'. (ie: { "plan_name" : "affiliate" })

If your app qualifies, please email us at apps@shopify.com to get your app listed on our Partner-friendly app list.

How it works

Creating and issuing charges to users is a multi-step process:

  1. A merchant triggers a charge with an event that you've identified, such as app installation, service plan upgrade, or individual purchase.

  2. The app creates a charge for the merchant, which might be a recurring or one-time charge.

  3. Shopify verifies the charge and returns a confirmation_url that redirects the merchant to accept or decline the charge.

  4. The merchant accepts or declines the charge and is redirected to the return_url specified when issuing the charge. The decorated_return_url contains the charge_id.

  5. If the merchant accepts, then the app uses the charge_id to activate the charge. If the merchant declines, then the merchant should be directed to a different url that confirms the decline of the charge.

After the charge is activated, you'll get paid. If you do not activate a RecurringApplicationCharge, then the merchant is not charged and you are not paid. If you do not activate an ApplicatinCharge, then the merchant is charged when accepting, but you are not paid.

Billing

See our Billing API guides to learn how to best determine your billing model and implement the Billing API endpoints.

For more information on how the Billing API works, see Billing concepts.