---
title: "[Internal] Count received invoices by field values"
method: POST
path: "/api/received-invoices/count"
tags: ["Received invoices"]
---

# \[Internal\] Count received invoices by field values

`POST /api/received-invoices/count`

## Request

- Base URL: `https://api.typless.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.typless.com/api/received-invoices/count`
- Auth: none declared

## Request body

- FilterDocumentsRequest
  - `filters` FilterDTO[], required
    - `field_name` string, required
    - `operator` 'EQUALS' | 'NOT_EQUALS' | 'BEGINS_WITH' | 'LESS_THAN' | 'LESS_THAN_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_EQUALS' | 'BETWEEN' | 'IS_NULL' | 'IS_NOT_NULL' | 'MATCH_ANY' | 'MATCH_ALL' | 'IN' | 'NOT_IN', required
    - `values` string[], required
  - `filter_logic` 'AND' | 'OR'
  - `business_unit_id` string, uuid, nullable
  - `waiting_my_approval` boolean

## Response `200`

Successful Response

- CountDocumentsResponse
  - `count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/typless/apis/typless-api.md) · [All operations](https://skmtc.dev/typless/apis/typless-api/llms.txt) · [OpenAPI document](https://skmtc.dev/typless/apis/typless-api/revisions/d614787a47ef?raw)
