Categories

Categories allow you to organize your Products into hierarchical groups. That means these groups can also contain other Categories, which can then be viewed in a tree structure.

The Category Object

Attribute

Type

Description

id

string

The unique identifier for this category

type

string

Represents the type of object being returned

name

string

The name of the category

slug

string

A unique slug identifier for the category

description

string

Any description for this category

status

string

live or draftdepending on the category status

meta

object

relationships

object

The meta Object

Attribute

Type

Description

meta.timestamps

object

Timestamps for this category

meta.timestamps.created_at

string

The creation date of this category

meta.timestamps.updated_at

string

The updated date of this category

The relationships Object

Attribute

Type

Description

relationships.products

array[object]

An array of products for this category

relationships.products.data

array[object]

An array of relationships from this category to products resources

relationships.products.data.type

string

Always product

relationships.products.data.id

string

the unique identifier of the related product

Last updated