Skip to main content
POST
/
api
/
v1
/
addons
JavaScript
import Stigg from '@stigg/typescript';

const client = new Stigg({
  apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});

const response = await client.v1.events.addons.createAddon({
  id: 'id',
  displayName: 'displayName',
  productId: 'productId',
});

console.log(response.data);
{
  "data": {
    "id": "addon-extra-seats",
    "displayName": "Extra Seats",
    "description": "Additional team member seats",
    "productId": "product-starter",
    "status": "PUBLISHED",
    "pricingType": "PAID",
    "billingId": "price_1234567890",
    "versionNumber": 1,
    "isLatest": true,
    "entitlements": [
      {
        "type": "FEATURE",
        "id": "feature-advanced-analytics"
      },
      {
        "type": "CREDIT",
        "id": "api-calls"
      }
    ],
    "metadata": {},
    "createdAt": "2026-12-25T16:19:04.237Z",
    "updatedAt": "2026-04-04T18:40:30.337Z",
    "maxQuantity": 100,
    "dependencies": [
      "addon-premium-support"
    ]
  }
}

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-API-KEY
string
required

Server API Key

Body

application/json

Request to create a new addon

id
string
required

The unique identifier for the entity

Required string length: 1 - 255
displayName
string
required

The display name of the package

Maximum string length: 255
productId
string
required

The product id of the package

Required string length: 1 - 255
description
string | null

The description of the package

Maximum string length: 255
pricingType
enum<string> | null

The pricing type of the package

Available options:
FREE,
PAID,
CUSTOM
billingId
string | null

The unique identifier for the entity in the billing provider

Maximum string length: 255
maxQuantity
integer | null

The maximum quantity of this addon that can be added to a subscription

status
enum<string>

The status of the package

Available options:
DRAFT,
PUBLISHED,
ARCHIVED
metadata
object

Metadata associated with the entity

Response

The newly created addon object.

Response object

data
Addon · object
required

Addon configuration object