Hello everyone,
I’ve been working on a project to clean up our Shopify customer database by removing ghost accounts. To achieve this, I’ve written a Python script that uses the Shopify API to identify and delete these accounts. Despite ensuring that my access token and API key are correctly implemented in the script, I keep encountering an authentication error.
The error message I receive is as follows: [API] Invalid API key or access token (unrecognized login or wrong password). This has left me puzzled, as I’ve double-checked my credentials and am confident they’re entered correctly.
Here’s a brief overview of what I’ve done:
- Generated the Access Token: I’ve generated an access token from the Shopify admin dashboard for my app, ensuring it has the necessary permissions to manage customer data.
- Script Setup: In my Python script, I’ve included the access token and used it in the header for my API requests. My assumption was that this setup would authenticate my requests to the Shopify API.
- Error Encounter: Despite the above steps, every attempt to make an API call results in the aforementioned authentication error.
I’m reaching out to see if anyone has faced a similar issue or might have insights into what I might be doing wrong. Is there a step I’ve overlooked, or could there be an issue with how Shopify is processing my API requests?
Please Note: As all information posted here is public, please refrain from sharing any personal details or specific Shopify account information. Let’s keep our discussion focused on general troubleshooting steps and solutions.
Any advice or suggestions would be greatly appreciated. I’m looking to resolve this issue so I can proceed with cleaning up our customer database efficiently.
Thank you in advance for your help!