curl --request POST \
--url https://revstack.dev/v1/subscriptions \
--header 'Content-Type: application/json' \
--data '
{
"customerId": "<string>",
"planId": "<string>",
"priceId": "<string>",
"couponId": "<string>"
}
'{
"id": "<string>",
"success": true
}Creates a new subscription linking a customer to a plan and price.
curl --request POST \
--url https://revstack.dev/v1/subscriptions \
--header 'Content-Type: application/json' \
--data '
{
"customerId": "<string>",
"planId": "<string>",
"priceId": "<string>",
"couponId": "<string>"
}
'{
"id": "<string>",
"success": true
}