The payment can't be processed through this API error

We are testing the refund process in sandbox. When submitting the refund request per the original payment_id, we received an error stating “The payment RlBy7XkYeXXXXXXXXXXX can’t be processed through this API”.

What can cause this error? Is this related to sandbox account setting?

Thanks!
Oliver

Hi Oliver,

I took a look at your account and it looks like the Id that you are passing into the RefundPayment request is the order_id instead of the payment_id.