Refund a payment in Stripe.

Issue a full or partial refund for a payment using Stripe.

yaml
type: "io.kestra.plugin.stripe.payment.refund"

Refund a payment by Charge ID

yaml
id: refund_payment
namespace: company.team

tasks:
  - id: refund_payment
    type: io.kestra.plugin.stripe.payment.Refund
    apiKey: "{{ secret('STRIPE_API_KEY') }}"
    chargeId: "ch_123456789"

Refund a specific amount for a PaymentIntent

yaml
id: refund_partial
namespace: company.team

tasks:
  - id: refund_partial
    type: io.kestra.plugin.stripe.payment.RefundPayment
    apiKey: "{{ secret('STRIPE_API_KEY') }}"
    paymentIntentId: "pi_123456789"
    amount: 500  # amount in cents
Properties

Stripe API Key

Secret key for authenticating with Stripe. Starts with 'sk_' for live/test keys.

The amount to refund in cents (optional). If not set, a full refund is issued.

The charge ID to refund. Either chargeId or paymentIntentId must be provided.

The PaymentIntent ID to refund. Either chargeId or paymentIntentId must be provided.

The refunded amount in cents

The refund currency

The raw JSON response from Stripe

The refund ID

The refund status