Market

Interface

One active market of the site, as lynkow.markets.list() returns it: a group of countries the merchant sells into, with the languages and the currency they share.

Property

Type

Optional

Description

countries

string[]

No

ISO 3166-1 alpha-2 codes of the countries this market delivers to, upper case and<br>sorted (e.g. ['BE', 'FR', 'LU']). A country belongs to at most one market of the<br>site. Empty when the merchant has not added a country to the market yet.

currency

string

No

ISO 4217 currency code of the market (e.g. 'EUR'), always the site's currency, so<br>every amount the site returns is in it.

defaultLocale

string

No

The language to propose first in this market: a BCP 47 code, always one of locales.

id

string

No

Opaque market id, prefixed 'mkt_' (e.g. 'mkt_01j9z3k4m5n6p7q8r9s0t1v2w3'). Stable;<br>safe to store. It is the value the storefront catalogue and search reads accept as<br>their market parameter.

locales

string[]

No

BCP 47 language codes the market offers (e.g. ['fr', 'en']), to propose to a buyer<br>in one of its countries. Never empty; chosen from the site's enabled languages when<br>the merchant saves the market.

name

string

No

Market name as the merchant set it (e.g. 'Europe'). Always non-empty, at most 120 characters.


MarketList

Interface

The response of lynkow.markets.list(): the site's active markets, oldest first, and in meta the delivery countries checkout accepts. Not paginated: data holds every active market.

Property

Type

Optional

Description

data

Market[]

No

Every active market of the site, oldest first. Empty when the site has none active.

meta

{ checkoutCountries: string[] | null }

Yes

Sent on every response. Typed optional so that a MarketList you build yourself, in a<br>test for example, can leave it out.