How can shopify enable the API on my account for gift cards.
Hi @steviec499 ,
To create a new gift card, run the giftCardCreate mutation. The returned fields include the ID of the gift card (id), the redacted gift card code (maskedCode), the timestamp of when the gift card was created (createdAt), and the full gift card code (giftCardCode). In the following example, the initial value of the gift card is supplied as an input variable.
For ex:
mutation giftCardCreate($input: GiftCardCreateInput!) {
giftCardCreate(input: $input){
giftCard{
id
maskedCode
createdAt
}
giftCardCode
userErrors{
code
field
}
}
}
May this guide will help you much more: https://shopify.dev/api/examples/gift-cards
Or to make it easier, may our Joy Loyalty app from Avada will help you much more on creating code and give points for customers to redeem on it.
Hope it will help you.