# billingDetails

```graphql
query BillingDetails {
  billingDetails {
    name
    email
    phone
    address {
      line1
      line2
      city
      state
      postalCode
      country
    }
    taxIds {
      id
      type
      value
    }
    customerAvailable
  }
}
```

Read the name, email, phone, address and tax IDs that appear on the invoices of an account; returns empty details and customer\_available false before the account has a billing customer. Requires account.billing.read.

## Responses

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

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query BillingDetails {\n  billingDetails {\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}"
}'
```

## Example response

```json
{
  "data": {
    "billingDetails": {
      "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
    }
  }
}
```
