Refund a Payment
Understand how to use the Square Refunds API to refund full or partial payments within a year. Learn to create payments, request refunds with proper parameters, and track refund status such as pending, completed, rejected, or failed. Gain skills to retrieve refund information and handle different refund scenarios in your JavaScript applications.
We'll cover the following...
We can use the Refunds API to refund payments. We can refund the whole amount or a portion using the RefundPayment endpoint. All we need is the payment ID and the amount to refund. Some common scenarios of the refund are:
- Refund all or a portion of a payment.
- Multiple partial refunds of a payment.
The Refunds API can be used to refund payments irrespective of how the payment was taken. We'll use the following endpoint to perform different refund operations:
https://connect.squareupsandbox.com/v2/refunds
Make a refund
We must keep the following points in mind while making a refund:
We can refund the payment within one year of the original payment date. ...