cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting 401 code on post-order requests

Hello,

does Post-Order API need any special authorization? I was trying to make requests by both code and Postman and everytime i was getting 401 as a response. What could be reason of that? Authorization token was correct because i was able to use other APIs (for example InventoryAPI).

 

Example of request that i was trying is "Search Cancellations".

 

On the side note, is there any yaml or sdk for Post-Order API like it is for other APIs?

Message 1 of 5
latest reply
4 REPLIES 4

Getting 401 code on post-order requests

Hi,

 

I am having the exact same issue currently.  The documentation, from what I can tell, does not indicate that this is some protected (beta) API. So, I do not understand how providing all of the OAuth scopes still results in a 401 Unauthorized response.

Message 2 of 5
latest reply

Getting 401 code on post-order requests

Hi all,

 

A colleague and I tried lodging a support request after going through the same trouble as everyone here. They have redirected us to this page on their documentation : https://developer.ebay.com/Devzone/post-order/concepts/makingacall.html

 

We normally send `Bearer <token>` in Authorization header for these calls but for Post-Order API it is somehow different and they want either `Token <token>` or `IAF <token>`.

 

Hope this helps out, thanks!

Message 3 of 5
latest reply

Getting 401 code on post-order requests

I'm having trouble with this endpoint when using the older Auth-n-Auth and using "Token". I get a 401 on this endpoint. Are there any restrictions on the cancellation endpoints when using "TOKEN"?

 

This is necessary for older connections as it seems Cancellations support was dropped from the SOAP and XML APIs.

Message 4 of 5
latest reply

Getting 401 code on post-order requests

Authorization : IAF <Token> worked for me

Message 5 of 5
latest reply