Refund a Payment
Initiates a refund for a specified payment using its unique ID. By default, the full amount will be refunded, but you can specify a smaller amount for a partial refund. This flexibility allows merchants to handle various refund scenarios, such as partial returns or adjustments.
Path parameters
paymentId
ID of the payment to refund.
Request
This endpoint expects an object.
amount
Specify the amount to refund in minor units. Defaults to the remaining balance if not provided.
orderId
Optionally provide a specific order ID for the refund. Defaults to the original order ID if not specified.
reason
Optionally include a reason for the refund for record-keeping purposes.
Response
Payment refunded successfully.
id
The unique payment ID.
date
The date and time at which the payment was created.
dateUpdated
The date and time of the last payment update.
status
The current status of the payment.
orderId
Your reference for the payment.
currencyCode
The 3-letter currency code in ISO 4217 format.
amount
The amount you charged the customer, in minor units.
transactions
processor
metadata
Additional data to be used throughout the payment lifecycle.