Skip to content
Start here

Credits

Get Account Credits
billing.credits.get(CreditGetParams**kwargs) -> CreditGetResponse
GET/accounts/{account_id}/billing/credits
ModelsExpand Collapse
class CreditGetResponse:
confirmed_balance_cents: Optional[int]

The confirmed credit balance in cents.

formatint64
currency: Optional[str]

Currency of the credit balance.

days_remaining: Optional[int]

Days remaining until the credits expire.

formatint64
eligible: Optional[bool]

Whether the account is eligible to receive credits.

has_record: Optional[bool]

Whether a credit record exists for the account.

original_amount_cents: Optional[int]

The original credit amount in cents.

formatint64
percent_consumed: Optional[float]

Percentage of the original credit amount consumed.

formatdouble
projected_depletion_date: Optional[datetime]

Projected date when the credits will be depleted.

formatdate-time
valid_from: Optional[datetime]

When the credits become valid.

formatdate-time
valid_to: Optional[datetime]

When the credits expire.

formatdate-time