Skip to content

Product variants

Open .md

API reference Products and catalog Products

The size and color combinations of a variant product. Each has its own id, price, stock and sale state (on sale or phased out).

9 operations

  • POSTAdd a variant to a product/v1/api/store/{team_slug}/product/{hash_id}/variantAdds one size and color combination to a variant product, returns it, and updates the product's size_data and color_data.
  • GETList a product's variants/v1/api/store/{team_slug}/product/{hash_id}/variantLists the live variants (size and color combinations) of a variant product, paged.
  • GETGet a variant/v1/api/store/{team_slug}/product/{hash_id}/variant/{id}Returns one live variant by its id, with its own sale state (phased_out, phased_out_at, phased_out_by).
  • POSTCheck whether variants can be deleted/v1/api/store/{team_slug}/product/{hash_id}/variant/delete_checkRead-only.
  • PUTUpdate a variant/v1/api/store/{team_slug}/product/{hash_id}/variant/{id}Changes one variant's price, pricing group prices, weight, supplier code and vendor, and returns it.
  • POSTPhase out variants (stop selling them)/v1/api/store/{team_slug}/product/{hash_id}/variant/phase_outPhased-out variants can no longer be added to new sales order or quote lines (422 variant_phased_out).
  • POSTRename sizes and colors of a product/v1/api/store/{team_slug}/product/{hash_id}/variant/rename_optionsEach size or color keeps its id and takes the new label, and a color may take a new hex, on every variant of the product, deleted copies included.
  • POSTPut phased-out variants back on sale/v1/api/store/{team_slug}/product/{hash_id}/variant/resumeNew sales order and quote lines can use them again.
  • DELETEDelete a variant/v1/api/store/{team_slug}/product/{hash_id}/variant/{id}Deletes one variant unless it is in use, hides its stock rows and updates the product's size_data and color_data.