Refund Payment

I am trying to make a refund to the payment using API

 

tried this https://docs.connect.squareup.com/api/connect/v1#post-refunds

 

here is the request that I used

{"payment_id":"XXXXXXXXXXXXXXXXX","type":"FULL","reason":"Items not available","refunded_money":{"amount":-100,"currency_code":"USD"},"request_idempotence_key":null}

 

 

I am getting a response

 

{"type":"unauthorized","message":"Provided merchant_id and merchant_id in authorization do not match up"}

 

 

In the documentation not mentioned about merchant_id, but response shows error regarding merchant_id.

 

 

 

 

716 Views
Message 1 of 1
Report
0 REPLIES 0