Stripe Payments
Create a subscription
Creates a Stripe Subscription for recurring payments. Returns clientSecret for frontend payment confirmation.
post/v1/payments/create-subscription
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 endpoint across all 1 revision of this API.