Discounts

Discounts — usage and sales driven, by method, kind, value type and purchase type.

13 fields — 10 dimensions, 3 metrics. Date clauses (SINCE, UNTIL, DURING) use createdAt.

The live, authoritative list is always GET /v1/datasets — this page is regenerated from the same catalog, but the endpoint reflects exactly what is deployed.

Query it

FROM discounts
  SHOW discount_count
  GROUP BY title
  SINCE -30d

See Querying with SoloQL for the language.

This dataset is queryable through SoloQL; it has no record-retrieval endpoint.

Fields

FieldTypeRoleDescription
titlestringdimensionDiscount title.
statusstringdimensionDiscount status (active, expired, scheduled).
discount_methodstringdimensionHow the discount is applied (code or automatic).
discount_kindstringdimensionKind of discount (basic, bxgy, free shipping, app).
value_typestringdimensionHow the value is expressed (percentage or fixed amount).
purchase_typestringdimensionOne-time, subscription, or both.
starts_atdatedimensionWhen the discount becomes active.
ends_atdatedimensionWhen the discount expires.
created_atdatedimensionWhen the discount was created.
discount_countnumbermetricNumber of discounts in the group (document count — value_count on createdAt). Sums across stores.
usage_countnumbermetricNumber of times the discount has been used.
total_salesmoneymetricTotal sales driven by the discount.
storestringdimensionThe shop the record belongs to. Filter with WHERE store IN ('Shop name') or GROUP BY store.