We recently implemented the billing API into our application and as part of our testing we came across an issue where a successful usage charge was not incrementing the balance_used.
STATUS 201
{
"usage_charge":{
"id":501194621219,
"description":"test purchase",
"price":"316.65",
"created_at":"2024-01-30T12:00:24-05:00",
"currency":"USD",
"balance_used":0,
"balance_remaining":2000,
"risk_level":0,
"billing_on":"2023-10-24"
}
}
We double checked that the reaccuringApplicationCharge we were referencing was active
"reaccuringApplicationCharge":{
"id":XXXXX7987,
"name":"Chaching",
"price":"0.00",
"billing_on":"2023-10-24",
"status":"active",
"created_at":"2023-10-24T07:03:30-04:00",
"updated_at":"2023-12-20T14:27:21-05:00",
"activated_on":"2023-10-24",
"return_url":"https://admin.shopify.com/store/chaching-testing-store-pino/apps/XXXX?billing_accepted=1",
"test":true,
"cancelled_on":null,
"trial_days":0,
"trial_ends_on":"2023-10-24",
"api_client_id":XXXX,
"decorated_return_url":"https://admin.shopify.com/store/chaching-testing-store-pino/apps/XXXX?billing_accepted=1&charge_id=31481757987",
"capped_amount":"2000.00",
"balance_used":0,
"balance_remaining":2000,
"risk_level":0,
"currency":"USD"
},
It should be noted that this IS a test store, and I did see some comment about billing not applying to test stores but I was under the impression that referred to shopify billing cycle. This only appears to be an issue on a few stores but I’m concerned that it has to do some store configuration that I don’t understand.