Refund api failing with 410 GONE error

Hi team, I am trying to hit REFUND’s endpoint with URL: /locations/{location_id}/refunds, this call is working for some customers but it is failing for others with error: {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"GONE","detail":"The request could not be completed since access to the target resource is no longer available."}]}.
But /v2/refunds path is working for failing ones.
Can you provide more information on this?

:wave: That URL path is for the deprecated CreateRefund endpoint which was retired in the last Square version update. If you are going to use the deprecated Transactions API you will need to use version 2021-09-15 or older. We definitely recommend that you migrate to the new Refunds API. :slightly_smiling_face: