---
title: Bad Debt
---

[Skip to content](#%5Ftop) 

[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**

# Bad Debt

##### [Get Account Bad Debt](https://developers.cloudflare.com/api/python/resources/billing/subresources/bad%5Fdebt/methods/get)

billing.bad\_debt.get(BadDebtGetParams\*\*kwargs)  \-> [BadDebtGetResponse](https://developers.cloudflare.com/api/python/resources/billing#%28resource%29%20billing.bad%5Fdebt%20%3E%20%28model%29%20bad%5Fdebt%5Fget%5Fresponse%20%3E%20%28schema%29)

GET/accounts/{account\_id}/billing/bad-debt

##### ModelsExpand Collapse 

class BadDebtGetResponse: …

already\_paid: Optional\[float\]

Amount already paid towards the debt.

bad\_debt\_status: Optional\[str\]

The current bad debt status of the account.

invoices: Optional\[List\[Invoice\]\]

List of outstanding invoices contributing to bad debt.

id: Optional\[str\]

Billing history item identifier.

action: Optional\[str\]

The billing item action.

amount: Optional\[float\]

The amount associated with this billing item.

amount\_to\_pay: Optional\[float\]

The amount remaining to pay.

currency: Optional\[str\]

The currency of the billing item.

description: Optional\[str\]

The billing item description.

external\_invoice\_id: Optional\[str\]

The external invoice identifier.

hosted\_invoice\_url: Optional\[str\]

URL to the hosted invoice.

invoice\_id: Optional\[str\]

The associated invoice identifier.

occurred\_at: Optional\[datetime\]

When the billing event occurred.

formatdate-time

receipt\_id: Optional\[str\]

The associated receipt identifier.

source: Optional\[str\]

The source of the billing item.

source\_invoice\_id: Optional\[str\]

The source invoice identifier.

status: Optional\[str\]

The status of the billing item.

type: Optional\[str\]

The billing item type.

total\_debt\_amount: Optional\[float\]

Total outstanding debt amount.