AutumnA
Autumn5mo ago
3 replies
daniel

hey guys, running into what I believe is

hey guys, running into what I believe is a bug. I manually set my credits to 1 in my test account, but the plan I'm on has 1000 credits of "included usage". When I run a check to see if an event requiring 20 credits will work, I would expect it to return false, but it's returning true. This is the payload. Am I missing something?

{
"allowed": true,
"feature_id": "credits",
"customer_id": "<id>",
"required_balance": 20,
"unlimited": false,
"interval": "month",
"balance": 1,
"usage": 0,
"included_usage": 1000,
"next_reset_at": 1761162465000,
"overage_allowed": true
}
Was this page helpful?