List a transaction's refunds
/v1/transactions/{transactionId}/refundsAuthenticate with the header SelectKey: a sk_test_ key works in the sandbox, a sk_live_ key in production.
Path parameters
transactionIdstringrequiredPublic identifier (tra_/trx_…)
Responses
200OK
refundsobject[]requiredEvery refund of the charge, oldest first.
+6 fields in
refundsidstringrequiredThe refund id (the
refundIdof the 202 that opened it).amountintegerrequiredRefund amount, in cents.
reasonstringrequirednullableThe reason sent with the request.
statusstringrequiredprocessingwhile the provider has not settled it;completedonce the money went back;failedwhen the provider refused it (thetransaction.refund-failedevent).Values:processingcompletedfailedcreatedAtstringrequiredupdatedAtstringrequirednullable
transactionIdstringrequiredPublic identifier (tra_/trx_…)
refundedAmountintegerrequiredHow much of this charge was already refunded, in cents (the settled refunds).
refundableAmountintegerrequiredHow much can still be refunded now, in cents: the rest of the charge minus the settled refunds and the one in progress; 0 when the charge does not accept refunds.
401Unauthorized (missing or invalid credential)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
403Forbidden (no permission)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
404Not found
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
500Internal server error
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired