Skip to main content
POST
Create a new addon

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-admin-api-key
string
required

The API key to access the admin API

Body

application/json
chargeId
string
required

The ID of the charge

Example:

"123e4567-e89b-12d3-a456-426614174000"

subscriptionId
string
required

The subscription ID this addon is associated with

Example:

"123e4567-e89b-12d3-a456-426614174000"

quota
number
required

The quota amount for this addon

Required range: x >= 1
Example:

100

isRenewable
boolean
default:false
required

Whether the addon can be automatically renewed

Example:

true

Response

The addon has been successfully created.