> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.kota.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.kota.io/_mcp/server.

# List invoices

GET https://test.api.kota.io/invoices

Returns a list of invoices, most recent invoice date first.

**Beta:** available to selected customers. Contact your Kota account manager for access.

Reference: https://docs.kota.io/api-reference/invoices/list-invoices

## Authentication

- `Authorization` header (bearer token, required) — Authorization header using the Bearer scheme

## Servers

- `https://test.api.kota.io` (test, default)
- `https://api.kota.io` (production)

## Request

### Query parameters

- `provider_id` (string, optional) — Filter by provider. Prefixed with `pr_`.
- `employer_id` (string, optional) — Filter by employer. Prefixed with `er_`.
- `invoice_number` (string, optional) — Filter by invoice number (case-insensitive, partial match).
- `from_date` (date, optional) — Only invoices dated on or after this date.
- `to_date` (date, optional) — Only invoices dated on or before this date.
- `page` (integer, optional) — The page of results to return. Defaults to 1 if not provided.
- `page_size` (integer, optional) — The number of results to return per page. Defaults to 10 if not provided. Maximum value is 100.

### Headers

- `X-Platform-Id` (string, optional) — The target platform id. Required only when calling with a dashboard (WorkOS AuthKit) access token instead of a platform API key — the token carries no platform claim, so the caller must say which platform it means. Ignored for platform API key / embed session token callers.

## Response

### 200

OK

- `items` (list of Invoice, required) — A paginated array containing the response elements
- `page` (integer, required) — The current page of the results
- `page_size` (integer, required) — The number of results on this page. This can be different from the requested page size if the total number of results is less than the requested page size
- `total_count` (integer, required) — The total number of elements available in the response. This is the total number of elements available across all pages, not just the current page.
- `has_next_page` (boolean, optional) — Whether there are more pages available after this page
- `has_previous_page` (boolean, optional) — Whether there are more pages available before this page

## Errors

### 400 Bad Request Error

Bad Request

- `type` (string, optional, nullable)
- `title` (string, optional, nullable)
- `status` (integer, optional, nullable)
- `detail` (string, optional, nullable)
- `instance` (string, optional, nullable)
- `errors` (map from string to list of string, optional)

## Types

### Invoice

An invoice received from a provider.

- `id` (string, required) — Unique identifier for the invoice. Prefixed with `inv_`.
- `provider_id` (string, required) — The provider that issued the invoice. Prefixed with `pr_`.
- `employer_ids` (list of string, required) — The employers this invoice is linked to. Prefixed with `er_`.
- `invoice_date` (date, required) — The date the invoice was issued.
- `currency` (string, required) — ISO 4217 currency code.
- `total_gross` (double, required) — Total gross amount of the invoice (net plus tax).
- `documents` (list of InvoiceDocument, required) — The original documents issued by the provider for this invoice, such as the invoice itself and its itemised detail.
- `object` (string, optional) — The object type. Always `invoice`.
- `invoice_number` (string, optional, nullable) — The provider's invoice reference, where the provider issues one.
- `total_tax` (double, optional, nullable) — Total tax on the invoice.

### InvoiceDocument

An original document issued by the provider for an invoice.

- `type` (enum, required) — The kind of document.
  - Allowed values: `invoice_summary`, `invoice_detail`, `payroll_report`
- `file_id` (string, required) — The file holding the document's bytes. Prefixed with `file_`.
- `content_type` (string, required) — The document's MIME type.
- `part_number` (integer, optional, nullable) — For a document split across several files, this file's 1-based position.
- `part_count` (integer, optional, nullable) — For a document split across several files, the total number of parts.

## Examples

**Response**

```json
{
  "items": [
    {
      "id": "inv_ea4c9abd28cd496c98ecce467b6c46bc",
      "provider_id": "pr_allianz",
      "employer_ids": [
        "er_91716027ace2428dacaf1727263ab09c"
      ],
      "invoice_date": "2026-10-01",
      "currency": "EUR",
      "total_gross": 250,
      "documents": [
        {
          "type": "invoice_summary",
          "file_id": "file_b8237a41ba3646d3a8541a06b08876a0",
          "content_type": "application/pdf",
          "part_number": null,
          "part_count": null
        },
        {
          "type": "invoice_detail",
          "file_id": "file_df1f998fced441b98051adc6cb854c9e",
          "content_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
          "part_number": null,
          "part_count": null
        }
      ],
      "object": "invoice",
      "invoice_number": "INV-2026-0012",
      "total_tax": 10
    },
    {
      "id": "inv_aef848b9fdd840a8b9b8546da7c4f564",
      "provider_id": "pr_allianz",
      "employer_ids": [
        "er_91716027ace2428dacaf1727263ab09c"
      ],
      "invoice_date": "2026-09-01",
      "currency": "EUR",
      "total_gross": 250,
      "documents": [
        {
          "type": "invoice_summary",
          "file_id": "file_bc066ea797ee463c8437f7638f122d60",
          "content_type": "application/pdf",
          "part_number": null,
          "part_count": null
        }
      ],
      "object": "invoice",
      "invoice_number": "INV-2026-0011",
      "total_tax": 10
    }
  ],
  "page": 1,
  "page_size": 20,
  "total_count": 2,
  "has_next_page": false,
  "has_previous_page": false
}
```

**SDK Code**

```python Invoices
import requests

url = "https://test.api.kota.io/invoices"

querystring = {"employer_id":"er_3b1333d87d9d4fd6ad83ba7f6b0e951a","provider_id":"pr_allianz"}

headers = {"Authorization": "Bearer <apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Invoices
const url = 'https://test.api.kota.io/invoices?employer_id=er_3b1333d87d9d4fd6ad83ba7f6b0e951a&provider_id=pr_allianz';
const options = {method: 'GET', headers: {Authorization: 'Bearer <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Invoices
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://test.api.kota.io/invoices?employer_id=er_3b1333d87d9d4fd6ad83ba7f6b0e951a&provider_id=pr_allianz"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Invoices
require 'uri'
require 'net/http'

url = URI("https://test.api.kota.io/invoices?employer_id=er_3b1333d87d9d4fd6ad83ba7f6b0e951a&provider_id=pr_allianz")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <apiKey>'

response = http.request(request)
puts response.read_body
```

```java Invoices
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://test.api.kota.io/invoices?employer_id=er_3b1333d87d9d4fd6ad83ba7f6b0e951a&provider_id=pr_allianz")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

```php Invoices
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://test.api.kota.io/invoices?employer_id=er_3b1333d87d9d4fd6ad83ba7f6b0e951a&provider_id=pr_allianz', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Invoices
using RestSharp;

var client = new RestClient("https://test.api.kota.io/invoices?employer_id=er_3b1333d87d9d4fd6ad83ba7f6b0e951a&provider_id=pr_allianz");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Invoices
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://test.api.kota.io/invoices?employer_id=er_3b1333d87d9d4fd6ad83ba7f6b0e951a&provider_id=pr_allianz")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```