List credits given to a subscriber
Every credit given for this subscription, newest first, and what is left unspent. balanceMinor is the customer’s whole unspent credit with you, which may include credit given for another of their subscriptions. createdBy is the id of the person who gave it. currency is the subscription’s, and every minor-unit figure on the page is counted in it. Owner or admin, signed-in session only: an API key is refused here, same as on the grant.
Authorizations
A signed-in person, not a key: the session token the dashboard holds and agenta login mints, sent as Authorization: Bearer <token>. An API key is REFUSED on the operations that require this, and refusing it is the point — a key belongs to an organization and names nobody, so it cannot be recorded as the person who spent the merchant's money. Unlike a key, a session token carries no environment of its own, so send X-Environment: test or live to choose one; leave it out and you get test, never live money by accident. A session user who belongs to several organizations names one with ?orgId=.
Path Parameters
Subscription UUID (the id field from the list response, not stripeSubscriptionId).
Response
The credits given for this subscription.