I am Gina from flareAI app helping Shopify merchants get $5Million+ in sales from Google Search, on autopilot.
It seems like the API call you are making is redirecting you to the authorization page, which means that the API credentials are not being recognized. Here are a few things to check.
1. Make sure that you are using the correct API version in the API call In your example, you are using 2023-01. Make sure that this is the correct version for your store. You can check the API version by going to your Shopify admin and clicking on Apps > Manage private apps > your app > API details.
2. Double-check that you have the correct permissions for the API call. In your case, you need the write_customers and read_customers permissions. You can check the permissions by going to your Shopify admin and clicking on Apps > Manage private apps > your app > Admin API.
3. Ensure that you are passing the correct JSON data in the API call In your example, the JSON data is not properly formatted. The correct format should be:
If none of these suggestions solve your problem, I recommend reaching out to Shopify's API support team for further assistance. They will be able to help you troubleshoot the issue and identify any errors in your API call.