Hi all,
I have a question re “balance_used” & “balance_remaining” fields not updating when using recurring application charge (REST API 2021-07) + usage charge (REST API 2021-07)
I am able to create a recurring application charge (POST) and can view it (GET).
FYI, “test”: true, and
- “price” : “0.00”,
- “status”: “active”,
- “activated_on”: ,
- “cancelled_on”: null,
- “capped_amount”: 200,
- “balance_used”: 0.0,
- “balance_remaining”: 200.0,
For my development store, I created multiple usage charge(s) (“price”:“50.00”) at intervals of a minute or so, and the “balance_remaining” OR “balanced_used” DOES NOT UPDATE, definitely exceeding “capped_amount”!
The odd thing is, coming back to this a few hours later, when again trying replicate the above create usage charges, the “balance_used” & “balanced_remaining” are now updating as expected, and I cannot exceed the “capped_amount” this time.
Finally, when i retrieve a list of usage charges, all the usage charges are there, the totals of all the “price” fields clearly exceeds “capped_amount”.
This seems to be a bug, so:
Is this bug only when “test”: true? Obviously it would be impossible/expensive to test otherwise.
Was I able to do this because I created multiple usage charges in succession, if so what is a “safe” time interval NOT to? or …?
If this can occur when “test”: null or whatever it is for the REAL situation, will I get paid the total usage charges and do I have to prove it somehow since the “capped_amount” was exceeded?
If it’s not a bug, can anyone tell me what is incorrect, and/or what I should check?
Thanks!