How to determine the store name to use during OAuth ?

Sallie
Tourist
4 0 1

Hello!

We're developing a new application for Shopify and during our QA period we discovered the store name in the Settings | General area is not necessarily the store name referenced in the auth documentation here: http://docs.shopify.com/api/tutorials/oauth

Apparently the store name controlled in the settings is purely cosmetic and the actual store name within the Shopify database is created when the store is first configured. Is there a way for the user to see what the actual store name is ?

To be clear, this is for first initializing authorization for a store. The API docs say to use: GET https://SHOP_NAME.myshopify.com/admin/oauth/authorize to start the process but I don't see a way for finding the actual shop name.

 

Thanks!

Replies 5 (5)
HunkyBill
Shopify Expert
4762 54 548

When a shop owner (merchant) goes to install your App, they provide their shop name for you. You ask the merchant for their shop name. They give it to you. If you install an App from the App store, notice how you're prompted to provide the shop name? Same thing, different install process.  

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Sallie
Tourist
4 0 1

Thanks for the quick response HunkyBill!

I should have been more specific in my question. We need to write the help documentation for our users so I need to supply specific instructions to a user for where they can find their store name. Many customers won't know this information offhand, e.g., the store was configured years ago by someone who no longer works at the company and now no one recalls the store name used during set up. So the proper question is what are the proper instructions for a user to find their store name. Assuming the store name in the General | Settings area has been modified from the original store name and that they are using a custom domain.

Sallie
Tourist
4 0 1

/bump.

Any suggestions on where a user can find out what their store name is within the Shopify database?

HunkyBill
Shopify Expert
4762 54 548

It is almost certain a merchant will see their myshopify.com name when they authenticate. There is almost zero chance a merchant will not know their myshopify.com name. They login to Shopify, they can see it. So you have bigger fish to fry than worrying about that.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Sallie
Tourist
4 0 1

I think you may be misunderstanding my question (or likely I'm not phrasing it very well!).

To get to the screen where the user logs in to agree to connect with our app, we have to pass the shop name as part of the request URL.

You said if the user logs into their Shopify they can see the store name - can you confirm where they see that ? Are you saying that the admin URL for a store is always <shopname>.myshopify.com, even in cases where the user has a custom domain ? I apologize if I'm being obtuse, it's just slightly confusing to me since there is a setting for the shop name surfaced to the user but this apparently doesn't correlate to the actual shop name.

At least that's what I gathered from this: http://ecommerce.shopify.com/c/shopify-discussion/t/how-to-change-store-name-9704