Skip to main content
GET
Resumen de ventas de un período
Returns the same report as Ventas › Summary in the portal, for one period. It is built for analysis: one call answers what was sold, when, and how it was paid. Every amount is the net sale — the total charged minus the tip — of completed sales. A sale’s net is spread over its lines by subtotal, so sale-level discounts land on the lines they cover and the three kinds add up exactly to the period’s net sales.

Endpoint

Required scope

ecommerce:sales:read

Headers

Query parameters

Example request

Response

200 OK

400 Bad Request

A missing or malformed from / to, from after to, a malformed branch_id, or an unknown time zone.

401 Unauthorized

Missing, invalid, revoked, or expired token.

403 Forbidden

The token does not have the ecommerce:sales:read scope.

502 Bad Gateway

ECOMMERCE_UPSTREAM_ERROR — the ecommerce service could not answer.

Operational notes

  • Amounts are integers in the currency’s minor unit. Kinds are rounded one by one, so their sum can differ from the net sales by a unit.
  • Cancelled, internal and report-excluded sales are left out, the same rule as the portal’s sales reports.
  • Payment methods are codes (cash, debit, a tenant’s own method code…). They include the tip, so they add up to the total charged, not to the net.
  • For the list of the sales behind these figures use GET /v1/ecommerce/sales with the same dates.

Authorizations

Authorization
string
header
required

Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.

Query Parameters

from
string
required

Primer día del período (YYYY-MM-DD)

Example:

"2026-11-01"

to
string
required

Último día del período, inclusive (YYYY-MM-DD)

Example:

"2026-11-30"

branch_id
string

Sucursal, o varias separadas por coma. Sin ella, todas

timezone
string

Zona horaria IANA con la que se cortan los días

Example:

"America/Santiago"

Response

200 - application/json
from
string
required
to
string
required
previous
object
required
kinds
object[]
required
daily
object[]
required
top
object
required
weeks
object[]
required

Últimas 8 semanas, de lunes a domingo

weekdays
object[]
required
payments
object[]
required
channels
object
required