Hey thanks for the reply but I don’t think it would do the trick since the the gift card won’t be consumed/redeemed and the customer could keep using it as payment instrument for future orders.
Topic summary
A developer is building a React Native app for an existing Shopify storefront and needs to handle gift card redemption outside the standard web checkout. They’re creating orders via the Admin API after processing Stripe payments but can’t figure out how to apply gift cards programmatically.
Initial Response:
The Admin API doesn’t natively support gift card redemption outside Shopify’s checkout. A suggested workaround involves creating discount codes equivalent to the gift card amount using price rules and discount codes endpoints.
Key Limitation:
This workaround doesn’t actually consume/redeem the gift card balance, meaning customers could still use it for future orders.
Working Solution:
Another user confirms they successfully handle this by:
- Using the
gift_cards/adjustments.jsonAPI (requires knowing the gift card’s Shopify ID) - Creating external transactions via the
orders/transactions.jsonAPI - This approach allows retroactive gift card application—customers who forget to apply cards at checkout can later have them applied with a refund on their original payment
- The same adjustment API can also add funds to existing gift cards