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

W079: Update SKU

Edits a SKU's header fields. Triggered from SKU Detail.

Steps​

  1. Load the SKU. Call Products.getSkuById.

  2. Check code uniqueness if changed.

  3. Validate type if changed. Confirm the new typeId exists.

  4. Apply the patch. Call Products.updateSku.

Returns​

The updated SKU.

Business rules​

  • Code stays unique per org.

Errors​

  • NotFoundError. The SKU or the new type was not found.
  • ValidationError. Code collision.