Attributes
- idstring
Unique identifier for the object.
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- createdtimestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
- creditnullable object
Credit details for this credit balance transaction. Only present if type is
credit
.- credit.
amountobject The amount of credit transaction.
- credit.
amount. monetarynullable object The monetary amount.
- credit.
amount. monetary. currencystring Three-letter ISO currency code, in lowercase. Must be a supported currency.
- credit.
amount. monetary. valueinteger A positive integer representing the amount.
- credit.
amount. typeenum The type of this amount. We currently only support
monetary
billing credits.Possible enum valuesmonetary
The amount is a monetary amount.
- credit.
credits_ application_ invoice_ voidednullable object Details of the invoice to which the reinstated credits were originally applied. Only present if
type
iscredits_
.application_ invoice_ voided - credit.
credits_application_invoice_voided. invoicestringExpandable The invoice to which the reinstated billing credits were originally applied.
- credit.
credits_application_invoice_voided. invoice_ line_ itemstring The invoice line item to which the reinstated billing credits were originally applied.
- credit.
typeenum The type of credit transaction.
Possible enum valuescredits_
application_ invoice_ voided Represents the credits reinstated after an invoice to which credits were applied was voided.
credits_
granted Represents the initial funding of credits after a credit grant becomes effective.
- credit_
grantstringExpandable The credit grant associated with this credit balance transaction.
- debitnullable object
Debit details for this credit balance transaction. Only present if type is
debit
.- debit.
amountobject The amount of debit transaction.
- debit.
amount. monetarynullable object The monetary amount.
- debit.
amount. monetary. currencystring Three-letter ISO currency code, in lowercase. Must be a supported currency.
- debit.
amount. monetary. valueinteger A positive integer representing the amount.
- debit.
amount. typeenum The type of this amount. We currently only support
monetary
billing credits.Possible enum valuesmonetary
The amount is a monetary amount.
- debit.
credits_ appliednullable object Details of how the billing credits were applied to an invoice. Only present if
type
iscredits_
.applied - debit.
credits_applied. invoicestringExpandable The invoice to which the billing credits were applied.
- debit.
credits_applied. invoice_ line_ itemstring The invoice line item to which the billing credits were applied.
- debit.
typeenum The type of debit transaction.
Possible enum valuescredits_
applied Represents credits that were applied to a line item on an invoice.
credits_
expired Represents credits that were expired due to credit grant being expired.
credits_
voided Represents credits that were voided due to credit grant being voided.
- effective_
attimestamp The effective time of this credit balance transaction.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - test_
clocknullable stringExpandable ID of the test clock this credit balance transaction belongs to.
- typenullable enum
The type of credit balance transaction (credit or debit).
Possible enum valuescredit
A credit transaction.
debit
A debit transaction.
{ "id": "cbtxn_test_61R9ZljjaFmdidb6e41L6nFOS1ekD9Ue", "object": "billing.credit_balance_transaction", "created": 1726619524, "credit": null, "credit_grant": "credgr_test_61R9ZkIkIzLSp0xze41L6nFOS1ekDTPE", "debit": { "amount": { "monetary": { "currency": "usd", "value": 1000 }, "type": "monetary" }, "credits_applied": { "invoice": "in_1Q0BoLL6nFOS1ekDbwBM5ER1", "invoice_line_item": "il_1QB443L6nFOS1ekDwRiN3Z4n" }, "type": "credits_applied" }, "effective_at": 1729211351, "livemode": false, "test_clock": "clock_1Q0BoJL6nFOS1ekDbyYYuseM", "type": "debit"}