I've been trying to access the Gift Card APIs. We are a Shopify Plus customer, so according to the documentation, we should have access to it.
I have created a custom app, and have been attempting to access the Gift Card APIs using the API Key and Password created within the private app.
So far, I have been receiving a "{"errors":"Not Found"}" response.
Does anyone have any experience with this or any suggestions?
Solved! Go to the solution
This is an accepted solution.
Hey there,
The Gift Card API has to be manually enabled on an app by us, it won't be something that you'll be able to activate by yourself in the admin. If you have a Shopify Plus account, you can reach out to your Merchant Success Manager with the API key of the app you want the Gift Card API enabled on, and they'll be able to get you up and running.
Josh | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Hey Richard,
The Gift Card API needs to be enabled on a per key basis so despite being Plus it's not something that's auto activated. You'll want to give the Merchant Success Manager a shout so they can activate that API on your key.
When you shoot them the message be sure to include the key details (not the password) to save them having to ask for it.
Hi Jason
I'm seeing the same issue, but i don't see any setting on my admin to enable this feature. Dev can't work with GiftCard API, but it works on other object like Orders, Customers etc...
I have full control on my account
Please help me
Thank you
This is an accepted solution.
Hey there,
The Gift Card API has to be manually enabled on an app by us, it won't be something that you'll be able to activate by yourself in the admin. If you have a Shopify Plus account, you can reach out to your Merchant Success Manager with the API key of the app you want the Gift Card API enabled on, and they'll be able to get you up and running.
Josh | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
@Josh is it possible to use OAuth scopes (read_gift_cards) with a public app. We have a public app. Our client approves the OAuth scope. However, the MSM says they CANNOT provide access to the gift card API for public apps.
If not, why is that scope available for OAuth then? I am continually told they have to create a private app. Now this requires an ugly user experience where they have to manage a private app and our public app?
@joerz ,
is it possible to use OAuth scopes (read_gift_cards) with a public app
No. As stated in the first line of the Gift Card API documentation, this API is available only for private apps installed on Shopify Plus stores.
If not, why is that scope available for OAuth then?
Access scopes apply to all app types: private, custom, and public. Private apps require enabling access scopes just like public apps do, they just do not have to go through the OAuth process first.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Hi @hassain,
Thanks for the clarification. I appreciate it.
> this API is available only for private apps installed on Shopify Plus stores.
So that leads me to ask, is there a way to create Private Apps via API. It doesn't appear there is. It just seems to be only in the Shopify Admin (which does make sense...)
Hi @joerz ,
No, there is no way to create a Private App via an API. You will either need to get permission from the merchant to access the Shopify store's Admin webpage so you can create the Private App yourself, or you will need the merchant to create the Private App for you and then securely provide you with the API Keys and Password.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
I'm a bit confused here. We have a public app that asks for read_gift_cards and write_gift_cards permissions in the oauth token process, and I manage to use those tokens to read and write gift cards. How come is it possible if it's supposed to be allowed for private/custom apps only?
Yes, also interested on how some apps are editing gift cards on stores that are not on Shopify Plus. Was this allowed at some point and then removed?