To use the Accounts API, install the @wix/loyalty package using npm or Yarn:
@wix/loyalty
npm install @wix/loyalty
or
yarn add @wix/loyalty
Then import { accounts } from @wix/loyalty:
{ accounts }
import { accounts } from "@wix/loyalty";