A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi, we are trying to use the MobilePlatformApplication to create the application in postman but failed. Can anyone advise please?
Below is our payload
Solved! Go to the solution
This is an accepted solution.
Hi @gabriel_fu_200 👋
As noted in the auth doc here, all REST Admin API queries require a valid Shopify access token. Instead of your `api_key` and `api_password`, the header needs to include the access token as a `X-Shopify-Access-Token` header on all API queries like this:
Hope that 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
Hey @gabriel_fu_200 - this error looks like it's related to your app's OAuth authorization. Generally, this error will pop up if you haven't included your Shopify OAuth Access token in the header of your API Request. I'd recommend checking our documentation here to confirm that your OAuth settings are applied correctly.
Usually, in Postman, it should look something like this:
If you can confirm that your X-Shopify-Access-Token value is the right one and is included in the headers, no worries - we're happy to keep help troubleshooting. If the info you're passing through the headers is correct and you still get this error, the next best thing is to reach out to our Partner Support Specialist team who can get in touch with one of our technical teams on your behalf to further troubleshoot.
Hope this helps!
Al | Shopify Developer Support
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
Hi, I have been putting the credential in the endpoint together which works fine for other api, i follows your way and put in the Headers Form now. But im getting the same response from shopify.
The key is already hidden at shopify admin panel, but I think i can confirm the key is correct as i use the same postman env for other API, like customer and product which return normal data.
Receiving the same response after putting the key in Headers Form.
Below is a product metafield api using the same postman environment
This is an accepted solution.
Hi @gabriel_fu_200 👋
As noted in the auth doc here, all REST Admin API queries require a valid Shopify access token. Instead of your `api_key` and `api_password`, the header needs to include the access token as a `X-Shopify-Access-Token` header on all API queries like this:
Hope that 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