Category Files
Labelled file attachments on a category (guides, lookbooks, price lists).
Updated
Category Files
Categories can carry labelled file attachments (a buyer's guide PDF, a lookbook, a wholesale price list, etc.). They are embedded on the category detail payload.
// all files, or only those with a given label
const files = await dash.categories.getFiles("flower", { label: "price-list" })
// first file matching a label, or null
const guide = await dash.categories.getFile("flower", "buyers-guide")
// each file: { id, label, url, filename, content_type, size }
Files come back on GET /api/storefront/categories/<slug> under
category.files; the SDK filters them by label for you.