Attach external payment method
Attaches an external payment method (from Stripe or other provider) to a customer. Connector Auto-Detection:
- If ‘connector’ is not provided, the system will automatically detect the connector by querying resource mappings
- If exactly one connector mapping exists for the customer, it will be used automatically
- If multiple connector mappings exist, you must explicitly specify which connector to use
- If no connector mappings exist, an error will be returned
Authorizations
Path Parameters
Body
Request schema for attaching external payment method to customer
Payment method ID from external provider (e.g., Stripe pm_xxx)
1Payment provider connector configuration (e.g., {'name': 'stripe'}). If not provided, will auto-detect from resource mappings.
Whether to set this payment method as default for the customer
Response
Successful Response
Response schema for payment method attachment operation
Customer ID
Attached payment method ID
External customer ID (e.g., Stripe customer ID)
Whether payment method was set as default
Raw PaymentMethod object from provider