Skip to main content
POST
/
api
/
v1
/
products
/
{id}
/
duplicate
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 product = await client.v1.products.duplicateProduct('x', { id: 'id' });

console.log(product.data);
{
  "data": {
    "id": "product-revvenu",
    "displayName": "Revvenu",
    "description": "SaaS billing platform",
    "status": "PUBLISHED",
    "multipleSubscriptions": false,
    "metadata": {},
    "productSettings": {
      "subscriptionEndSetup": "DOWNGRADE_TO_FREE",
      "subscriptionCancellationTime": "END_OF_BILLING_PERIOD",
      "subscriptionStartSetup": "FREE_PLAN",
      "subscriptionStartPlanId": null
    },
    "createdAt": "2025-06-13T07:52:29.828Z",
    "updatedAt": "2026-03-16T04:37:16.324Z"
  }
}

Authorizations

X-API-KEY
string
header
required

Server API Key

Path Parameters

id
string
required

The unique identifier of the entity

Required string length: 1 - 255

Body

application/json

Duplicate an existing product with a new unique identifier and optional display overrides.

id
string
required

The unique identifier for the entity

Required string length: 1 - 255
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$
displayName
string

Display name of the product

Maximum string length: 255
description
string | null

Description of the product

Maximum string length: 255

Response

The newly created duplicate product object.

Response object

data
Product · object
required

Product configuration object