---
title: "Duplicate Commission Structure"
method: POST
path: "/inventory/commission-structures/{commission_structure_id}/duplicate"
tags: ["provider", "inventory"]
---

# Duplicate Commission Structure

`POST /inventory/commission-structures/{commission_structure_id}/duplicate`

Duplicate a commission structure with its commissions but without providers

## Path parameters

- `commission_structure_id` string, required

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Response `200`

Successful Response

- CommissionStructureDetailOutput
  - `id` string — Unique identifier for the commission group
  - `name` string, required — Name of the commission group
  - `description` string, nullable — Optional description of the commission group
  - `commissions` CommissionDetailOutput[], nullable — Commissions in this group
    - `id` string — Unique identifier for the commission
    - `itemId` string, nullable — Optional item this commission applies to (includes services and packages)
    - `itemCategory` string, nullable — Optional category name this commission applies to (references category.name)
    - `itemIsPhysical` boolean, nullable — Optional filter by whether item is physical
    - `totalSalesAmount` integer, nullable — Optional minimum total sales amount threshold in cents
    - `commissionStructureId` string, required — Commission structure this commission belongs to
    - `percentage` number, nullable — Commission percentage (0.0 to 1.0)
    - `amount` integer, nullable — Fixed commission amount in cents
    - `deductCost` boolean — Whether to deduct item cost before calculating commission (services only)
    - `isArchived` boolean — Whether the commission is archived
    - `updatedDate` string, date-time, nullable — When the commission was last updated
    - `createdDate` string, date-time, nullable — When the commission was created
    - `item` ItemTiny
      - `id` string — Unique identifier for the item
      - `name` string, required — Name of the item
      - `brandName` string, nullable — Optional brand name of the item
      - `description` string, nullable — Optional description of the item
      - `price` integer, required — Price of the item in cents
      - `category` string, nullable — Category name (references category.name)
      - `unit` 'AMPOULES' | 'APPLICATORS' | 'BOTTLES' | 'BOXES' | 'CAPSULES' | 'CUPS' | 'DOSES' | 'G_PER_ML' | 'GRAMS' | 'IU' | 'IU_PER_ML' | 'OUNCES' | 'FLUID_OUNCES' | 'KG' | 'KITS' | 'LITERS' | 'MCG' | 'MG' | 'MG_PER_ML' | 'ML' | 'MMOL' | 'MICROGRAM_PER_ML' | 'PACKS' | 'PAIRS' | 'PATCHES' | 'PERCENTAGE' | 'PIECES' | 'POUCHES' | 'ROLLS' | 'SACHETS' | 'SHEETS' | 'SPRAYS' | 'STRIPS' | 'SYRINGES' | 'TABLETS' | 'TABLETS_PER_DAY' | 'TESTS' | 'TUBES' | 'UNITS' | 'VIALS' | 'TREATMENTS' | 'SESSIONS' | 'PULSES' | 'JOULES' | 'CENTIMETERS' | 'THREAD_COUNT' | 'INJECTIONS' | 'WRINKLE_UNITS' | 'POUNDS' | 'FEET' | 'INCHES'
      - `isPhysical` boolean — Whether the item is physical
      - `isArchived` boolean — Whether the item is archived
      - `internalNotes` string, nullable — Optional internal notes for the item
      - `taxable` boolean — Whether the item is subject to taxes
      - `sortOrder` integer, nullable — Optional sort order for the item
      - `allowCustomPricing` boolean — Whether custom pricing is allowed for this item
      - `type` 'ITEM' | 'PRODUCT' | 'MEDICATION' | 'SERVICE' | 'PACKAGE' | 'MEMBERSHIP'
  - `providers` ProviderTiny[], nullable — Providers in this group
    - `id` string, required
    - `firstName` string, required
    - `lastName` string, nullable
    - `email` string, nullable
    - `createdDate` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) · [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decodahealth/decoda-api/revisions/4939a65a89d2/schema)
