Skip to main content
Version: v1.0.0(int)

W076: Create SKU

Creates a new finished-goods SKU. Triggered from the SKUs page, "New SKU".

Steps

  1. Check code uniqueness. Verify code is unique within this org (case-insensitive).

  2. Validate type if supplied. If typeId is set, confirm it exists.

  3. Insert the SKU. Call Products.createSku.

Returns

The new SKU.

Business rules

  • Code is unique per org.
  • Type is optional.

Errors

  • ValidationError. Duplicate code.
  • NotFoundError. Type was not found.