ShippingEasy API. Access denied. Status 401.

0
Answered

We developed plugin for NopCommerce and ShippingEasy.

But we have some problems with one of our customers.

He uses correct credentials. I checked them. He can send orders to ShippingEasy, but he can't read orders from ShippingEasy (method /stores/:store_api_key/orders).

I checked all my code and noticed that I could read orders when I used my live site (only  for live site!!!).

But I couldn't read orders from ShippingEasy when I used my PC... I could send orders from my PC, but I couldn't read orders. I checked all credentials.

I saw the error message

{"errors":[{"message":"Access denied.","status":401}]}

Do you have any checking of IP address for my request?

Why I can't read orders from any PC and can read orders from live site?

Thank you.

P.S.

Maybe problem in SSL?

Official Comment

Hello, 

Thank you so much for following up with us on this. I'm really glad that everything worked out and you were able to read these orders! 

If there's anything else that we can help with, please let us know! 

Thank you, 

Comment actions Permalink
0

I found problem. It was my problem. Wrong format of DateTimeOffset parameter. I used direct convention from DataTimeUtc value to DateTimeOffset value. I removed seconds and the method started to work.

Thank you.

 

Comment actions Permalink

Add a Comment

Please sign in to leave a comment.