---
title: "Products numbers"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Products numbers

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="get">GET</span>
<code class="cvo-op-path-code">/v1/insights/products</code>
</div>
</div>

What was sold or bought, by product, from the lines of each invoice, by invoice date over 7, 30 or 90 days ending on the company's today. One currency at a time. A product is the seller's item id, else its GTIN, else its name. Only the newest version of each invoice counts, and a credit note counts as minus. Rejected invoices, pro formas and suspected duplicates not kept are left out and counted in `left`. Invoice-level allowances and charges are totals of their own, never added into the lines. Every amount and quantity is a decimal string. The numbers are cipher's and the API passes cipher's status and body on unchanged. Cipher's own refusals have the shape `{detail: {code, message}}`.

## Query parameters

## Status codes

| Status | Meaning |
|---|---|
| `200` | `{basis, currencies, currency, totals, left, products, more}`. `basis` names the date, the window, the time zone, the side and the definition's version and date. `products` lists the hundred largest; `more` says how many are not listed. |
| `400` | Cipher's answer: the window, side or currency is not one it takes (`bad_window`, `bad_side`, `bad_currency`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `403` | Cipher's answer: the company has not switched the insights add-on on (`addon_off`). |
| `503` | Cipher or its database could not answer (`insights_unavailable`). Invoicing is not affected. |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/products-numbers/index.mdx
