Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Billing API capped amount for free plan

mrcnee
Shopify Partner
3 0 0

Hi everyone, 

we've got 4 plan and one of those is free.

 

while calling the billing api it seems impossible to set a price of 0$ without a capped amount (a minimum of .5$).

this doesn't make sense to me, i've seen other apps with a free plan and other paid plans without these strange behavior.

 

what's the flow to create a free plan and some paid plans without using the capped amount?

 

thanks

Replies 2 (2)

SBD_
Shopify Staff
1776 263 383

Hey @mrcnee 

 

If they're select the free plan, you could skip the recurringApplicationCharge all together.

 

If they select a paid plan, create a recurringApplicationCharge with the plan name and price:

 

{
  "recurring_application_charge": {
    "name": "Super Duper Plan",
    "price": 10.0,
    "return_url": "http://super-duper.shopifyapps.com"
  }
}

 

Scott | Developer Advocate @ Shopify 

Stefan-247APPS
Shopify Partner
79 14 46

Hi, how can you show that a merchant can switch from a paid plan back to the free plan? I guess this must be done by cancelling the charge? https://shopify.dev/docs/api/admin-rest/2023-01/resources/recurringapplicationcharge#delete-recurrin... 

Auf der Suche nach Superkräften für deinen Versand in Shopify? Dann such im App-Store nach easyDHL, easyDPD oder easyGLS. Was passendes für deine Retouren könnte easyReturns sein 😉