Skip to content

Documentation / @frak-labs/core-sdk / actions / getMerchantInformation

Function: getMerchantInformation()

getMerchantInformation(client, options?): Promise<GetMerchantInformationReturnType>

Defined in: actions/getMerchantInformation.ts:17

Fetch the current merchant information (name, rewards, tiers) from the wallet iframe.

Results are cached in memory for 30 seconds by default. Concurrent calls while a request is in-flight are deduplicated automatically.

Parameters

client

FrakClient

The current Frak Client

options?

Optional cache configuration

cacheTime?

number

Time in ms to cache the result. Default: 30_000 (30s). Set to 0 to disable.

Returns

Promise<GetMerchantInformationReturnType>

The merchant information including available reward tiers

See

`GetMerchantInformationReturnType` for the return type shape