What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Billing API capped amount for free plan

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
1831 273 421

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 😉