List Campaign Attributions
Campaigns a sale is attributed to. Answers both directions: filter by order for
"which campaigns is this sale attributed to", or by campaign for "which sales did
this campaign generate".
A sale is attributed to a campaign in two ways: the customer redeemed balance from
it (cashback, point, coupon), or the customer received a message from it and
bought within the attribution window (notification). A campaign that rewarded the
sale is not an attribution — the reward is a consequence of the sale, not its cause.
The same sale may be attributed to the same campaign through more than one origin, and through more than one redeemed card. Each is a separate row. Count distinct orders, not rows, to measure conversion.
This mirrors customerCampaignAttribution in loyalty, which is the authoritative
record — the redemption attribution is written by a database trigger when the redemption
is confirmed. Rows arrive here right after that, through a call from loyalty.
Try-it values populated from environment ACME (Demo)
Authentication
Token
Send your user token in the x-guper-authorization header.