Skip to main content
Appstle Loyalty uses Shopify metafields and customer tags to persist loyalty data, power storefront widgets, surface product reviews, and enable automation in Shopify Flow and Liquid themes. This page documents every metafield and tag — what it contains, when it is updated, and how to use it in your integration or theme.

Metafield namespaces

Appstle Loyalty writes to three namespaces across shop, customer, and product resources.
The $app:appstle_loyalty namespace uses Shopify’s app-owned metafield protection. Only the Appstle Loyalty app can read and write it. Themes, Liquid templates, and other apps cannot access it.

Shop metafields — appstle_loyalty

These metafields store the complete loyalty program configuration. They are written whenever a merchant saves settings in the Appstle admin, and updates are immediate.

Core configuration

Widget configuration

Points configuration

Feature flags

VIP tier configuration

Referral configuration

Points expiration

Customer metafields — appstle_loyalty

customer_loyalty

The customer loyalty profile is stored as a JSON metafield on each enrolled customer. It is updated by the Appstle Lambda processor after every loyalty event — points earned or redeemed, VIP tier changes, referrals, social engagement, and more. Updates are near real-time, typically within a few seconds. Access in Liquid:
Full schema:

Customer metafields — $app:appstle_loyalty

customer_rewards

Stores the customer’s unredeemed reward discount codes. This metafield is private — it is used by Shopify’s discount function to auto-apply rewards at checkout and cannot be read by themes, Liquid templates, or other apps.

Product metafields — appstle_review

Review metafields are written on individual product resources when a review is approved, updated, or deleted. Access them in Liquid via {{ product.metafields.appstle_review.<key> }}.
The native rating type integrates directly with Shopify’s built-in rating display and Google rich results.

Shop metafields — appstle_review

These metafields power the review carousel widget on your homepage.

Customer tags

Appstle Loyalty applies tags only to customer resources — not orders or products.

VIP tier name tags

When a customer achieves or is assigned a VIP tier, the tier’s name is applied as a customer tag (e.g., Silver, Gold, Platinum). When the tier changes, the old name tag is removed and the new one is added. Only one tier name tag is active at a time. Tags are applied by:
  • Automatic tier calculation based on spend, points, or order thresholds
  • Manual tier assignment in the Appstle admin
  • Referral flow tier assignment
  • Shopify Flow Assign VIP Tier action
  • Bulk operations

Additional VIP tier tags

Each VIP tier can be configured with a comma-separated list of additionalTags. These are applied alongside the tier name tag and removed together with it on tier change. For example, a Gold tier configured with additionalTags = "premium-member, vip-support" applies three tags when a customer reaches Gold: Gold, premium-member, vip-support. All three are replaced when the customer moves to the next tier.

Referral tags

When a referral is accepted by both parties, permanent tags are applied to record the relationship. These tags are never removed. Example: Customer A (ID 1111) refers Customer B (ID 2222):
  • Customer A receives tag referral:2222
  • Customer B receives tag referred:1111

Product review tag

The tag Wrote Appstle Web Review is permanently applied to any new Shopify customer account that is created as a result of a product review submission (i.e., the customer did not already have a Shopify account).

Frequently asked questions

Yes. Metafields in the appstle_loyalty and appstle_review namespaces are public. Access them in Liquid via {{ customer.metafields.appstle_loyalty.customer_loyalty }} or {{ product.metafields.appstle_review.rating }}. The customer_rewards metafield in the $app:appstle_loyalty namespace is private and cannot be accessed from Liquid or other apps.
Customer loyalty metafields are updated by the Lambda processor after every loyalty event. Updates are near real-time — typically within a few seconds of the event occurring.
When a customer’s tier changes, the old tier name tag and all its configured additionalTags are removed. The new tier name tag and its additionalTags are then added. Only one tier’s tags are active at any given time.
No. The customer_rewards metafield uses the $app:appstle_loyalty private namespace, which can only be read and written by the Appstle Loyalty app. This prevents discount codes from being exposed to unauthorized apps or themes.