@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Class CategoriesResource

    Index
    • Get a single category by URL handle

      Parameters

      • handle: string

      Returns Promise<StorefrontCategory>

    • Get ALL categories for the market (flat list; build the tree from parentId).

      Pages through /categories?page&limit so large trees are never truncated. Against an older API that ignores the paging params (and answers with a plain array), the array is returned as-is.

      Parameters

      • Optionallocale: string

      Returns Promise<StorefrontCategory[]>