I get an error after creating a Shopify API and choosing all scopes. To avoid the error, I generated a token and also got the domain name. However, when I try using Postman with the REST API to get any data (like product count, all products, or a specific product), it returns a ‘Bad Request’. I don’t know what the error is. I know the Admin API token is correct, but I can’t find the problem. domain name esim-market.myshopify.com
Hi there, regardless of your error here, I would advise moving to GraphQL as REST is deprecated.
Yeah, Luke is right. Please use GraphQL.
Regarding the error, I think body
request is wrong. Please ensure it is none
.
Hey @user182 - just following up here. @Luke and @remy727 are on point, we would advise moving over to GraphQL as REST is now considered a Legacy API. It’s not fully deprecated or sunset and still functions, but it is being phased out slowly in favour of GraphQL. There’s a bit more info on this here:
If you’re still seeing errors in Postman though after given the above steps from Remy a try, if you can share an X-Request-ID from your headers section in the API response, I can take a look at our logs and narrow down exactly what’s happening there. Hope this helps!