The customer
Response
availableCreditsis the prepaid balance, plan and pack credits together, and never goes below zero.currentPlanisnullwhen the customer has no plan. That isn’t a zero balance: they may hold pack credits.currentPlan.statusispending_checkoutwhile a paid plan’s Checkout is open; until it’s paid, the customer keeps their previous plan’s credits.overageis this period’s overage, ornullwhen the plan has none.
Subscriptions
listCustomerSubscriptions returns each plan the customer has had, newest first. Each has its numeric id, planId, status (see subscription statuses), the current period, and a cancellation object that drives renewal controls.
Purchases
listCustomerPurchases returns each credit pack the customer has bought, newest first, with its status (pending_checkout or paid) and creditAmount. While a purchase is pending_checkout, its creditAmount is null and nothing has been granted.
Both lists return 25 items a page. Pass limit (up to 100), and the previous page’s nextCursor as cursor, for more.