Skip to main content

Hello everyone,

 

Im trying to get a message sent to a slack channel to inform the team that a gift card has been issued on Shopify but I cant figure it out.

 

The thing is when a gift card is issued on the system, its not a new order and also it is not considered as a customer has been updated. Not sure how I can create a trigger from a gift card being issued.

 

Also note that I do not have a gift card as a product. It is just that when customers return something sometimes we give them credit (as gift card) so that they can buy for the same value from the store.

 

Any ideas?

ou can achieve this automation by using Shopify webhooks and a Slack integration tool like Zapier. Here’s a high-level approach:

  1. 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.

  2. Set Up a Trigger in Zapier: Use the webhook as a trigger in your automation tool to capture the issued gift card details.

  3. 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.