Error while creating giftcard via API

New Member
4 0 0

Hi,

We are developing the public_app, have complete admin access to my partner shop.

I'm using the API described below
https://help.shopify.com/en/api/reference/plus/giftcard#create-2019-07

When I try this:

POST https://99stylesfashion.myshopify.com/admin/api/2019-07/gift_cards.json HTTP/1.1
User-Agent: Fiddler
Host: stgwvc.myshopify.com
Content-Length: 174
Authorization: Basic <removed>

{
"gift_card": {
"note": "This is a note",
"initial_value": 100.0,
"code": "ABCD EFGH IJKL MNOP",
"template_suffix": "gift_cards.birthday.liquid" }
}


I get this response:
404 "Not Found"

What am I missing? I took the body from the documentation example.

0 Likes
Highlighted
Explorer
78 19 19

Hi 

You're going to run into a couple of issues here:

  • Must be a private app to use the Gift Card endpoints.
  • Must be a Shopify Plus store to use the Gift Card endpoints.

There is a yellow warning notice at the top of the page you've linked to:

2BDigital_0-1600783716081.png

Sorry I couldn't be more help!

0 Likes
Highlighted
New Member
4 0 0

Thank you for your support,

But my requirement is to create a public app that I have to listed in shopify marketplace if any one wants to sell Giftcard on their shop they just need to install the app from marketplace.

How can I achive this?

 

0 Likes