Resend Gift Card email via API

Resend Gift Card email via API

Mircea_Piturca
Shopify Partner
1548 44 347

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 5 (5)

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.