---
title: Billing
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Billing

##### [Validate Billing Address](https://developers.cloudflare.com/api/go/resources/billing/methods/address_validation)

client.Billing.AddressValidation(ctx, body) (\*[BillingAddressValidationResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing%20%3E%20(model)%20BillingAddressValidationResponse%20%3E%20(schema)>), error)

POST/billing/address-validation

#### BillingProfiles

##### [Get Billing Profile](https://developers.cloudflare.com/api/go/resources/billing/subresources/profiles/methods/get)

client.Billing.Profiles.Get(ctx, query) (\*[ProfileGetResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.profiles%20%3E%20(model)%20ProfileGetResponse%20%3E%20(schema)>), error)

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

##### [Create Billing Profile](https://developers.cloudflare.com/api/go/resources/billing/subresources/profiles/methods/create)

client.Billing.Profiles.New(ctx, params) (\*[ProfileNewResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.profiles%20%3E%20(model)%20ProfileNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/billing/profile

##### [Update Billing Profile](https://developers.cloudflare.com/api/go/resources/billing/subresources/profiles/methods/update)

client.Billing.Profiles.Update(ctx, params) (\*[ProfileUpdateResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/billing/profile

##### [Delete Billing Profile](https://developers.cloudflare.com/api/go/resources/billing/subresources/profiles/methods/delete)

client.Billing.Profiles.Delete(ctx, body) error

DELETE/accounts/{account\_id}/billing/profile

##### [Update Billing Email](https://developers.cloudflare.com/api/go/resources/billing/subresources/profiles/methods/update_billing_email)

client.Billing.Profiles.UpdateBillingEmail(ctx, params) (\*[ProfileUpdateBillingEmailResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/billing/profile

#### BillingProfilesPayment Method

##### [Create Payment Intent for Billing Profile](https://developers.cloudflare.com/api/go/resources/billing/subresources/profiles/subresources/payment_method/methods/create)

client.Billing.Profiles.PaymentMethod.New(ctx, body) (\*[ProfilePaymentMethodNewResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.profiles.payment_method%20%3E%20(model)%20ProfilePaymentMethodNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/billing/profile/payment-method

#### BillingUsage

##### [Get Account Billable Usage Info (Version 1, Alpha)](https://developers.cloudflare.com/api/go/resources/billing/subresources/usage/methods/paygo_info)

Deprecated

client.Billing.Usage.PaygoInfo(ctx, query) (\*[UsagePaygoInfoResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.usage%20%3E%20(model)%20UsagePaygoInfoResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/billable-usage/info

##### [Get Account Billable Usage (Version 1, Alpha)](https://developers.cloudflare.com/api/go/resources/billing/subresources/usage/methods/paygo)

Deprecated

client.Billing.Usage.Paygo(ctx, params) (\*\[] [UsagePaygoResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.usage%20%3E%20(model)%20UsagePaygoResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/billable-usage

##### [Get Account Usage (Version 2, Alpha, Restricted)](https://developers.cloudflare.com/api/go/resources/billing/subresources/usage/methods/get)

Deprecated

client.Billing.Usage.Get(ctx, params) (\*\[] [UsageGetResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.usage%20%3E%20(model)%20UsageGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/billable/usage

##### [Get Account Billable Usage Info (Version 1, Alpha)](https://developers.cloudflare.com/api/go/resources/billing/subresources/usage/methods/get_account_usage_info_v1)

client.Billing.Usage.GetAccountUsageInfoV1(ctx, query) (\*[UsageGetAccountUsageInfoV1Response](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.usage%20%3E%20(model)%20UsageGetAccountUsageInfoV1Response%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/billable-usage/info

##### [Get Account Billable Usage (Version 1, Alpha)](https://developers.cloudflare.com/api/go/resources/billing/subresources/usage/methods/get_account_usage_v1)

client.Billing.Usage.GetAccountUsageV1(ctx, params) (\*\[] [UsageGetAccountUsageV1Response](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.usage%20%3E%20(model)%20UsageGetAccountUsageV1Response%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/billable-usage

##### [Get Account Usage (Version 2, Alpha, Restricted)](https://developers.cloudflare.com/api/go/resources/billing/subresources/usage/methods/get_account_usage_v2)

client.Billing.Usage.GetAccountUsageV2(ctx, params) (\*\[] [UsageGetAccountUsageV2Response](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.usage%20%3E%20(model)%20UsageGetAccountUsageV2Response%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/billable/usage

#### BillingCredits

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

client.Billing.Credits.Get(ctx, query) (\*[CreditGetResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.credits%20%3E%20(model)%20CreditGetResponse%20%3E%20(schema)>), error)

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

#### BillingHistory

##### [Get Account Billing History](https://developers.cloudflare.com/api/go/resources/billing/subresources/history/methods/list)

client.Billing.History.List(ctx, params) (\*V4PagePaginationArray\[[HistoryListResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.history%20%3E%20(model)%20HistoryListResponse%20%3E%20(schema)>)], error)

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

#### BillingBad Debt

##### [Get Account Bad Debt](https://developers.cloudflare.com/api/go/resources/billing/subresources/bad_debt/methods/get)

client.Billing.BadDebt.Get(ctx, query) (\*[BadDebtGetResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.bad_debt%20%3E%20(model)%20BadDebtGetResponse%20%3E%20(schema)>), error)

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

#### BillingUnpaid Invoice

##### [Get Unpaid Invoices](https://developers.cloudflare.com/api/go/resources/billing/subresources/unpaid_invoice/methods/get)

client.Billing.UnpaidInvoice.Get(ctx, query) (\*[UnpaidInvoiceGetResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.unpaid_invoice%20%3E%20(model)%20UnpaidInvoiceGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/billing/unpaid-invoice

#### BillingRate Plans

##### [Get Rate Plan by Public Key](https://developers.cloudflare.com/api/go/resources/billing/subresources/rate_plans/methods/get)

client.Billing.RatePlans.Get(ctx, publicKey) (\*[RatePlanGetResponse](<https://developers.cloudflare.com/api/go/resources/billing#(resource)%20billing.rate_plans%20%3E%20(model)%20RatePlanGetResponse%20%3E%20(schema)>), error)

GET/billing/rate\_plans/{public\_key}