API keys and webhooks
Everything here is managed at IvaSure : Gift Cards : Connections : API. The REST namespace is ivasure/v1/gift-cards.
Routes
| Route | For |
|---|---|
/cards/issue | Create a card. |
/cards/lookup | Look one up. |
/cards/redeem | Redeem a code. |
/cards/{id} | Read a single card. |
/cards/{id}/void | Void a card. |
/campaigns | List and create campaigns. |
/campaigns/{id}/status | Change a campaign’s status. |
/health | The health and queue state. |
/keys, /keys/{id}, /keys/{id}/rotate | Manage API keys. |
/webhooks, /webhooks/{id} | Manage webhooks. |
/wallet-passes | Manage wallet passes. |
/integrations/logs | Read integration logs. |
/products/search | Find gift card products. |
API key scopes
| Scope | Grants |
|---|---|
gift_cards:read | Read cards and their state, with codes masked. |
gift_cards:read_pii | Read recipient and purchaser detail as well. |
gift_cards:write | Issue, redeem, void and modify. |
Grant read_pii separately and rarely
It is the difference between a key that can tell you a card exists and a key that can tell you who it was for. A reporting integration almost never needs it; a support tool sometimes does. Splitting them means a leaked reporting key does not leak your customers.
What a key carries
| Field | Purpose |
|---|---|
| Name and Owner note | Who is using it and why. The note is what makes a key safe to revoke later. |
| Expires at | When it stops working. |
| Rotation due at | When it should be replaced, before it expires. |
| Rate limit and Rate window | How many calls, over what period. |
| IP allowlist | Restrict it to known addresses. |
The owner note is the field people skip and later need
A key with no note is a key nobody dares revoke, because nobody remembers what breaks if they do. Record the integration and the person, not just the purpose.
Webhooks
A webhook takes a name, a URL, the events it subscribes to, and a secret used to sign deliveries.
- Verify the signature at your endpoint. An unverified webhook endpoint accepts anything anyone posts to it.
- Webhook Delivery Triage, on the same screen, shows what failed and why.
- External delivery mode depends on these. If gift card email is set to External, a webhook that stops being delivered means recipients stop being told.
Was this page helpful?
Thanks for your feedback.
There was a problem submitting your feedback. Please try again later.