What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Error Using Api With Custom Domain

Solved

Error Using Api With Custom Domain

Camilobuelvas
Shopify Partner
3 0 0

I have an application that uses the API from a custom domain such as https://mystore.com and for several days it has been failing, the following error appears: [API] Invalid API key or access token (unrecognized login or wrong password)

maybe the API will no longer be usable from the custom domain or you are required to use the myshopify.com domain

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 238 525

This is an accepted solution.

Hey @Camilobuelvas, thanks for getting in touch.  When you're making API requests, it's best to use the myshopify.com URL as the target URL. There's more information on why this is the case in this older post here, and if you need to have the custom URL show up in your responses, there are some workarounds you can use in that thread. 

 

Hope this helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 525

This is an accepted solution.

Hey @Camilobuelvas, thanks for getting in touch.  When you're making API requests, it's best to use the myshopify.com URL as the target URL. There's more information on why this is the case in this older post here, and if you need to have the custom URL show up in your responses, there are some workarounds you can use in that thread. 

 

Hope this helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog