SelectwinSelectwin

List a transaction's refunds

GET/v1/transactions/{transactionId}/refunds

Authenticate with the header SelectKey: a sk_test_ key works in the sandbox, a sk_live_ key in production.

Path parameters

  • transactionIdstringrequired

    Public identifier (tra_/trx_…)

Responses

200OK
  • refundsobject[]required

    Every refund of the charge, oldest first.

    +6 fields in refunds
    • idstringrequired

      The refund id (the refundId of the 202 that opened it).

    • amountintegerrequired

      Refund amount, in cents.

    • reasonstringrequirednullable

      The reason sent with the request.

    • statusstringrequired

      processing while the provider has not settled it; completed once the money went back; failed when the provider refused it (the transaction.refund-failed event).

      Values:processingcompletedfailed
    • createdAtstringrequired
    • updatedAtstringrequirednullable
  • transactionIdstringrequired

    Public identifier (tra_/trx_…)

  • refundedAmountintegerrequired

    How much of this charge was already refunded, in cents (the settled refunds).

  • refundableAmountintegerrequired

    How 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 error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired
403Forbidden (no permission)
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired
404Not found
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired
500Internal server error
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired

Preferências de cookies

Hoje o site usa só cookies essenciais: nenhuma ferramenta de medição ou de anúncios está ligada, e nada é compartilhado com terceiros. Se isso mudar, você decide aqui antes de qualquer coisa ser carregada.

  • Mantêm o site funcionando: segurança, a sua escolha sobre cookies e preferências como o idioma e a versão da documentação. Não dependem de consentimento.

    Sempre ativos