Skip to main content
POST
/
v1
/
subscriptions
Create a subscription
curl --request POST \
  --url http://localhost:6900/v1/subscriptions \
  --header 'Content-Type: application/json' \
  --data '
{
  "customerId": "<string>",
  "planId": "<string>",
  "priceId": "<string>",
  "couponId": "<string>"
}
'
{
  "id": "<string>",
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.revstack.dev/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
customerId
string
required
Minimum string length: 1
planId
string
required
Minimum string length: 1
priceId
string
required
Minimum string length: 1
couponId
string

Response

Subscription created

id
string
required
success
boolean
required