error when posting to issue_refund with returnid
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?
autodidaktix
Posted 2 years ago·Last reply 2 years ago
3 comments
0pilo
·2 years ago@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?
autodidaktix
OP2 years agoIt 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.
autodidaktix
OP2 years agoIt 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 ...