ou can achieve this automation by using Shopify webhooks and a Slack integration tool like Zapier. Here’s a high-level approach:
-
Check Shopify Webhooks: Shopify provides a webhook event for when a gift card is created. You need to subscribe to the gift_cards/create
webhook.
-
Set Up a Trigger in Zapier: Use the webhook as a trigger in your automation tool to capture the issued gift card details.
-
Send a Slack Notification: Once the webhook is triggered, format the gift card details and send a message to the Slack channel via a Slack API or built-in integration in Zapier.
Since your gift card is issued manually as store credit (not as a product), ensure that Shopify logs these actions in the admin panel and that the webhook captures them. If not, you might need a custom API call to track issued gift cards.
Hi @Hafiz_usama123,
Thank you very much for this lead. I have done some research regarding this:-
Currently, Shopify does not support specific webhook events for gift card creation or updates. Webhooks are available for a variety of other events such as orders, products, and customers, but not specifically for gift cards. If you need to track gift card activities, you might need to explore other methods such as using Shopify's API to periodically check for changes or updates related to gift cards.