Cianbox API Castellano Request an API key

Getting started

A read-only REST API over your Cianbox account data. Built for Power BI, dashboards, integrations and AI agents.

Shortcut: download the Postman collection with every endpoint, filter and expected error already set up. Import it, fill in cuenta and api_key in the collection variables, and you are querying in a minute. It is generated from the API's own schema, so it is never stale.

Your first request

curl -H "X-API-Key: YOUR_KEY" \
  "https://api.cianbox.uno/v1/YOUR_ACCOUNT/productos?limite=5"

YOUR_ACCOUNT is the name of your Cianbox account (for example, youraccount). If you don't know it, we send it along with the key.

What you can query

curl -H "X-API-Key: YOUR_KEY" \
  "https://api.cianbox.uno/v1/YOUR_ACCOUNT/recursos"

This returns exactly the resources your key is allowed to read, with their fields, filters and limits. If you signed up for stock and prices, purchases and payroll will not show up: the limit is enforced server-side, it does not depend on your code behaving well.

There are three things to query today:

The full catalogue, with a page per resource, is in what you can query.

Before you pull 40,000 rows: look at the reports

Almost every business question ("what sells most", "who hasn't bought in three months", "which category earns the most") is already solved as a report. They return the result already computed, in a single query: pulling a year of sales to add them up on your side costs far more than asking for the report.

# best-selling products of the period
curl -H "X-API-Key: YOUR_KEY"   "https://api.cianbox.uno/v1/YOUR_ACCOUNT/reportes/productos-vendidos?agrupar_por=producto&fecha_desde=2026-01-01&fecha_hasta=2026-08-31"

# sales by month
curl -H "X-API-Key: YOUR_KEY"   "https://api.cianbox.uno/v1/YOUR_ACCOUNT/reportes/ventas-agrupadas?agrupar_por=mes&fecha_desde=2026-01-01&fecha_hasta=2026-08-31"

The small catalogues (price lists, branches, zones, customer categories, order statuses, seasons) come in GET /v1/{account}/contexto, which is free. Each report is detailed in reports.

The endpoints

Method Path What it does
GET /v1/{account}/recursos Which resources you can query
GET /v1/{account}/{resource} Paginated list
GET /v1/{account}/{resource}/schema Fields, filters, sorting, search and limits
GET /v1/{account}/{resource}/{id} One record with its nested lines
GET /v1/{account}/contexto Company, small catalogues (price lists, zones, order statuses…) and the account's modules. Free
GET /v1/{account}/reportes/{report} A report already computed: ventas-agrupadas, compras-agrupadas, cobros-agrupados, pagos-agrupados, productos-vendidos, existencias, stock-a-reponer, clientes-sin-compras, antiguedad-saldos, tiempos-service, saldos-caja, saldos-bancos, cupones-a-acreditar…
GET /v1/{account}/reportes/cuenta-corriente-cliente/{id} A customer's account statement (and cuenta-corriente-proveedor/{id} for a supplier)
GET /v1/{account}/tablas/{table} One raw table, exactly as stored

Everything is a GET: there is no way to write to your data from here, not even with the wrong key.

List parameters

Parameter Example What it does
limit limit=100 Rows per page (capped per resource)
page page=2 Page, starts at 1
orden orden=fecha-desc Sort (key-asc / key-desc)
buscar buscar=ADATA Text search
desde / hasta desde=2026-01-01&hasta=2026-01-31 Date range
<field> id_cliente=42 Filter by equality
campos campos=id,producto Raw tables only. Return just these fields

What each resource accepts is listed in its /schema, and also on that resource's page in this portal. Parameter names stay in Spanish — they are part of the API contract, so translating them would break every integration.

Five things about parameters worth knowing up front:

Response shape

For ?limit=50&page=1 on a resource with the generic contract (ventas, compras, cobros, pagos, presupuestos, pedidos, productos, clientes, proveedores, services, abonos, asientos, valores, movimientos_bancarios, ml_ventas, marcas and categorias are Cianbox listings with limite and cursor: see their pages):

{
  "status": "ok",
  "account": "youraccount",
  "module": "marcas",
  "page": 1,
  "limit": 50,
  "count": 50,
  "has_more": true,
  "available_fields": ["id", "producto", "descripcion"],
  "units_charged": 3,
  "body": [ { "id": 1, "producto": "..." } ]
}

To page safely, always send an explicit limit and keep asking for pages while count equals the resource's effective limit.

Data comes from a replica, so it lags slightly behind. This is not a live transactional view, and that is deliberate: reading from the replica is what lets you query without weighing on your business's day-to-day operation.

When something fails

A resource your key hasn't signed up for — and a misspelled resource name too — returns 403, not 404. So if /v1/your_account/vantas gives you a 403, check the spelling before asking us to widen the plan. Every code is listed in errors.

Also worth knowing

Before you write the integration

Read billing and limits — there are caps on date ranges and pagination depth per resource, and it is better to plan for them than to discover them with a 400 in production.