Cianbox API Castellano Request an API key

Product categories

The tree of categories you classify your catalogue with. It exists to translate the id_categoria the product catalogue returns.

GET /v1/{cuenta}/categorias is Cianbox's listing: the whole category tree, from the lowest id to the highest, paginated by cursor, up to 1000 per page, with each one's product count. To find one by name there is /busquedas/categorias. The full content —its active products and its sales over the last 30 days— is fetched by id: it is Cianbox's document, and GET /categorias/{id} returns exactly the same thing as GET /documentos/categoria/{id}.

Example

curl -H "X-API-Key: YOUR_KEY" \
  "https://api.cianbox.uno/v1/YOUR_ACCOUNT/categorias?limite=2"
{
  "status": "ok", "module": "reporte:listado_categorias", "count": 3, "units_charged": 2,
  "body": {
    "listado_categorias": {
      "parametros": {"incluir_no_vigentes": false, "limite": 2, "cursor": null},
      "cantidad": 172,
      "categorias": [
        {"id": 7, "nombre": "Phones", "estado": "vigente", "cantidad_productos": 412},
        {"id": 10, "nombre": "Other", "estado": "vigente", "cantidad_productos": 0}
      ],
      "paginacion": {"limite": 2, "siguiente_cursor": "10", "hay_mas": true}
    }
  }
}

What each row carries

Field What it is
id The id
nombre The name
estado "vigente" or "no_vigente"
cantidad_productos Active products, not counting variants (a product with sizes and colours counts once); 0 if none

It is the same row as the search and as the document's header.

Filters and pagination

Parameter What it does
incluir_no_vigentes true to also bring the deactivated ones (by default, only active ones)
limite Rows per page: 200 by default, up to 1000
cursor The previous page's paginacion.siguiente_cursor (the last id); null when there is nothing more

cantidad (the size of the whole set) comes only on the first page; on the following ones it is null. Any other parameter is 400 filtro_invalido.

How it is charged

For the rows on the page, plus 1 for cantidad on the first page, with the weight of the categorias resource. The product count is not charged separately. It needs the same permission as before (categorias, in the products group).

Change on 2026-10-01: if you integrated against the previous listing

Until 2026-10-01 this listing had the generic contract (limit, page, buscar, orden, vigente, id). It is now Cianbox's listing:

The full document

.../categorias/7

Same shape as brands: productos (active count, variants, and how many have stock) and ventas (units and net amount over the last 30 days, with credit notes subtracted, and the 10 best-selling products). ventas does not come back if your key cannot read the ventas resource.

By default the net is unified in your main currency (neto_por_moneda carries a single entry, converted with each sale's own exchange rate) and conversion comes back with the summary; with ?separar_por_moneda=true you get it by currency, unconverted, and conversion is null — see the full example in brands. As with brands, the net already discounts the share of the sale discounts that falls on the category's products (descuentos_prorrateados in each neto_por_moneda entry).

Important change if you used the old catalogue

Until 2026-09-28, /categorias also returned id_superior, categoria_superior, codigo, and — with the costs permission — margen (the multiplier that builds the sale price from cost). Cianbox does not include any of those four in the category document, so they are no longer available through any path in this API:

This is not a documentation delay: it is a decision about what this document shows, made by Cianbox (confirmed: margen is left out on purpose, since it is price-formation information, and id_superior/codigo are not planned for this document).

Things worth knowing

Deactivated ones come only if you ask (?incluir_no_vigentes=true), for example to translate the id_categoria of old products.

It does not accept dates: there is no date column (the document's sales always use the last 30 days).

Incremental sync

modificado_desde and modificado_hasta (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS, Cianbox time) return only what was modified in that range; with them, incluir_no_vigentes defaults to true, so deactivated records come with "estado": "no_vigente" (send incluir_no_vigentes=false to leave them out). Every row carries fecha_modificacion: store the highest one and ask for the next sync with modificado_desde set to it (it is included). Details: incremental sync.

.../categorias?modificado_desde=2026-10-07%2009:15:00&limite=1000

Reference

Generated from the API's own schema, so it always reflects the real state.

Available fields

cantidad_productosestadoidnombre

Can be filtered by

incluir_no_vigentesmodificado_desdemodificado_hasta

Can be sorted by

—

Use a hyphen and a direction: orden=fecha-desc, orden=id-asc. An orden the resource does not recognise — including the field:desc form, which belongs to raw tables — raises no error: you get the default order back. If the order matters, check the first row.

Text search looks at

—

Date field (for desde/hasta)

—

Limits

Own rate limityour plan's
Max range per query366 days
Max pagination depth50,000 skipped rows
Rows per pageup to 1000

Code examples

curl -H "X-API-Key: TU_KEY" \
  "https://api.cianbox.uno/v1/TU_CUENTA/categorias?limit=50"
import requests

r = requests.get(
    "https://api.cianbox.uno/v1/TU_CUENTA/categorias",
    headers={"X-API-Key": "TU_KEY"},
    params={"limit": 50},
    timeout=30,
)
r.raise_for_status()
for fila in r.json()["body"]:
    print(fila)
const r = await fetch(
  "https://api.cianbox.uno/v1/TU_CUENTA/categorias?limit=50",
  { headers: { "X-API-Key": "TU_KEY" } }
);
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const { body } = await r.json();
console.log(body);