PerspectPerspectDocs
Go to Admin
View as Markdown

Categories

Product categories (taxonomy tree) for a site. Categories support nested hierarchies and are referenced by product listings.

See the API Reference for the full type and function surface, regenerated from source on every build.

Quick Start

const categories = await client.categories.list('my-site');
const created = await client.categories.create('my-site', { name: 'Shoes', slug: 'shoes' });