
Stripe DetachMethod
CertifiedDetach PaymentMethod from customer
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.DetachMethodExamples
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
PaymentMethod ID to detach
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
customer string
Customer ID before detach
Null when no customer remains attached
id string
Detached PaymentMethod ID
rawResponse object
Raw PaymentMethod payload
Full PaymentMethod object after detach