09-20-2023 02:05 AM
When we issue a refund against a returnid,
https://api.ebay.com/post-order/v2/return/{return id}/issue_refund
we get the following response:
message=Invalid item or transaction id. Ids of item or transaction should be positive number
But the documentation for that request does not mention these fields:
https://developer.ebay.com/DevZone/post-order/post-order_v2_return-returnid_issue_refund__post.html
The returnid itself is correct, we get all the information from
https://api.ebay.com/post-order/v2/return/{return id}?fieldgroups=FULL
What am I missing?
09-20-2023 11:18 PM
It turns out, we where using an erroneous value for "accept-language" http-header and fixing that resolved the issue. All other request with the same value were successful and the error message in the response seemed unconnected to an issue with http-headers ...
09-21-2023 02:32 PM
@autodidaktix thank you very much for discovering this issue. I would never have thought about to change the accept-language. In my case, the accept-language was set to en_US. Are you using the `ebay-api` npm module by any chance?
09-21-2023 02:57 PM
It was our own code, directly setting http headers actually to the same value as you did, maybe or probably copy paste from somehwere, I do not remember.