Stripe Subscription
POST/v1/stripe/subscribe
Create stripe subscription checkout session url and send it to front end
Request
- application/json
Body
required
- MOD1
Organization ID
Possible values: [atlas_demo, atlas_enterprise, atlas_team, atlas_plus, atlas_research, atlas_starter, atlas_startup, atlas_pro, mock, free_test_user, pro, enterprise, free, research]
Default value: pro
The master list of available plans for organizations.
promo_code
object
Promotion code
anyOf
string
Should a free trial period be enabled for the plan.
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
The ID of the subscription
The stripe client secret for the payment entering session
Possible values: [payment, setup]
The type of intent to create
applied_promo_code
object
The applied promo code, if successful
anyOf
string
promo_code_description
object
Description of promo code (metadata.descrption in Stripe), if available
anyOf
string
{
"subscription_id": "string",
"client_secret": "string",
"intent_type": "payment",
"applied_promo_code": "string",
"promo_code_description": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}