SiteVariable

Interface

One site variable, as lynkow.variables.list() returns it: a named value the merchant defines once in the admin (a phone number, an opening status) and reuses across the site.

The shape is a closed allowlist: the variable's admin label and description are not returned.

Property

Type

Optional

Description

isFallback

boolean

Yes

true when the value is served in another language because the variable has none in<br>requestedLocale. Absent when the request carried no locale.

key

string

No

Key of the variable, the name used in a {{key}} placeholder (e.g. 'phone'). Unique<br>per site and language.

locale

string

No

BCP 47 code of the language the value was served in (e.g. 'fr'). Without a locale on<br>the request, the site's default locale; with one, it differs from requestedLocale on<br>a fallback.

requestedLocale

string

Yes

BCP 47 code the request asked for, as sent in the locale request option or the<br>client's configured locale. Absent when the request carried no locale.

type

"text" | "calendar"

No

Kind of value: 'text' for a plain string, 'calendar' for a schedule whose value<br>is a JSON string you parse with JSON.parse.

value

string

No

The value in the served language. A JSON string when type is 'calendar'.


SiteVariableList

Interface

The response of lynkow.variables.list(). Not paginated: data holds every variable of the site, one per key.

Property

Type

Optional

Description

data

SiteVariable[]

No

Every variable of the site, one per key, sorted by key. Empty when the site has none.