Refund transaction
Refunds a transaction, fully or partially.
If the transaction was not yet successfully captured, the refund will not be processed. Authorized transactions can be voided instead.
This endpoint requires the transactions.write
scope.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The ID for the transaction to get the information for.
"fe26475d-ec3e-4884-9553-f7356683f7f9"
Body
A request to refund a transaction.
The amount requested to refund.
If omitted, a full refund will be requested for the main payment method.
When set, the amount must be lower than or equal to the remaining balance in the associated transaction. Negative and zero-amount refunds are not supported.
1 <= x <= 99999999
1299
The target type to refund for. This can be used to target a gift card to refund to instead of the main payment method.
payment-method
, gift-card-redemption
"gift-card-redemption"
The optional ID of the instrument to refund for. This is only required when
the target_type
is set to gift-card-redemption
.
"c23ea83f-1b1c-4584-a0e8-78ef8c041949"
Response
A refund record.
A refund is always associated with a single transaction, while a transaction can potentially have several refunds.
The type of this resource. Is always refund
.
refund
"refund"
The unique ID of the refund.
"8724fd24-5489-4a5d-90fd-0604df7d3b83"
The ID of the transaction associated with this refund.
"fe26475d-ec3e-4884-9553-f7356683f7f9"
The payment service's unique ID for the refund.
"refund_xYqd43gySMtori"
The status of the refund. It may change over time as asynchronous processing events occur.
processing
- The refund is being processed.succeeded
- The refund was successful.declined
- The refund was declined by the underlying PSP.failed
- The refund could not proceed due to a technical issue.voided
- The refund was voided and will not proceed.
processing
, succeeded
, declined
, failed
, voided
"processing"
The currency code for this refund. Will always match that of the associated transaction.
"MXN"
The amount requested for this refund.
0 <= x <= 99999999
1299
The date and time when this refund was created.
"2013-07-16T19:23:00.000+00:00"
The date and time when this refund was last updated.
"2013-07-16T19:23:00.000+00:00"
The type of the instrument that was refunded.
payment-method
, gift-card-redemption
"payment-method"
The optional ID of the instrument that was refunded. This may be null
if
the instrument was not stored.
"c23ea83f-1b1c-4584-a0e8-78ef8c041949"
Was this page helpful?