
Stripe DetachMethod
CertifiedDetach PaymentMethod from customer
Stripe DetachMethod
Detach PaymentMethod from customer
Detaches an existing PaymentMethod by ID. After detachment the customer field becomes null. Returns the raw PaymentMethod payload.
type: io.kestra.plugin.stripe.payment.DetachMethodExamples
Detach a card from a customer
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 *string
Stripe API Key
Secret key for authenticating with Stripe. Starts with 'sk_' for live/test keys.
paymentMethodId *string
PaymentMethod ID to detach
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150Outputs
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