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

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?

 

Message 1 of 4
latest reply
3 REPLIES 3

Re: error when posting to issue_refund with returnid

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 ...

Message 2 of 4
latest reply

Re: error when posting to issue_refund with returnid

@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?

Message 3 of 4
latest reply

Re: error when posting to issue_refund with returnid

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.

Message 4 of 4
latest reply