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.

Can we use Recurring Application Charge similar to appSubscriptionCreate in GraphQL to set 0 price

Can we use Recurring Application Charge similar to appSubscriptionCreate in GraphQL to set 0 price

Reymundo
Shopify Partner
3 0 1

We are running in a scenario where we would like to create a Recurring Application Charge as a 0 with the idea to use later the UsageCharge where we can apply a fee per txn, and the existing Rest API RecurringApplicationCharge (shopify.dev) does not allow a price as a zero. However, if we use the GraphQL 

https://shopify.dev/docs/api/admin-graphql/2023-04/mutations/appSubscriptionCreate it allows us to set as a zero.
 
Do you know if there is an existing Rest API similar as the graphQL that allows us to set the price as zero?
 
Thanks
Reply 1 (1)

Reymundo
Shopify Partner
3 0 1

I found the answer, the problem with the current Rest API in my side it was that we need to use the capped_amount field instead of cappedAmount in camel case, this solved the problem