# Get an invoice

> The PDF invoice of one month: the usage and the cost of each VM.

`GET /v1/tenants/{tenant}/invoices/{month}`

```bash curl
curl -X GET "https://api.shako.dev/v1/tenants/acme/invoices/2026-10" \
  -H "Authorization: Bearer $SHAKO_API_KEY"
```

```python Python
import os

import requests

response = requests.get(
    "https://api.shako.dev/v1/tenants/acme/invoices/2026-10",
    headers={"Authorization": f"Bearer {os.environ['SHAKO_API_KEY']}"},
)
response.raise_for_status()
print(response.json())
```

```javascript JavaScript
const response = await fetch("https://api.shako.dev/v1/tenants/acme/invoices/2026-10", {
  method: "GET",
  headers: { Authorization: `Bearer ${process.env.SHAKO_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
```

```json 200 (excerpt)
{
  "name": "shako-invoice-acme-2026-10.pdf",
  "total": "4.21",
  "pdf": "JVBERi0xLjQK..."
}
```

Authenticate with `Authorization: Bearer <API key>` on `https://api.shako.dev`. Role: owner.

## Path parameters

**tenant** `string` *required*

The tenant's name, from GET /v1/tenants.

**month** `string` *required*

The month, as YYYY-MM.

## Query parameters

**utc_offset** `integer, -840 to 840` (default: 0)

The clock of the days and the months, in minutes east of UTC, for example 60 for UTC+1.

## Response

200 with [the invoice object](https://shako.dev/api/objects/invoice-file.md).

The errors: https://shako.dev/api/errors.md. All the endpoints of Billing: https://shako.dev/api/billing.md.
