Refund an api payment

I have integrated the e-commerce api with a couple miva merchant stores, and we also have an order manager system called Orange Manager where I have the refund api integrated.

 

The issue at this time seems to be that we can issue a full refund via the api, but then we can issue a second (or third, fourth, etc) refund to the same order - and the response is the same.

 

It does appear that Square does not act on the second, etc refunds.

 

The api shows an example response - is there any responses beyond that for a refund that is more than the actual payment?

 

 

4,211 Views
Message 1 of 3
Report
1 Solution
Alumni
Solution

I'm sorry, I may not be understanding you fully. You'd like to refund for more than the transaction? That would not be possible. 

 

If you are having an issue with the responses being the same, you are likely giving in the same idempotency key, those should be unique to each transaction. Learn more here: https://docs.connect.squareup.com/api/connect/v2/?q=idempotency_key#idempotencykeys

 

View Solution >

6,524 Views
Message 2 of 3
Report
2 REPLIES 2
Alumni
Solution

I'm sorry, I may not be understanding you fully. You'd like to refund for more than the transaction? That would not be possible. 

 

If you are having an issue with the responses being the same, you are likely giving in the same idempotency key, those should be unique to each transaction. Learn more here: https://docs.connect.squareup.com/api/connect/v2/?q=idempotency_key#idempotencykeys

 

6,525 Views
Message 2 of 3
Report

Ok - I think you nailed it!

I will recheck my code on the idempotency - thats likely the culprit.

Thanks

5,704 Views
Message 3 of 3
Report