Products

Products are the core resource to any Moltin project. They can be associated by category, collection, brands, and more.

Product inventory is managed separately. If you wish to increment and allocate stock levels, see the Product Inventory API

Products with a live status will only be returned when requesting via implicit authentication.

The Product object

Attribute

Type

Description

id

string

The unique identifier for this product

type

string

Represents the type of object being returned. Always: product

name

string

A human readable name for this product

slug

string

A human readable slug value. Must be unique

sku

string

A unique SKU value

manage_stock

boolean

This should be true if you wish to use the Inventory API to manage stock

description

string

A human readable description of the product

price

An array of prices for this product in different currencies. Also see: The price object below.

status

string

live or draft

commodity_type

string

physical or digital

meta

Additional information calculated for this product. Also see: The meta object below.

relationships

Related resources. Also see: The relationships object below.

The price object

Attribute

Type

Description

price[].amount

integer

Value of the price in the lowest denomination for that currency

price[].currency

string

Currency code of this price (3 letter ISO)

price[].includes_tax

boolean

true if relevant taxes have been included in the price false if not

The meta object

Attribute

Type

Description

meta.timestamps

object

Timestamps for this product

meta.timestamps.created_at

string

The creation date of this product

meta.timestamps.updated_at

string

The last updated date of this product

meta.stock

object

Stock information for this product

meta.stock.level

string

The stock level for this product

meta.stock.availability

string

in-stock or out-stock

meta.display_price

object

Formatted display prices based on the currency settings for this request

meta.display_price.with_tax

object

Tax inclusive prices for this product

meta.display_price.with_tax.amount

integer

The raw total of this product (includes tax)

meta.display_price.with_tax.currency

string

The currency this display price has been formatted for

meta.display_price.with_tax.formatted

string

The tax-inclusive formatted total based on the currency

meta.display_price.without_tax

object

Tax-exclusive prices for this product

meta.display_price.without_tax.amount

integer

The raw total of this product (excludes tax)

meta.display_price.without_tax.currency

string

The currency this display price has been formatted for

meta.display_price.without_tax.formatted

string

The tax exclusive formatted total based on the currency

meta.variations

array[object]

An array of variations attached to this product

meta.variations.id

string

The variation ID

meta.variations.name

string

The variation name

meta.variations.options

array[object]

An array of options attached to this variation

meta.variations.options.name

string

The variation name

meta.variations.options.description

string

A description of the option

meta.variation_matrix

object

A matrix of option IDs to child product IDs

The variations matrix is only returned when getting a product by ID

The relationships object

Attribute

Type

Description

relationships.variations

object

Relationships information regarding variations for this product (hidden, if no variation relationships exist)

relationships.variations.data

array[object]

An array of relationships from this product to variation resources

relationships.variations.data.type

string

Always product-variation

relationships.variations.data.id

string

The ID of the related variation

relationships.files

object

Relationships information regarding files for this product (hidden, if no file relationships exist)

relationships.files.data

array[object]

An array of relationships from this product to file resources

relationships.files.data.type

string

Always file

relationships.files.data.id

string

The ID of the related file

relationships.main_image

object

Relationships information regarding main_image for this product (hidden, if no main_image relationships exist)

relationships.main_image.data

array[object]

An array of relationships from this product to main_image resources

relationships.main_image.data.type

string

Always main_image

relationships.main_image.data.id

string

The ID of the related file

relationships.categories

object

Relationships information regarding categories for this product (hidden, if no categories relationships exist)

relationships.categories.data

array[object]

An array of relationships from this product to category resources

relationships.categories.data.type

string

Always category

relationships.categories.data.id

string

The ID of the related category

relationships.collections

object

Relationships information regarding collections for this product (hidden, if no collections relationships exist)

relationships.collections.data

array[object]

An array of relationships from this product to collection resources

relationships.collections.data.type

string

Always collection

relationships.collections.data.id

string

The ID of the related collection

relationships.brands

object

Relationships information regarding brands for this product (hidden, if no brand relationships exist)

relationships.brands.data

array[object]

An array of relationships from this product to brand resources

relationships.brands.data.type

string

Always brand

relationships.brands.data.id

string

The ID of the related brand

Last updated