This demo uses Next.js with Server Actions. API calls run server-side — no credentials are exposed to the browser.
Look up by last 4 characters only. Does NOT verify ownership — for development only.
Fetch all gift cards for a logged-in customer. Secure and works on all Shopify plans.
Look up by email + last 4 characters. Verifies email ownership via Customer API.
Fetch all gift cards associated with an email address.