Alokai

getStoreMeta

Fetches store meta data.

This method sends a GET request to the getStoreMeta endpoint of the Vue Storefront API Middleware. In turn, it receives data from the getStoreMeta endpoint exposed by the BigCommerce API

Signature

declare function getStoreMeta(
	props?: GetStoreMetaParameters,
	options?: MethodOptions
): Promise<GetStoreMetaResponse>;

Parameters

NameRequiredTypeDescription
propsOptionalGetStoreMetaParameters
optionsOptionalMethodOptions

Returns

Returns a response with the site meta data.

Referenced Types

Examples

Fetching site meta data

import { sdk } from '~/sdk.config.ts';

const storeMetaData = await sdk.bigcommerce.getStoreMeta()

Fetching site meta data. Sending it this way, the response can be cached safely.

import { sdk } from '~/sdk.config.ts';

const channel = ...
const storeMetaData = await sdk.bigcommerce.getStoreMeta({ channel })

On this page