Stripe DetachMethod

Stripe DetachMethod

Certified

Detach PaymentMethod from customer

Detaches an existing PaymentMethod by ID. After detachment the customer field becomes null. Returns the raw PaymentMethod payload.

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.

PaymentMethod ID to detach

Customer ID before detach

Null when no customer remains attached

Detached PaymentMethod ID

Raw PaymentMethod payload

Full PaymentMethod object after detach