401 Unauthorized Postman

401 Unauthorized Postman

AyoubTilaoui
Visitor
3 0 0

Hi everyone,

I’m currently facing an issue with accessing the Shopify API, and I keep getting a 401 Unauthorized error. I ran these test requests after I've been having a problem with a costum app I am using to import costumer info on my platform, but they dont get passed down even though orders and products do, Here’s what I’ve tried so far:

API Version: 2024-07

Request Details:

  • URL: https://{store_name}.myshopify.com/admin/api/2024-07/customers.json
  • Method: GET
  • Authorization: Basic Auth

Credentials:

  • API Key (username): b2340626ad25eb02898f2566afb92152
  • API Secret (password): **********

Full URL used in the request: https://b2340626ad25eb02898f2566afb92152:secretkey@82910a-1f.myshopify.com/admin/api/2024-07/customers.json

What I’ve Tried:

  1. Verified the API key and secret are correct.
  2. Checked that the app has the necessary permissions (read_customers, write_customers).
  3. Confirmed that the store prefix is accurate (82910a-1f).
  4. Used Basic Auth directly in Postman’s Authorization tab with the same result.
  5. Tested other endpoints (e.g., /admin/api/2024-07/shop.json) but received the same error.
  6. Cleared cache and tried different networks and devices.
    tried a bearer token, same result again.

Despite these steps, I’m still receiving the 401 error. Has anyone encountered this issue before or have any insights into what might be going wrong?

Thanks in advance for any help!

 

Replies 0 (0)