Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Resend Gift Card email via API

Resend Gift Card email via API

Mircea_Piturca
Shopify Partner
1548 44 349

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

Finally—Add variant descriptions to your products
Replies 6 (6)

D7ive
Visitor
1 0 1

Ran into the same, did you manage to find a solution for this?

Echo125
Visitor
1 0 0

Any solution yet?

danbisso
Shopify Partner
2 0 0

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.

wspartner
Shopify Partner
1 0 0

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.

danbisso
Shopify Partner
2 0 0

Try not setting the body at all.

JohnWF
Shopify Partner
16 0 8

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.