How to implement gift card functionality via API in a custom website?

I have a custom developed website that provide some service to customers and it include Gift card. I have to implement shopify gift card functionality in that custom website.

Using that website customers will be able to purchase giftcard that is created in shopify admin. I have looked in documentation and API refrences, but i don’t understand the proper flow to purchase a giftcard.

Does is invlove cart, order, checkout, transaction and payments APIs? If its involve all endpoints then in what is the flow of it, and how customer will complete payment.

Thank you

Hi @connor_at_rally

I am very thankfull to you and apreciate your time and effort to reply to my query.

Now i can see flow little bit clear, but at the time of checkout what additional parameter will be sent for gift card or what will be product and variant id?

If we see the documentation for checkout API -

{"checkout":{"line_items":[{"variant_id":39072856,"quantity":5}]}}

In line items, i tried with gift card id but it was not recognizing as giftcard or any other product. Did i missed something?

Thank you