Get the primary chart series

View as Markdown

Program-aware chart payload over an inclusive local-day range (from/to, YYYY-MM-DD, Europe/Madrid days). Cashback programs return a zero-filled daily revenue series plus the range total; stamps programs return the fixed five visit-frequency buckets (lifetime — the range is ignored for stamps). Switch on the programType discriminator.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

fromstringRequired

Inclusive range start, local day (Europe/Madrid), YYYY-MM-DD.

tostringRequired

Inclusive range end, local day (Europe/Madrid), YYYY-MM-DD.

Response

Program-aware chart payload — switch on programType.

cashbackobject
OR
stampsobject

Errors

400
Bad Request Error
401
Unauthorized Error
429
Too Many Requests Error
503
Service Unavailable Error