Skip to main content
POST
/
admin
/
stripe
/
plan
Create a new plan
curl --request POST \
  --url https://nimbussuite.com/api/v1/admin/stripe/plan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "monthlyPrice": 123,
  "yearlyDiscount": 123,
  "requests": 123
}
'
{
  "plan": {
    "id": "<string>",
    "name": "<string>",
    "requests": 123
  },
  "stripe_id": "<string>",
  "stripe_price_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
monthlyPrice
number
required
yearlyDiscount
number
required
requests
number
required

Response

Plan created successfully

plan
object
stripe_id
string
stripe_price_id
string