---
title: Update Billing Email
---

[Skip to content](#_top)

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

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

[Profiles](https://developers.cloudflare.com/api/go/resources/billing/subresources/profiles)

Copy Markdown

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

---

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

# 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

Updates the billing email addresses and preferred locale for an account.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Billing Write`

##### ParametersExpand Collapse

<details>

<summary>

params ProfileUpdateBillingEmailParams

</summary>

AccountID param.Field\[string]

Path param: Identifier

maxLength32

<a href="#(resource)%20billing.profiles%20%3E%20(method)%20update_billing_email%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

BillingEmail param.Field\[string]Optional

Body param

<a href="#(resource)%20billing.profiles%20%3E%20(method)%20update_billing_email%20%3E%20(params)%20default%20%3E%20(param)%20billing_email">Link to this property</a>

PreferredLocale param.Field\[string]Optional

Body param

<a href="#(resource)%20billing.profiles%20%3E%20(method)%20update_billing_email%20%3E%20(params)%20default%20%3E%20(param)%20preferred_locale">Link to this property</a>

SecondaryBillingEmail param.Field\[string]Optional

Body param

<a href="#(resource)%20billing.profiles%20%3E%20(method)%20update_billing_email%20%3E%20(params)%20default%20%3E%20(param)%20secondary_billing_email">Link to this property</a>

</details>

[Link to this property](<#(resource)%20billing.profiles%20%3E%20(method)%20update_billing_email%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type ProfileUpdateBillingEmailResponse struct{…}

</summary>

ID stringOptional

Billing item identifier tag.

maxLength32

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

AccountType stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20account_type">Link to this property</a>

Address stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20address">Link to this property</a>

Address2 stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20address2">Link to this property</a>

Balance stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20balance">Link to this property</a>

CardExpiryMonth int64Optional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20card_expiry_month">Link to this property</a>

CardExpiryYear int64Optional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20card_expiry_year">Link to this property</a>

CardNumber stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20card_number">Link to this property</a>

City stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20city">Link to this property</a>

Company stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20company">Link to this property</a>

Country stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20country">Link to this property</a>

CreatedOn TimeOptional

formatdate-time

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

DeviceData stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20device_data">Link to this property</a>

EditedOn TimeOptional

formatdate-time

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20edited_on">Link to this property</a>

EnterpriseBillingEmail stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20enterprise_billing_email">Link to this property</a>

EnterprisePrimaryEmail stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20enterprise_primary_email">Link to this property</a>

FirstName stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20first_name">Link to this property</a>

IsPartner boolOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20is_partner">Link to this property</a>

LastName stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20last_name">Link to this property</a>

NextBillDate TimeOptional

formatdate-time

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20next_bill_date">Link to this property</a>

PaymentAddress stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_address">Link to this property</a>

PaymentAddress2 stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_address2">Link to this property</a>

PaymentCity stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_city">Link to this property</a>

PaymentCountry stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_country">Link to this property</a>

PaymentEmail stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_email">Link to this property</a>

PaymentFirstName stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_first_name">Link to this property</a>

PaymentGateway stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_gateway">Link to this property</a>

PaymentLastName stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_last_name">Link to this property</a>

PaymentNonce stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_nonce">Link to this property</a>

PaymentState stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_state">Link to this property</a>

PaymentZipcode stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20payment_zipcode">Link to this property</a>

PrimaryEmail stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20primary_email">Link to this property</a>

State stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20state">Link to this property</a>

TaxIDType stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20tax_id_type">Link to this property</a>

Telephone stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20telephone">Link to this property</a>

ValidationCode stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20validation_code">Link to this property</a>

Vat stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20vat">Link to this property</a>

Zipcode stringOptional

<a href="#(resource)%20billing.profiles%20%3E%20(model)%20ProfileUpdateBillingEmailResponse%20%3E%20(schema)%20%3E%20(property)%20zipcode">Link to this property</a>

</details>

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

### Update Billing Email

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/billing"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.Billing.Profiles.UpdateBillingEmail(context.TODO(), billing.ProfileUpdateBillingEmailParams{
    AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.ID)
}
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "id": "b69a9f3492637782896352daae219e7d",
    "account_type": "type",
    "address": "123 Main Street",
    "address2": "Apt 1",
    "balance": "0",
    "card_expiry_month": 12,
    "card_expiry_year": 2099,
    "card_number": "4242424242424242",
    "city": "Anytown",
    "company": "Company",
    "country": "Anycountry",
    "created_on": "2014-03-01T12:21:59.3456Z",
    "edited_on": "2014-03-01T12:21:59.3456Z",
    "enterprise_billing_email": "johndoe@gmail.com",
    "enterprise_primary_email": "johndoe@gmail.com",
    "first_name": "John",
    "is_partner": false,
    "last_name": "Doe",
    "next_bill_date": "2014-03-01T12:21:59.3456Z",
    "payment_address": "123 Main Street",
    "payment_address2": "Apt 1",
    "payment_city": "Anytown",
    "payment_country": "Anycountry",
    "payment_email": "johndoe@gmail.com",
    "payment_first_name": "John",
    "payment_last_name": "Doe",
    "payment_state": "state",
    "payment_zipcode": "12345",
    "primary_email": "johndoe@gmail.com",
    "state": "AnyState",
    "tax_id_type": "type",
    "telephone": "1234567899",
    "validation_code": "1111",
    "vat": "GB123456789",
    "zipcode": "12345"
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "id": "b69a9f3492637782896352daae219e7d",
    "account_type": "type",
    "address": "123 Main Street",
    "address2": "Apt 1",
    "balance": "0",
    "card_expiry_month": 12,
    "card_expiry_year": 2099,
    "card_number": "4242424242424242",
    "city": "Anytown",
    "company": "Company",
    "country": "Anycountry",
    "created_on": "2014-03-01T12:21:59.3456Z",
    "edited_on": "2014-03-01T12:21:59.3456Z",
    "enterprise_billing_email": "johndoe@gmail.com",
    "enterprise_primary_email": "johndoe@gmail.com",
    "first_name": "John",
    "is_partner": false,
    "last_name": "Doe",
    "next_bill_date": "2014-03-01T12:21:59.3456Z",
    "payment_address": "123 Main Street",
    "payment_address2": "Apt 1",
    "payment_city": "Anytown",
    "payment_country": "Anycountry",
    "payment_email": "johndoe@gmail.com",
    "payment_first_name": "John",
    "payment_last_name": "Doe",
    "payment_state": "state",
    "payment_zipcode": "12345",
    "primary_email": "johndoe@gmail.com",
    "state": "AnyState",
    "tax_id_type": "type",
    "telephone": "1234567899",
    "validation_code": "1111",
    "vat": "GB123456789",
    "zipcode": "12345"
  },
  "success": true
}
```