Post to /admin/api/2020-07/products.json -->Invalid API key or access token (unrecognized login or

TonyJ
Excursionist
16 1 0

Hello Forum,

I'd ike to use the Product api to create products in our Bogner US Shopify store

  1. I created a privat app
  2. I created credentials
  3. According to this Docu

https://shopify.dev/tutorials/authenticate-a-private-app-with-shopify-admin#make-authenticated-reque...

i should be able to make authenticated requests

like

https://apikey:passw@bogner-us.myshopify.com/admin/api/2020-07/products.json

I placed a POST Using SOAP UI

{

  "product":

   {

    "title": "Burton Custom Freestyle 151",

    "body_html": "<strong>Good snowboard!</strong>",

    "vendor": "Burton",

    "product_type": "Snowboard",

    "metafields":

    [

      {

        "key": "new",

        "value": "newvalue",

        "value_type": "string",

        "namespace": "global"

      }

    ]

  }

and got the message:
{"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"}

Please let me know what's wrong. I checked apikey and password twice
Best Regards Tony

Replies 3 (3)

CalD
Shopify Staff
140 22 36

Hey @TonyJ,

Can you try using a different API client that supports REST (e.g. Postman). The Admin API is only available through GraphQL and REST, and it may be possible that the SOAP UI client you're using isn't injecting the api key/password properly.

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

TonyJ
Excursionist
16 1 0

Hi,

As SOAP UI supports both REST AND SOAP i dont think its the problem . I solved it by addding the API Key to the Http Header in the Request. Done!

CoppoG
Tourist
12 1 5

Hello, I have the same problem.
Please, if is possible, could you write me with an example the complete string to solve?

Thanks