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

TonyJ
Excursionist
15 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

0 Likes
CalD
Shopify Staff
Shopify Staff
91 8 12

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

0 Likes
TonyJ
Excursionist
15 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!

0 Likes
CoppoG
Tourist
10 1 2

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

Thanks

0 Likes