---
title: "Retrieve organization billing (deprecated)"
method: POST
path: "/api/v1/organizations/{organizationID}/billing"
tags: ["Organization"]
deprecated: true
---

# Retrieve organization billing (deprecated)

`POST /api/v1/organizations/{organizationID}/billing`

> **Deprecated.**

In order to obtain an overview of the billed items, you can get basic billing statistics.

<Callout type="info">
This endpoint is deprecated in favor of billing stats for organization and may return inaccurate results.
</Callout>

<Callout type="info">
Please note that data are accurate starting on June 1st 2021.
</Callout>

## Request body

- object
  - `filter` object — Filters used for the computation of billed items counts.
    - `queues` string[] — Filter billed items for the specified queues to be counted to the report.
    - `begin_date` string, date — Filter billed items that was issued **since** the specified date.
    - `end_date` string, date — Filter billed items that was issued **up to** the specified date.
  - `group_by` string[] — List of attributes by which the `series` is to be grouped.

## Response `200`

OK

- object
  - `series` object[] — Series contain information grouped by fields defined in group_by. Only grouping by queue is allowed. The data are wrapped in values object, and accompanied by the values of attributes that were used for grouping.
    - `begin_date` string, date — Start date of the documents with billed items within the group.
    - `end_date` string, date — Final date of the documents with billed items within the group.
    - `queue` string, uri — Queue of billed pages or documents.
    - `values` object — Contains the data of totals list grouped by queue and date.
      - `header_fields_per_page` integer — Number of pages that were processed by Rossum AI Engine and where only header fields were supposed to be captured.
      - `header_fields_per_document` integer — Number of documents that were processed by Rossum AI Engine and where only header fields were supposed to be captured.
      - `header_fields_and_line_items_per_page` integer — Number of pages that were processed by Rossum AI Engine and where line item fields were supposed to be captured.
      - `header_fields_and_line_items_per_document` integer — Number of documents that were processed by Rossum AI Engine and where line item fields were supposed to be captured.
  - `totals` object — Summary information for the whole period (between begin_date and end_date).
    - `header_fields_per_page` integer — Number of pages that were processed by Rossum AI Engine and where only header fields were supposed to be captured.
    - `header_fields_per_document` integer — Number of documents that were processed by Rossum AI Engine and where only header fields were supposed to be captured.
    - `header_fields_and_line_items_per_page` integer — Number of pages that were processed by Rossum AI Engine and where line item fields were supposed to be captured.
    - `header_fields_and_line_items_per_document` integer — Number of documents that were processed by Rossum AI Engine and where line item fields were supposed to be captured.

## Other responses

- `400` — Invalid input data.
- `401` — The username/password is invalid or token is invalid (e.g. expired).
- `403` — Insufficient permission, missing authentication, invalid CSRF token and similar issue.
- `404` — The specified resource was not found.
- `409` — Conflict
- `413` — Payload too large (especially for files uploaded).
- `429` — Request rate is too high, wait before sending more requests. See [Rate Limiting](/guides/overview#rate-limiting) for more details.
- `500` — Server failure while processing the request.
- `502` — Invalid response from the upstream server.
- `503` — We're temporarily offline for maintenance. Please try again later.
- `504` — Upstream server could not complete the request in time.

---

[API](https://skmtc.dev/rossum/apis/rossum-api.md) · [All operations](https://skmtc.dev/rossum/apis/rossum-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rossum/rossum-api/revisions/dbbbbe8374e6/schema)
