---
title: Bad Debt
---

[Skip to content](#%5Ftop) 

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

[Billing](https://developers.cloudflare.com/api/typescript/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/typescript/resources/billing/subresources/bad%5Fdebt/methods/get)

client.billing.badDebt.get(BadDebtGetParams { account\_id } params, RequestOptionsoptions?): [BadDebtGetResponse](https://developers.cloudflare.com/api/typescript/resources/billing#%28resource%29%20billing.bad%5Fdebt%20%3E%20%28model%29%20bad%5Fdebt%5Fget%5Fresponse%20%3E%20%28schema%29) { already\_paid, bad\_debt\_status, invoices, total\_debt\_amount } 

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

##### ModelsExpand Collapse 

BadDebtGetResponse { already\_paid, bad\_debt\_status, invoices, total\_debt\_amount } 

already\_paid?: number

Amount already paid towards the debt.

bad\_debt\_status?: string

The current bad debt status of the account.

invoices?: Array<Invoice\>

List of outstanding invoices contributing to bad debt.

id?: string

Billing history item identifier.

action?: string

The billing item action.

amount?: number

The amount associated with this billing item.

amount\_to\_pay?: number

The amount remaining to pay.

currency?: string

The currency of the billing item.

description?: string

The billing item description.

external\_invoice\_id?: string

The external invoice identifier.

hosted\_invoice\_url?: string

URL to the hosted invoice.

invoice\_id?: string

The associated invoice identifier.

occurred\_at?: string

When the billing event occurred.

formatdate-time

receipt\_id?: string

The associated receipt identifier.

source?: string

The source of the billing item.

source\_invoice\_id?: string

The source invoice identifier.

status?: string

The status of the billing item.

type?: string

The billing item type.

total\_debt\_amount?: number

Total outstanding debt amount.