This demo uses Next.js with Server Actions. API calls run server-side — no credentials are exposed to the browser.
Look up gift cards by last 4 characters only. Works on all Shopify plans but does not verify email ownership — do not use in production.
Look up a gift card by email and last 4 characters. Verifies email ownership via the Customer API — requires Shopify Advanced or Plus.
Fetch all gift cards associated with an email. Requires Shopify Advanced or Plus — will not work on standard plans.