Loyalty
Get campaign stats
Aggregated outcome of a campaign once it has started sending: a per-status delivery tally (sent, failed, excluded by frequency cap or opt-out) and a revenue-free conversion proxy (recipients notified, recipients who then visited within the conversion window, and the resulting rate). Computed live from the per-recipient deliveries and visits, so the figures keep moving until the conversion window closes; the campaign is then transitioned to finished by an hourly sweeper (so up to ~1h after the window ends). All zero for a campaign that has not started sending.
get/v1/loyalty/campaigns/{id}/stats
Request
- Base URL: https://api.prod.keyban.io
- URL: https://api.prod.keyban.io/v1/loyalty/campaigns/{id}/stats
- Auth: API key in header X-Api-Key
Path parameters
idstring uuid required
Campaign ID
Response
Campaign stats computed successfully
Example response
{
"sent": 142,
"failed": 3,
"excludedFrequencyCap": 12,
"excludedOptOut": 8,
"excludedNoCard": 5,
"notified": 138,
"activated": 21,
"conversionRate": 0.152,
"revenueCents": 125900,
"currency": "EUR"
}Changes
No recorded changes to this operation across all 1 revision of this API.