Skip to content
IvaSure add-ons and services for SureCart storesJoin the POD waitlist

API keys and webhooks

2 min read
Published
Category
Reference

Everything here is managed at IvaSure : Gift Cards : Connections : API. The REST namespace is ivasure/v1/gift-cards.

Routes

RouteFor
/cards/issueCreate a card.
/cards/lookupLook one up.
/cards/redeemRedeem a code.
/cards/{id}Read a single card.
/cards/{id}/voidVoid a card.
/campaignsList and create campaigns.
/campaigns/{id}/statusChange a campaign’s status.
/healthThe health and queue state.
/keys, /keys/{id}, /keys/{id}/rotateManage API keys.
/webhooks, /webhooks/{id}Manage webhooks.
/wallet-passesManage wallet passes.
/integrations/logsRead integration logs.
/products/searchFind gift card products.

API key scopes

ScopeGrants
gift_cards:readRead cards and their state, with codes masked.
gift_cards:read_piiRead recipient and purchaser detail as well.
gift_cards:writeIssue, 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

FieldPurpose
Name and Owner noteWho is using it and why. The note is what makes a key safe to revoke later.
Expires atWhen it stops working.
Rotation due atWhen it should be replaced, before it expires.
Rate limit and Rate windowHow many calls, over what period.
IP allowlistRestrict 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.

Save to list