Skip to main content
POST
https://api.tensormesh.ai
/
v1
/
billing
/
stripe
/
customers
/
payment-methods
Attach Stripe Payment Method
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": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication using an access token. Format: Bearer <access_token>

Body

application/json

AttachStripePaymentMethodRequest is the request to attach a payment method.

userId
string

The unique ID of the user.

stripePaymentMethodId
string

The payment method ID.

Response

A successful response.

AttachStripePaymentMethodResponse is the response after attaching a payment method.

empty
object

Empty response.