Skip to main content
Fires when a payment is refunded to the customer. Use this event to track refund rates and understand customer satisfaction issues.

JavaScript

window._upstack('track', 'payment_refunded', {
  accountId: 'acct_abc123',
  invoiceId: 'inv_ghi012',
  chargeId: 'ch_abc123',
  subscriptionId: 'sub_def456',
  amount: 9900,
  refundReason: 'customer_request',
  currency: 'USD',
  isPartialRefund: false
});

Properties

PropertyTypeRequiredDescription
accountIdstringYesAccount identifier
amountnumberYesRefunded amount in cents
chargeIdstringNoOriginal charge identifier
invoiceIdstringNoInvoice identifier
subscriptionIdstringNoSubscription identifier
refundReasonstringNoReason for refund
currencystringNoISO 4217 currency code
isPartialRefundbooleanNoWhether this is a partial refund

When to Fire

  • When refund is processed
  • When Stripe charge.refunded webhook fires
  • When support issues refund

Stripe Webhook

Maps to charge.refunded.