Skip to main content
POST
Error

Authorizations

X-Auth-Token
string
header
required

API token generated at Settings > API

Body

application/json
price_id
string
required

Stripe price ID for the subscription plan

Example:

"price_1abc123"

email
string<email>

Customer email address

metadata
object

Additional metadata to attach to the subscription

Response

Subscription created

id
string

Stripe subscription ID

status
enum<string>

Subscription status

Available options:
active,
incomplete,
incomplete_expired,
trialing,
past_due,
canceled,
unpaid,
paused
customer
string

Stripe customer ID

current_period_start
integer

Unix timestamp of current billing period start

current_period_end
integer

Unix timestamp of current billing period end

latest_invoice
string

Latest Stripe invoice ID

client_secret
string | null

Client secret for completing payment if required