---
title: Credits
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Billing](https://developers.cloudflare.com/api/python/resources/billing)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Credits

##### [Get Account Credits](https://developers.cloudflare.com/api/python/resources/billing/subresources/credits/methods/get)

billing.credits.get(CreditGetParams\*\*kwargs) -> [CreditGetResponse](<https://developers.cloudflare.com/api/python/resources/billing#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/billing/credits

##### ModelsExpand Collapse

<details>

<summary>

class CreditGetResponse: …

</summary>

confirmed\_balance\_cents: Optional\[int]

The confirmed credit balance in cents.

formatint64

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20confirmed_balance_cents">Link to this property</a>

currency: Optional\[str]

Currency of the credit balance.

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20currency">Link to this property</a>

days\_remaining: Optional\[int]

Days remaining until the credits expire.

formatint64

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20days_remaining">Link to this property</a>

eligible: Optional\[bool]

Whether the account is eligible to receive credits.

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20eligible">Link to this property</a>

has\_record: Optional\[bool]

Whether a credit record exists for the account.

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20has_record">Link to this property</a>

original\_amount\_cents: Optional\[int]

The original credit amount in cents.

formatint64

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20original_amount_cents">Link to this property</a>

percent\_consumed: Optional\[float]

Percentage of the original credit amount consumed.

formatdouble

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20percent_consumed">Link to this property</a>

projected\_depletion\_date: Optional\[datetime]

Projected date when the credits will be depleted.

formatdate-time

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20projected_depletion_date">Link to this property</a>

valid\_from: Optional\[datetime]

When the credits become valid.

formatdate-time

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20valid_from">Link to this property</a>

valid\_to: Optional\[datetime]

When the credits expire.

formatdate-time

<a href="#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)%20%3E%20(property)%20valid_to">Link to this property</a>

</details>

[Link to this property](<#(resource)%20billing.credits%20%3E%20(model)%20credit_get_response%20%3E%20(schema)>)