Skip to content

Checkout

POST
/api/billing/checkout
curl --request POST \
--url http://localhost:8080/api/billing/checkout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "plan": "example" }'
Media typeapplication/json
CheckoutIn
object
plan
required
Plan
string
Examplegenerated
{
"plan": "example"
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}