# updateBillingDetails

```graphql
mutation UpdateBillingDetails($input: UpdateBillingDetailsInput!) {
  updateBillingDetails(input: $input) {
    name
    email
    phone
    address {
      line1
      line2
      city
      state
      postalCode
      country
    }
    taxIds {
      id
      type
      value
    }
    customerAvailable
  }
}
```

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. Requires account.billing.manage.

## Arguments

| Name            | Type                       | Required | Description |
| --------------- | -------------------------- | -------- | ----------- |
| `input`         | UpdateBillingDetailsInput! | Yes      |             |
| `input.name`    | String                     |          |             |
| `input.email`   | String                     |          |             |
| `input.phone`   | String                     |          |             |
| `input.address` | BillingAddressInput        |          |             |

## Variables

```json
{
  "input": {}
}
```

## Responses

| Status | Description                                       |
| ------ | ------------------------------------------------- |
| 200    | The BillingDetails! in data.updateBillingDetails. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation UpdateBillingDetails($input: UpdateBillingDetailsInput!) {\n  updateBillingDetails(input: $input) {\n    name\n    email\n    phone\n    address {\n      line1\n      line2\n      city\n      state\n      postalCode\n      country\n    }\n    taxIds {\n      id\n      type\n      value\n    }\n    customerAvailable\n  }\n}",
  "variables": {
    "input": {}
  }
}'
```

## Example response

```json
{
  "data": {
    "updateBillingDetails": {
      "name": "string",
      "email": "user@example.com",
      "phone": "string",
      "address": {
        "line1": "string",
        "line2": "string",
        "city": "string",
        "state": "string",
        "postalCode": "string",
        "country": "string"
      },
      "taxIds": [
        {
          "id": "string",
          "type": "string",
          "value": "string"
        }
      ],
      "customerAvailable": false
    }
  }
}
```
