Gift Card API help

Solved
Richard_Parla
Shopify Partner
1 0 1

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?

Jason
Shopify Expert
10035 119 1871

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.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
mienle
New Member
2 0 0

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

0 Likes
Josh
Shopify Staff
Shopify Staff
1130 82 191

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. 

joerz
Shopify Partner
9 0 2

@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?

 

0 Likes
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 134

@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 

0 Likes
joerz
Shopify Partner
9 0 2

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...)

 

 

0 Likes
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 134

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 

joerz
Shopify Partner
9 0 2

@hassain of course... As I figured.  Thanks again!

0 Likes