Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
url : https://myshop.myshopify.com/admin/api/2021-04/collects.json
method : post
body :
I wrote some APIs according to the sample, but the html source is returned.
Why is that?
I don't know the information even if I go into that link.
Hi @nisystem
Aibek is here from Speedimize.io
Maybe this can help you:
You have received a response from shopify that you are not authorized to make API requests.
If you send post requests from the browser, then try to open any request to the Shopify API in a new tab, and you will open a window for authorization. After completing the login, the session will be saved in the cookies of your browser, and you will then be able to make requests to the API.
If you are trying to make requests from outside (not from the browser), then you need to get an access token. For more information on how to get it, you can see the link:
https://www.shopify.com/partners/blog/17056443-how-to-generate-a-shopify-api-token
Hope that helps you.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024