Support

Update an existing SKU.

mutation

Requires commerce.product:write.

Update an existing SKU.

status must be DRAFT, ACTIVE, or ARCHIVED.
For SimpleMoneyInput.value, send 1999 for $19.99 USD, not 19.99.

Required headers

HeaderRequiredDescription
x-store-idYesID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED".

Go to Authentication for credential setup.

Arguments

  • id String! required
  • input MutationUpdateSkuInput! required
    • backorderLimit Int optional
    • code String optional
    • cost Int optional — DEPRECATED. Use unitCost instead. Deprecated: This cost field cannot specify currency code. Use unitCost instead.
    • description String optional
    • disableInventoryTracking Boolean optional
    • disablePriceOverrides Boolean optional
    • disableShipping Boolean optional
    • eanCode String optional
    • gtinCode String optional
    • htmlDescription String optional
    • HTMLDescription String optional — Deprecated: Use htmlDescription instead.
    • isbnCode String optional
    • label String optional
    • metafields [UpsertMetafieldInput!] optional
      • key String! required
      • namespace String! required
      • type String! required
      • value String! required
    • name String optional
    • shortLabel String optional — Deprecated: Use channel-specific overrides for short labels.
    • status String optional — The status of the SKU, one of DRAFT, ACTIVE, ARCHIVED.
    • unitCost SimpleMoneyInput optional
      • currencyCode String! required
      • value Float! required — Integer minor units in the smallest currency unit (for USD, cents: 1999 = $19.99). Send 1999, not 19.99.
    • unitOfWeight String optional — The unit of weight, one of KG, GR, LB, OZ.
    • upcCode String optional
    • weight Float optional

Possible returns

  • SKU SKU — A SKU represents a stock keeping unit (SKU) in the catalog.

Last updated on

How is this guide?