Create a payment method
Starts attaching a payment method to a customer by exchanging a client-side confirmation token for a setup intent. Complete any additional authentication client-side using the returned client secret.
Authentication
AuthorizationBearer
API Key authentication using Bearer token
Request
Body
confirmationToken
Confirmation token generated client-side by the payment processor’s elements (e.g. a Stripe ConfirmationToken ID).
customerId
Paid customer ID to attach the payment method to.
externalCustomerId
Your external customer ID to attach the payment method to.
returnUrl
URL the customer is redirected to after completing any additional authentication step (e.g. 3-D Secure).
metadata
Key-value metadata stored on the setup intent.
Response
201
setupIntent
The setup intent created with the payment processor.
externalPaymentMethodId
The payment processor's identifier for the attached payment method, when already available.
customerId
The customer the payment method is being attached to.
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error