A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I am very sure this is a very silly mistake on my part. I have a working app that has no problem making requests to both the GraphQL and REST APIs, and am adding some calls to the Orders API. I wanted to prototype them in Postman, but have not been able to get any request to work, every request is met with a
I'm having this same exact issue when following the guide online with a cURL command. Have you found a solution to it?
Thanks.
@akatcha I'm back on this, and in Shopify just got a GET request to /admin/api/2020-07/orders/count.json working using a "X-Shopify-Access-Token" with no authorization.
Of course it doesn't work from my app, but one problem at a time.
Hi
This one is working for me for my app
const productImageAdminAPI = `https://${auth.shop}/admin/api/${process.env.API_VERSION}/products/${productId}/images.json`;
return fetch(productImageAdminAPI, {
method: 'post',
body: JSON.stringify(body),
headers: {
'Content-Type': 'application/json',
'X-Shopify-Access-Token': auth.accessToken,
},
}).then((res) => res.json());
For Postman I do it like:
https://API_KEY:PASS@ ... .myshopify.com/admin/api/2020-04/products/${productId}/images.json works for private apps.