cURL
curl --request POST \ --url https://api.tensormesh.ai/v1/billing/stripe/customers/payment-methods \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "<string>", "stripePaymentMethodId": "<string>" } '
{ "empty": {} }
Attaches a payment method to a customer.
Bearer authentication using an access token. Format: Bearer <access_token>
AttachStripePaymentMethodRequest is the request to attach a payment method.
The unique ID of the user.
The payment method ID.
A successful response.
AttachStripePaymentMethodResponse is the response after attaching a payment method.
Empty response.