Mo

Hi, we are trying to use the MobilePlatformApplication to create the application in postman but failed. Can anyone advise please?

Below is our payload

{
“mobile_platform_application”: {
“application_id”: “com.barkmall.app”,
“platform”: “ios”,
“enabled_universal_or_app_links”: true,
“enabled_shared_webcredentials”: false
}
}

And this is the response (X-Requst-ID is f22c801f-8a76-41d8-855a-d67c6a732cfb) -

Continue

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

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

1 Like

Hi @gabriel_fu_200 :waving_hand:

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!