Documentation menu

List credit transactions

GEThttps://api.instacloud.com/orgs/{orgId}/billing/credits/transactions

Token scope: account · org — read-only tokens allowed.

Credit transaction history for an org — grants, spends and reversals, newest first (pure read)

Parameters

NameInTypeRequiredDescription
limitqueryintegerno
beforequerystringnoopaque cursor from a previous page's nextBefore
orgIdpathstringyes

Responses

200

Default Response

FieldTypeRequiredDescription
itemsobject[]yes
items.idstringyes
items.amountUsdnumberyessigned: positive = credit added (grant or reversal), negative = credit spent
items.reasonstringyesgift_grant | usage_debit | subscription_debit | adjust | expire | legacy_import
items.createdAtstringyes
items.expiresAtstring | nullnothe expiry of the grant this row moved, so a reader can see which bucket it came out of; null = never expires
items.refobjectnowhat the movement was for
items.ref.invoiceIdstringno
items.ref.subscriptionIdstringno
items.ref.reasonstringno
items.ref.reversalstringno
items.ref.idempotencyKeystringno
nextBeforestring | nullnoopaque cursor; pass as ?before= for the next page, null when there are no more

403

Default Response

FieldTypeRequiredDescription
errorstringyes

404

Default Response

FieldTypeRequiredDescription
errorstringyes

View as Markdown