Markets

The market object and its fields

A market is made of a merchant, an inventory model and a price list (plus an optional geocoder and tax calculator). Sales channel applications can specify a market scope when obtaining an access token. This way, all the resources (e.g., SKUs, prices, stock items) are automatically filtered (learn more).

The market object

A market object is returned as part of the response body of each successful create, list, retrieve, or update API call.

Field

Type

Description

type

string

markets

id

string

The market unique identifier

links.self

string

The market endpoint URL

attributes.number

integer

Unique identified for the market (numeric)

attributes.name

string

The market's internal name

attributes.facebook_pixel_id

string

The Facebook Pixed ID

attributes.id

string

Unique identifier for the resource (hash).

attributes.created_at

datetime

Time at which the resource was created.

attributes.updated_at

datetime

Time at which the resource was last updated.

attributes.reference

string

A string that you can use to add your own identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool or a CRM.

attributes.metadata

object

Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format.

relationships.merchant

object

The associated merchant.

relationships.price_list

object

The associated price list.

relationships.inventory_model

object

The associated inventoty model.

meta.mode

string

The resource environment (can be one of test or live)