Skip to main content

Syntax

Description

The wallet metafield contains all available rewards and store credit accounts for the customer in a single JSON object. This includes discount codes, gift cards, product rewards, and store credit balances. The data is automatically updated when rewards are earned, used, or expired.
The wallet metafield contains JSON data that must be parsed using Liquid’s parse_json filter before accessing individual properties.

Properties

Type: JSON Object Namespace: lantern

Return Values

Wallet Structure

The wallet object contains two main arrays:

items Array (Rewards)

Each reward item contains the following properties:

storeCreditAccounts Array

Each store credit account contains the following properties:

Examples

Basic Wallet Display

Wallet Summary Widget