Create customer payment method by external ID
Creates a new payment method for a customer using a Stripe confirmation token.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
externalId
The external ID of the customer
Request
This endpoint expects an object.
confirmationToken
Stripe confirmation token for the payment method
returnUrl
URL to redirect to after payment method setup
metadata
Optional metadata to attach to the payment method
Response
Payment method created successfully
id
The payment method ID (typically from Stripe)
type
The type of payment method
Allowed values:
card
Card details (present when type is ‘card’)
usBankAccount
US bank account details (present when type is ‘us_bank_account’)
isDefault
Whether this is the customer's default payment method
createdAt