GET /v1/ecommerce/sales/summary
What sold in a period: services, products and other charges, day by day, best sellers, weekly trend, weekdays and payment methods.
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 malformedfrom / 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 theecommerce: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/saleswith the same dates.
Authorizations
Query Parameters
Resumen de ventas de un período