Troubleshooting
The mistakes we see most, by what you get back. Every error has an error code, a message and a requestId; the errors page lists them all.
| You get | Usually because | Fix |
|---|---|---|
INVALID_API_KEY | The key is in Authorization, has a space or newline, was revoked, or is a test key on a live brand (or the reverse) | Send it as X-Api-Key, trimmed; create a key on the right brand |
BROWSER_NOT_ALLOWED | The call runs in a web page or an app, so the browser adds Origin | Call from your server only |
INVALID_JSON | A trailing comma, single quotes, or a string built by hand | Build the body with your language's JSON encoder |
VALIDATION_ERROR | A field is missing or has the wrong type: often Content-Type is not application/json (so the body is not read), or the amount is in euros | Send Content-Type: application/json; amount.value is an integer in cents: 24.50 EUR is 2450 |
REFERENCE_REUSED | Two different orders were sent with the same reference, or the retry changed the amount | Use your real order number; retry with the exact same body |
REWARD_NOT_READY | The card is not full | Redeem only when stamps.rewardReady is true |
POINTS_REQUIRED | A points brand got a redemption without points | Send points (a multiple of 100); read the brand with GET /v1/programme |
SUBSCRIPTION_INACTIVE | A live key wrote while the account has no running plan | Check Billing in the console; reads keep working |
DAILY_LIMIT | One customer got more than 10 stamps or 20 point earns in 24 h | Usually a loop or a shared customerRef: use one id per real customer |
| Two customers share one card | customerRef is not unique (an email that changed, a guest id reused) | Use your stable internal user id |
| Webhooks never arrive | The endpoint is disabled, not public HTTPS, redirects, or answers after 5 s | Check the delivery log in the console, then Send test event |
| Signature never matches | The body was parsed and re-encoded before hashing, or the secret is of another endpoint | Hash the raw bytes; each endpoint has its own secret |