Refunds a payment.
Open in API Reference
The amount of money to refund.
This amount cannot be more than the total_money value of the payment minus the total amount of all previously completed refunds for this payment.
total_money
This amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see Working with Monetary Amounts.
The currency code must match the currency associated with the business that is charging the card.
A unique string that identifies this RefundPayment request. The key can be any valid string but must be unique for every RefundPayment request.
RefundPayment
For more information, see Idempotency.
The unique ID of the payment being refunded.
The amount of money the developer contributes to help cover the refunded amount. This amount is specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents).
The value cannot be more than the amount_money.
amount_money
You can specify this parameter in a refund request only if the same parameter was also included when taking the payment. This is part of the application fee scenario the API supports. For more information, see Take Payments and Collect Fees.
A description of the reason for the refund.
curl https://connect.squareupsandbox.com/v2/refunds \ -X POST \ -H 'Square-Version: 2021-03-17' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json'
// No response received yet.