GraphQL | AppUsageRecord mutation is not charging and always returning balanceUsed as 0.0

Solved
sravans
Shopify Partner
23 1 5

I have a free subscription app but will charge by usage e.g, the app is free without monthly subscription charges, but will charge only by usage.

So using AppUsageRecord passing it price, subscriptionLineItemId etc., to charge when ever a usage occurs.

But during the test charge, it is not actually charging the shop and always returns balanceUsed as 0.0, as can see in below screenshot.

And can see at shop's admin that there is no charge occurred as well.

Screenshot 2021-06-07 at 00.23.01.png

Above request's X-Request-ID: 86e4e3c3-32b4-45ad-a783-fd7fcdfca954

Any help is highly appreciated!

Thank you.

Accepted Solution (1)

Accepted Solutions
sravans
Shopify Partner
23 1 5

This is an accepted solution.

For some reason its working now, with a fresh install of the app. Not sure what exactly is the reason usage charge not applied before.

View solution in original post

Reply 1 (1)
sravans
Shopify Partner
23 1 5

This is an accepted solution.

For some reason its working now, with a fresh install of the app. Not sure what exactly is the reason usage charge not applied before.