A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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
Ran into the same, did you manage to find a solution for this?
Any solution yet?
You can send a POST request to that endpoint:
/admin/gift_cards/<id>/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.