Hello,
Is there a way to programmatically resent gift card email confirmation via email?
I understood there is an undocumented REST API for this but was unable to make it work: POST /admin/gift_cards/#{gift_card_id}/shares.json
We have many unused gift cards and we would like to remind customers that they can use those cards for future sale events.
Thank you
2 Likes
D7ive
January 7, 2022, 12:35pm
2
Ran into the same, did you manage to find a solution for this?
1 Like
You can send a POST request to that endpoint:
/admin/gift_cards//shares.json
But you need to reach out to Shopify Support for them to enable the endpoint on a per-store basis.
If the endpoint not enabled for a particular store, calls to it will return a 404.
Could you please share what I need to include in the POST body?
I tried { “gift_card_share”: {} }, but it didn’t seem to work.
Try not setting the body at all.
JohnWF
October 9, 2024, 11:51pm
7
Hey guys - I am from the future, 2024 to be exact, and we now have support for this in GraphQL: https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/giftCardSendNotificationToCustomer, which has worked great for me this morning.