question

ibwshops avatar image
0 Likes"
ibwshops asked ·

Getting "302 Found" from post-order

Hi, I have used the LargeMerchantServices to reliably download XML containing orders to be fulfilled. In order to test for cancellations during our fulfillment processes, I have tried to connect to the post-order API. Using an Authentication header as specified in the documentation, whichever of the available auth tokens I give, I receive a "302 Found" response from https://api.ebay.com/post-order/v2/cancellations/search. So then I have tried the Trading API's GetOrders call, and received a GetOrdersResponse which clearly specified that it required to see the X-EBAY-API-{DEV,APP,CERT}-NAME headers, which is exactly what the documentation states will not be required and that those headers would be ignored for any other request. This has left me somewhat confused. Can you state which call I ought to be using and explain in that case which token I should be specifying and how I can filter cancellation information from the endpoint. Thankyou.
post-order apiauthenticationauthorization401
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ibwshops avatar image
0 Likes"
ibwshops answered ·
Hi, I got a little further: The Trading API requires the <RequesterCredentials> element, and the correct URL for PostOrder API is https://api.ebay.com/post-order/v2/cancellation/search. However, I'm still getting a 401 Unauthorized response. Can anybody help me?
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

yourspares avatar image
0 Likes"
yourspares answered ·
What authentication header are you using for the Post-Order API calls? I've got the search cancellation API call working but I had to set the token a bit differently than expected. OAuth user access tokens are prefixed with "IAF ": https://developer.ebay.com/Devzone/post-order/concepts/MakingACall.html#headers I've been encountering 302 status codes for other calls when there is an error. For example calling the 'Submit Cancellation Request' a second time for an order results in a 302 error. [1]: https://developer.ebay.com/Devzone/post-order/concepts/MakingACall.html#headers
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.