Refund a transaction
Changed onRefunds a transaction identified by its SumUp transaction ID. Omit the request body to request a full refund, or provide amount for a partial refund in the transaction's currency.
Retrieve the transaction afterwards to inspect its refunded amount and refund events. The transaction must be eligible for a refund; see the error responses for invalid amounts, permissions, and processing failures.
Request
- Base URLhttps://api.sumup.com
- URLhttps://api.sumup.com/v1.0/merchants/{merchant_code}/payments/{transaction_id}/refunds
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.sumup.com/authorizeToken URL: https://api.sumup.com/token scopes: payments, refunds.write
Request body
Example request
{
"amount": 5
}Response
The transaction was refunded in full or partially based on the request.
Changes
- breaking
removed the success response with the status
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the success response with the status
- breaking
- info
the security scope
refunds.writewas added to the endpoint's security schemeoauth2
- info