DetachMethod​Detach​Method

Detach a PaymentMethod from a customer.

This task detaches an existing PaymentMethod from a Stripe customer.

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

Detach a card from a customer

yaml
id: detach_pm
namespace: company.team

tasks:
  - id: detach_pm
    type: io.kestra.plugin.stripe.payment.DetachMethod
    apiKey: "{{ secret('STRIPE_API_KEY') }}"
    paymentMethodId: pm_123
Properties

Stripe API Key

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

The PaymentMethod ID to detach

The customer ID (will be null after detachment)

The detached PaymentMethod ID

The raw detached PaymentMethod object