Skip to content

Managing SKUs (V2)

SKUs (Stock Keeping Units) represent the individual purchasable items within a variant group. Each SKU can have its own price, stock, and additional attributes (like RAM or Size).

1. Add a SKU

Adds a new purchasable option to an existing variant group.

Endpoint

POST /v2/products/{productId}/variant-groups/{groupId}/skus

JSON Sample

json
{
  "price": 549.00,
  "quantityInStock": 10,
  "sku": "PHONE-RED-256GB",
  "attributes": {
    "Storage": "256GB"
  }
}

2. Update a SKU

Update the price, stock, or attributes of an existing SKU. Overwriting price or stock is common for sales or restock events.

Endpoint

PATCH /v2/products/{productId}/variant-groups/{groupId}/skus/{skuId}

JSON Sample

json
{
  "price": 529.00,
  "discount": 10,
  "quantityInStock": 25
}

Note: Partial update applies—only provide the fields you want to change (e.g., price or stock level).


3. Remove a SKU

Deletes a specific SKU from its variant group.

Endpoint

DELETE /v2/products/{productId}/variant-groups/{groupId}/skus/{skuId}


Field Descriptions

FieldTypeRequiredDescription
pricedoubleYesBase SKU price (must be greater than 1).
discountdoubleNoOptional discount percentage (0-100%).
quantityInStockintYesNumber of units available for purchase.
skustringNoYour internal Stock Keeping Unit identifier.
attributesmapNoAdditional sub-dimensions (e.g., {"RAM": "8GB"}).

Build with joy