Skip to navigation

Create plan

View as Markdown
Create a plan that sets the price and billing interval customers subscribe to.

Authentication

x-api-keystring
Your API key, using a test key for the sandbox and a live key for production.

Headers

Idempotency-KeystringOptional<=255 characters

Unique key used to safely retry the same state-changing request.

Request

This endpoint expects an object.
namestringRequired<=255 characters
amountdoubleRequired
currencyenumRequired
The currency of the price. Plans are priced in USD.
Allowed values:
billing_intervalenumRequired
Allowed values:
descriptionstringOptional<=2000 characters
featureslist of stringsOptional

Response

Subscription plan created successfully.
messagestring
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error