How to assign attributes to gift cards using REST API?

How to assign attributes to gift cards using REST API?

ThomasID19
Shopify Partner
6 0 1

Hi everyone,

 

Using this api: https://shopify.dev/api/admin-rest/2022-10/resources/gift-card#post-gift-cards

And knowing that the shop is a shopify+ and that the gift cards api is enabled.

 

I need to give attributes to the gift card as it could be if it was purchased via the store directly with line items properties.

 

How can I provide certain attributes to the gift card that will be used by the gift card notification email (with the gift_card.attributes liquid subject in the email)?

 

Thanks!

Replies 0 (0)