# Display the reward before counting the sats

The current public `AgentStore` schema has three reward types. A percentage offer is conditional cashback. A fixed-sat amount represents the highest tier; the store description may explain other tiers. A discount-code offer gives an immediate checkout discount and earns no satsback.

This original, offline JavaScript sample turns synthetic catalogue entries into plain display labels. It rejects unknown or malformed reward types instead of silently counting them as cashback. None of these catalogue entries is a payment, so the sample records zero settled revenue.

Run the five fixture checks with `node --test reward-display.test.mjs`. The example makes no network requests, registers no account, generates no tracked links and performs no purchase or payout. It has not been tested against an authenticated Satsback account. It is an editorial integration sample, not a complete client or a replacement for merchant eligibility terms.

Source: https://satsback.com/api/openapi.json (`AgentStore`), checked October 3, 2026.
