Skip to main content

Add Product Previous SKU

POST 

/api/products/:product/sku-aliases

Add a previous / alternate SKU to a product.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body fields:

  • sku (string, required, max 255) — the code. Leading/trailing spaces are trimmed. It must not be any product's current SKU, nor another product's previous SKU (compared case-insensitively).
  • note (string, optional, max 500) — why the code is kept.

Returns 201 with the new record, or 422 naming the product that already holds the code.

Authentication: Requires Bearer token with product edit permission.

Request​

Responses​

Created

Response Headers
    Content-Type