Stripe Payments
Create a subscription
Creates a Stripe Subscription for recurring payments. Returns clientSecret for frontend payment confirmation.
post/v1/payments/create-subscription
Request
- Base URLhttps://api.miaai.chat (the document declares no server; this is the origin it was published from)
- URLhttps://api.miaai.chat/v1/payments/create-subscription
- AuthHTTP bearer
Request body
Example request
{
"priceId": "price_xxx",
"planId": "premium_yearly",
"email": "user@example.com",
"customerId": "cus_xxx",
"promotionCode": "promo_1TN5jQACV98ZMZrYJdJO9PgM",
"coupon": "1UVQZFHK"
}Response
Subscription created successfully
Example response
{
"clientSecret": "pi_xxx_secret_xxx",
"subscriptionId": "sub_xxx",
"customerId": "cus_xxx"
}Changes
No recorded changes to this operation across all 1 revision of this API.