# Redeem Shopify gift cards in PiGi

When your Shopify store is linked to PiGi, gift cards sold in Shopify can pay for PiGi bookings. Type the gift card code into PiGi's gift voucher lookup or the booking wizard's gift voucher box; PiGi checks the balance with Shopify, uses the whole balance on the booking and marks the card as spent in Shopify.

Source: https://help.pigi.io/guides/integrations/website/shopify-gift-cards

## Quick answers

**Can customers use a Shopify gift card to pay for a PiGi booking?**
Yes, once your Shopify store is linked to PiGi with the PiGi Booking app. The customer
types the gift card code into the booking wizard's **Gift voucher code** box and clicks
**Use voucher**, or your staff type it into PiGi's gift voucher lookup.

**How do I redeem a Shopify gift card at the desk?**
Open **Shop → Gift Vouchers**, click **Redeem a code**, choose **Type the code**,
enter the full gift card code and click **Check**. PiGi shows "From your Shopify store ·
ending XXXX" with the card's balance. Link it to a booking and click **Apply to booking**.

**What happens to the gift card in Shopify?**
PiGi uses the card's whole balance and records a debit on the card in Shopify, with the
note "PiGi booking" and the booking reference. The card then shows a zero balance in
Shopify.

**What if the gift card is worth more than the booking?**
PiGi takes the whole balance from the Shopify card. Whatever the booking does not use
stays on PiGi's copy of the voucher, not on the Shopify card.

**Why doesn't PiGi show who bought the gift card?**
PiGi does not read customer or order details from Shopify. A Shopify gift card is
checked by its code alone, so the lookup shows only the last four characters and the
balance.

**Do I have to set anything up for Shopify gift cards?**
Link the store with the PiGi Booking app and approve the gift card permissions when
Shopify asks. There is nothing to switch on in PiGi.

**The code isn't recognised.**
Enter the whole code from the gift card. Spaces and hyphens are fine; the last four
characters on their own are not enough.

## What this is

Shopify sells gift cards through its own checkout. When the store is linked to PiGi,
those gift cards can pay for PiGi bookings the same way PiGi gift vouchers and WordPress
website vouchers do. PiGi asks the store for the card's balance when a code is checked
and charges the card when the voucher is applied to a booking.

## Before you start

- The store is linked to PiGi. See [Add PiGi booking to your Shopify store](shopify.md).
- The app's gift card permissions are approved in Shopify. If the app asks to update its
  permissions, open **Apps → PiGi Booking** and approve.
- Gift cards are set up in Shopify under **Products → Gift cards** — either **Create gift
  card** for a single card or **Add gift card product** to sell them in the store.

## Redeem at the desk

1. In PiGi, open **Shop → Gift Vouchers** and click **Redeem a code**, or open the
   booking and use its gift voucher option.
2. Choose **Type the code**, enter the full Shopify gift card code and click **Check**.
3. Under **Is this the right voucher?**, check the line "From your Shopify store · ending
   XXXX" and the balance, then click **Continue**.
4. Under **Link it to a booking?**, enter the booking and click **Apply to booking**.
5. PiGi shows **Voucher redeemed!** and the card's balance drops to zero in Shopify.

## Redeem on the booking page

1. On the booking wizard, the customer enters the full code in **Gift voucher code** and
   clicks **Use voucher**.
2. The voucher's value comes off the booking. The card is charged in Shopify when the
   booking is made.

## Known limitations

- The whole balance is taken from the Shopify card in one go; any leftover value is held
  in PiGi.
- The buyer and recipient of a Shopify gift card are not shown in PiGi.
- A gift card in a different currency from the booking can't be used: "That gift card is
  in a different currency from this booking."
- If the store can't be reached, PiGi shows "Couldn't reach the Shopify store to check
  that gift card — try again."
- Gift cards only work on stores that are still linked and have the app installed.

## Related

- [Add PiGi booking to your Shopify store](shopify.md)
- [Gift vouchers and QR codes](../operations/vouchers-and-qr.md)
