# Get billing details

`GET https://evohub.io/api/v1/billing/profile`

Part of the [Billing API](https://docs.evohub.io/billing.md) reference · operationId `getBillingProfile`.

Who the organization's invoices are made out to: the legal name,
the email invoices and receipts go to, the address, and the tax
number. `complete` says whether enough is on file for a proper
invoice; `tax_id_supported` says whether a tax number can be filed
for this country and entity type.

Every field is empty while no billing details or card have been
saved.

Requires the `billing:profile:read` scope.

## Authorization

Any one of:

- `bearerKey`
- `headerKey`

Where:

- `bearerKey`: HTTP Bearer — An EvoHub API key (`evohub_…`) as a bearer token.
- `headerKey`: API key in the header `X-API-Key` — An EvoHub API key (`evohub_…`).

## Responses

### 200 — The billing details.

Content type: `application/json`

Type: `object`

- `data` (BillingProfile)
  - `entity_type` (string, one of `business`, `individual`)
  - `legal_name` (string): The company or person invoices are made out to.
  - `email` (string): Where invoices and receipts are sent.
  - `address` (BillingAddress)
    - `line1` (string)
    - `line2` (string): Left out when empty.
    - `city` (string)
    - `state` (string): Left out when empty.
    - `postal_code` (string)
    - `country` (string, example `IE`): Two-letter country code (ISO 3166-1 alpha-2).
  - `tax_id` (string)
  - `tax_id_type` (string): What the number is filed as, e.g. `eu_vat`. Left out when there is no number.
  - `tax_id_supported` (boolean): Whether a tax number can be filed for this country and entity type.
  - `complete` (boolean): Whether enough is on file for a proper invoice.

### 401 — No API key was sent, or it is unknown, revoked or expired (`UNAUTHORIZED`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `STATEMENT_NOT_FOUND`)
  - `message` (string, required, example `No statement for that period.`)
  - `request_id` (string)

### 403 — The key lacks the scope this endpoint needs (`FORBIDDEN`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `STATEMENT_NOT_FOUND`)
  - `message` (string, required, example `No statement for that period.`)
  - `request_id` (string)

### 429 — Too many requests (`RATE_LIMITED`). Wait for `Retry-After` seconds.

Headers:

- `Retry-After` (integer): Seconds to wait before retrying.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `STATEMENT_NOT_FOUND`)
  - `message` (string, required, example `No statement for that period.`)
  - `request_id` (string)

### 502 — The billing details could not be loaded from the payment provider (`PROFILE_UNAVAILABLE`). Retry later.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `STATEMENT_NOT_FOUND`)
  - `message` (string, required, example `No statement for that period.`)
  - `request_id` (string)

### 503 — Payments are not enabled on this environment (`PAYMENTS_DISABLED`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `STATEMENT_NOT_FOUND`)
  - `message` (string, required, example `No statement for that period.`)
  - `request_id` (string)

## Example request

```bash
curl -X GET 'https://evohub.io/api/v1/billing/profile' \
  -H 'Authorization: Bearer <TOKEN>'
```
