# Get billing transactions (/data-api/api-reference/getEnergyBilling)

Returns billing transactions for all accounts authorised by the end user

## GET /v1/energy/billing

**Get billing transactions**

Returns billing transactions for all accounts authorised by the end user

**Tags:** Billing

### Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `end_user_id` | query | string | Yes | A unique identifier for the End User to fetch billing transactions for. |
| `account_id` | query | string | No | The account_id from the Accounts API to fetch billing transactions for. |
| `invoice_number` | query | string | No | The invoice_number from the invoices API to fetch billing transactions for. |
| `page[before]` | query | string | No | When the page[before] is specified, backwards pagination is achieved |
| `page[after]` | query | string | No | When the page[after] is specified, forwards pagination is achieved |
| `page[size]` | query | integer | No | When the page[size] is specified, no more than page[size] resources will be included in the response's data field. This parameter is set to a sensible default, which varies depending on the endpoint. It is capped at 1000. |

### Responses

**200:** OK

| Field | Type | Description |
|-------|------|-------------|
| `billing` | github_com_fiskil_energy_v2_internal_http_handler_energy.Billing[] |  |
| `links` | httputil.Links |  |

**400:** Bad Request

| Field | Type | Description |
|-------|------|-------------|
| `id` | string |  |
| `message` | string |  |
| `name` | string |  |

**500:** Internal Server Error

| Field | Type | Description |
|-------|------|-------------|
| `id` | string |  |
| `message` | string |  |
| `name` | string |  |

### Example Request
```bash
curl -X GET "https://api.fiskil.com/v1/energy/billing" \
  -H "Authorization: Bearer YOUR_TOKEN"
```