---
title: "Get invoices for a customer"
method: GET
path: "/customers/{id}/files/invoices"
---

# Get invoices for a customer

`GET /customers/{id}/files/invoices`

## Request

- Base URL: `https://api.open-finance.ai/v3/loans`
- URL: `https://api.open-finance.ai/v3/loans/customers/{id}/files/invoices`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.open-finance.ai/oauth/token` scopes: `read:customers`

## Path parameters

- `id` string, required

## Query parameters

- `sort` 1 | -1
- `limit` integer
- `nextPage` string

## Response `200`

List of invoices

- object
  - `count` integer
  - `nextPage` string
  - `items` object[]
    - `id` string
    - `customerId` string
    - `reportBusinessId` string
    - `reportMonth` string: Report month in the format yyyy-mm
    - `fileId` string
    - `recordType` string
    - `vatFile` string
    - `vatName` string
    - `vatStatus` string
    - `vatLimits` string
    - `invoiceDate` string, date
    - `referenceGroup` string
    - `referenceNumber` string
    - `totalInvoiceVat` number, double
    - `sumInvoice` number, double
    - `supplierReferenceNum` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/open-finance/apis/loans.md) - [All operations](https://skmtc.dev/open-finance/apis/loans/llms.txt) - [OpenAPI document](https://skmtc.dev/open-finance/apis/loans/revisions/915c69e62042?raw)
