> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update billing details

> Change the name, email, phone or address on the invoices of an account, where an omitted field keeps its value and null clears it; returns the updated billing details.

`updateBillingDetails(input: UpdateBillingDetailsInput!): BillingDetails!`

Requires account.billing.manage.

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`UpdateBillingDetailsInput!`](https://veryfront.com/docs/cloud/graphql/types/updatebillingdetailsinput) | Yes |

## Input fields

### input

[`UpdateBillingDetailsInput`](https://veryfront.com/docs/cloud/graphql/types/updatebillingdetailsinput)

| Field | Type | Required |
| - | - | - |
| `name` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No |
| `email` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No |
| `phone` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No |
| `address` | [`BillingAddressInput`](https://veryfront.com/docs/cloud/graphql/types/billingaddressinput) | No |

## Response

Returns [`BillingDetails!`](https://veryfront.com/docs/cloud/graphql/types/billingdetails). Open the type for its fields and nested types.

| Field | Type | Description |
| - | - | - |
| `name` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | |
| `email` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | |
| `phone` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | |
| `address` | [`BillingAddress`](https://veryfront.com/docs/cloud/graphql/types/billingaddress) | |
| `taxIds` | [`[BillingTaxId!]!`](https://veryfront.com/docs/cloud/graphql/types/billingtaxid) | |
| `customerAvailable` | [`Boolean!`](https://veryfront.com/docs/cloud/graphql/types/boolean) | Whether this account has an existing billing customer |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
mutation UpdateBillingDetails($input: UpdateBillingDetailsInput!) {
  updateBillingDetails(input: $input) {
    name
    customerAvailable
    email
    phone
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {}
}
```

<details>
  <summary>Try this mutation</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Mutation

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.