# Read the billing history

The workspace's recent Stripe invoices: date, amount in minor units, currency, status and a link to the hosted invoice page. A workspace that has never paid answers an empty list rather than a refusal. Needs the deployment's Stripe key; without one it answers 503 leading with `billing_unconfigured`.

Access class: `workspace`.

## Endpoint

`GET /v1/billing/invoices`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": [
    {
      "AmountMinor": 1.5,
      "At": "string",
      "Currency": "string",
      "ID": "string",
      "Status": "string",
      "URL": "string"
    }
  ]
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
