Interface Collection

Collection information

interface Collection {
    body_html?: string;
    collection_type: CollectionType;
    created_on: string;
    handle: string;
    id: number;
    image?: CollectionImage;
    products_count: number;
    published: boolean;
    published_at?: string;
    sort_order?: CollectionSortOrder;
    template_suffix?: string;
    title: string;
    updated_on: string;
}

Properties

body_html?: string

Collection description in HTML format

collection_type: CollectionType

Collection type (custom/smart)

created_on: string

Creation timestamp

handle: string

Collection handle (URL-friendly version of title)

id: number

Unique identifier

Collection image

products_count: number

Products count in collection

published: boolean

Whether the collection is published

published_at?: string

Publication timestamp

sort_order?: CollectionSortOrder

Collection sort order

template_suffix?: string

Collection template suffix

title: string

Collection title

updated_on: string

Last update timestamp