Development discussions around Shopify APIs
So I followed these docs
https://shopify.dev/docs/admin-api/rest/reference/orders/order#create-2020-10
To try and create an order through postman
In the response, I get some HTML with a link that asks me to authenticate and then goes to error
I tried fetch orders request and that worked fine. I have tried changing inputs and using shopify example inputs.
Not sure what's going on here.
Solved! Go to the solution
This is an accepted solution.
If you've verified the API credentials are okay, then it's likely due to Postman sending client-side cookies with the API request. You need to clear those out and disable that setting option.
This is an accepted solution.
If you've verified the API credentials are okay, then it's likely due to Postman sending client-side cookies with the API request. You need to clear those out and disable that setting option.
That seems to work
It won't be a problem when I am making the request with a library like axios right?
As long as Axios isn't automatically sending client-side cookies behind the scenes for POST requests you should be fine. I'd assume the developer has control over how it's behaving, so you should be good!
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023