Full documents
A document or a record card, whole, in a single call, shaped to be read as
is: full number (Factura A 0001-00001234), issuer, customer or supplier with
the tax id formatted, line items with combos nested, related documents,
delivery and collection status. It works the same for showing it on screen as
for handing it to an AI.
The format is defined by Cianbox, so it is the same across all its integrations.
curl -H "X-API-Key: YOUR_KEY" \
"https://api.cianbox.uno/v1/YOUR_ACCOUNT/documentos/venta/48210"
{
"status": "ok",
"account": "YOUR_ACCOUNT",
"module": "documento:venta",
"id": "48210",
"units_charged": 4,
"body": {
"venta": {
"id": 48210,
"estado": "vigente",
"comprobante": {
"tipo": "Factura", "letra": "A", "punto_venta": 1, "numero": 1234,
"numero_completo": "Factura A 0001-00001234"
},
"cliente": {"id": 42, "nombre": "Ferretería López S.R.L.", "cuit": "30-12345678-9"},
"items": ["..."]
}
}
}
Available types
| Type | What it is | Requires resources | Hidden without permission |
|---|---|---|---|
venta |
Invoice, credit or debit note | ventas |
collection status (ctacte + ctacte_clientes), cost of each item (costos) |
cobro |
Collection receipt | cobros |
type, allocations, summary and customer balance (ctacte + ctacte_clientes + ventas) |
compra |
Purchase document | compras |
payment status (ctacte), amounts of each item (costos) |
pago |
Supplier payment | proveedores, compras |
type, allocations, summary and supplier balance (ctacte) |
plan_pago |
Purchase payment plan: a supplier that finances (a card, a bank) takes on debts with other suppliers and is repaid in installments. It brings the debts it cancelled and each installment, with its invoice (principal and financing costs) | proveedores, compras |
plan status, cancelled debts, and each installment's status, paid amount, balance, payments and refinancing, and from the summary what was paid, what is pending and the due dates (ctacte; the number of installments, those without an invoice, the total and the costs are open) |
presupuesto |
Quote | presupuestos |
discount of each item (costos) |
pedido |
Sales order | pedidos |
— |
service |
Repair (service) order | services |
— |
orden_compra |
Purchase order | compras |
amounts of each item (costos) |
remito_venta |
Delivery note (sales) | ventas, stock |
cost of each item (costos) |
remito_compra |
Delivery note (purchases) | compras, stock |
cost of each item (costos) |
remito_interno |
Stock transfer between branches | stock |
— (no cost or price) |
cliente |
Customer card | clientes |
current account and discount (ctacte + ctacte_clientes) |
proveedor |
Supplier card | proveedores |
current account (ctacte) |
producto |
Product card | productos |
cost (costos) |
abono |
Recurring billing definition for a customer (subscription) | abonos |
periods already billed, with the sale (ventas) |
asiento |
Accounting journal entry, with its lines | asientos |
— |
valor |
A cheque or valor (physical or electronic), with its status and its trail | valores |
— |
movimiento_bancario |
A movement of one of the company's bank accounts | movimientos_bancarios |
— |
numero_serie |
A product's serial number, with its stock trail | stock |
unit cost (costos) |
venta_mercadolibre |
A MercadoLibre order, with its buyer, shipment and the sale that invoices it | ml_ventas |
ML's commission and the shipping cost you're charged (costos) |
pack_mercadolibre |
A MercadoLibre pack (cart): all its orders together. The id is the pack number, text, not a Cianbox number — fetch it as /documentos/pack_mercadolibre/{pack_number} |
ml_ventas |
each order's ML commission and the shipping cost you're charged (costos) |
marca |
A brand's document: its active products and its sales over the last 30 days | productos |
sales for the period (ventas) |
categoria |
A category's document: its active products and its sales over the last 30 days | productos |
sales for the period (ventas) |
Delivery notes (sales, purchase and transfers) and purchase orders are walked
through with their lists (in reports, "Delivery notes and purchase orders").
The purchase order's resumen adds pendiente_de_recibir: the order is open
(its status doesn't close it) and some item still has a pending quantity. A
closed order with a balance isn't fulfilled (esta_cumplida: false), but it
isn't pending either.
Permissions: never more than you can already read
A document is not a side door: it only shows what your key could read through the resources.
- Your key must be able to read all the resources in the "Requires
resources" column. If one is missing, the response is
403. - The sections in the last column are not included —the key is simply not in the JSON— if your key lacks the listed permission. The rest of the document comes out the same.
So before reading an optional section, check that it exists:
body.venta.get("estado_cobranza"), not body.venta["estado_cobranza"].
How it is billed
Like any detail call: the weight of the most expensive resource it
requires, plus one block per 500 rows read (the header, each item, each
related document). A regular document fits in a single block. Usage shows up
in your report as documento:<type>.
Errors
| Code | When |
|---|---|
404 |
The type does not exist, the id is not a number, or there is no record with that id. For a document, the 404 carries motivo (eliminado, inexistente or no_disponible) and a mensaje: see errors |
403 |
Your key lacks one of the resources the document requires |
401 |
The key is missing or invalid |
A voided document is not an error: it comes with estado: "anulado". For
sales, collections and payments it also comes with amounts at 0 and no items
or allocations.
List, then open
For sales, collections, payments, purchases, quotes, orders, customers,
suppliers, products, repair orders, subscriptions, journal entries, checks,
bank transactions and MercadoLibre orders, the list endpoint (/ventas,
/clientes, /abonos, /ml_ventas, …) is Cianbox's listing: its own
filters, cursor pagination, and each row using the same names as the
document's header (for services, abonos, asientos, valores,
movimientos_bancarios and ml_ventas, the whole header without its
collections). The full content is fetched by id, and the detail of those
resources is the document: /ventas/48210 returns the same as
/documentos/venta/48210 (and /abonos/62, the same as
/documentos/abono/62).
# 1. find: March sales
.../ventas?fecha_desde=2026-03-01&fecha_hasta=2026-03-31
# 2. open: the full sale
.../ventas/48210
/ventas/{id}/documento and /cobros/{id}/documento, the previous routes,
keep working and return the same.
Product prices (record)
In the product record (GET /productos/{id}), each price in precios
brings, besides neto and final as stored: redondeo,
porcentaje_descuento (the offer, General list only) and
en_moneda_principal {moneda, cotizacion, neto, final}: what a sale
charges today in the main currency, with today's exchange rate and the
list's rounding. The record adds oferta ({neto, moneda,
porcentaje_descuento} or null).