DetachMethod
Detach a PaymentMethod from a customer.
This task detaches an existing PaymentMethod from a Stripe customer.
yaml
type: "io.kestra.plugin.stripe.payment.DetachMethod"Examples
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
apiKey *Requiredstring
Stripe API Key
Secret key for authenticating with Stripe. Starts with 'sk_' for live/test keys.
paymentMethodId *Requiredstring
The PaymentMethod ID to detach
Outputs
customer string
The customer ID (will be null after detachment)
id string
The detached PaymentMethod ID
rawResponse object
The raw detached PaymentMethod object