Subscriptions

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.

get/gateway/subscriptions/{id}/credits

Request

  • Base URL: https://api.agentaos.ai/api/v1
  • URL: https://api.agentaos.ai/api/v1/gateway/subscriptions/{id}/credits
  • Auth: SessionAuth (a scheme the document does not define)

Path parameters

idstring uuid required

Subscription UUID (the id field from the list response, not stripeSubscriptionId).

Response

The credits given for this subscription.

balanceMinorinteger required

Unspent credit on the CUSTOMER, which may span their subscriptions with you.

currencystring required

What every minor-unit figure on this page is counted in — the subscription's own currency, lower-case ISO 4217. Print it; don't assume one.

Changes

No recorded changes to this operation across all 1 revision of this API.