Create a new plan

Creates a new plan for a product.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Request

Body
productIdstringRequired>=1 character

Paid product ID, for example prod_abc123

attributeslist of objectsRequired
namestring or nullOptional
externalIdstring or nullOptional
Your stable identifier for this plan
supportedCurrencieslist of stringsOptional
isDefaultbooleanOptional

Response

201
idstring
productIdstring
namestring or null
externalIdstring or null
supportedCurrencieslist of strings
isDefaultboolean
statusenum
upgradePathOrderdouble or null
archivedAtdatetime or null
createdAtdatetime
updatedAtdatetime
attributeslist of objects

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error