A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Folks:
We're testing Shopify app billing for a new app we're developing, and saw some disturbing behavior in a recurring+usage app subscription (recurring_application_charge): when the app current billing period ended, the balance_used amount did not reset to zero. The subscription is still reporting usage charges created during the prior app billing period (this queried just now, on 2023-04-18):
{
"recurring_application_charge": {
"id": 28822143279,
...
"price": "100.00",
"status": "active",
...
"billing_on": "2023-03-14",
"created_at": "2023-03-14T13:21:50-07:00",
"updated_at": "2023-04-17T09:36:21-07:00",
"test": true,
"activated_on": "2023-03-14",
...
"capped_amount": "15000.00",
...
"trial_ends_on": "2023-03-14",
"balance_used": 1500.0,
"balance_remaining": 13500.0,
...
}
}
Per the subscription info above, the app billing period ended on 04-14. The last usage charge for this subscription was created on 04-05. The update on 04-17 was increasing the usage cap via the Shopify UI.
Why would this happen?
This is a Test subscription in a development shop - are Test subscriptions known to not behave correctly per the API documentation?