Skip to content
Documentation
DropUI homepage
Topics

Show a loyalty program card in Feed

Customers have loyalty points but need to search their account for them? A Feed card can show their balance and tier while they browse the store. DropUI reads this information from an existing loyalty programme; it does not award points.

Anna Demo’s example balance: 120 points and Silver tier.

Find the source of the customer’s balance

First, check that your store has a loyalty programme and where customers see their points. Adding a card in DropUI does not create a programme.

You can prepare the title, text, account link and signed-out message in the dashboard. Connecting the balance requires data from your store. If you do not work on its code, give that part to your developer.

Source in DropUIWhat it meansWhat you need
JSON endpointA technical store address returning the signed-in customer’s data in a format software can readThe address path and field names for points, tier, name and signed-in status
Page variablesCustomer data already included in the store page’s codeThe variable names DropUI should read
Custom adapterA connection built specifically for your loyalty programmeIntegration code prepared by a developer

Choose the method your store supports. You do not need all three.

Example: connect a JSON endpoint

Add a loyalty card and choose JSON endpoint. This example contains Anna Demo’s data:

{
  "authenticated": true,
  "memberName": "Anna Demo",
  "points": 120,
  "tier": "Silver"
}

Suppose the store returns it at /api/account/loyalty. This is an example path to implement in your store, not a ready-made DropUI service. Enter that path in the settings and map the fields:

InformationField name in this example
Signed-in statusauthenticated
NamememberName
Pointspoints
Tiertier

true means the customer is signed in. It is a Boolean value, not text in quotation marks. If your programme returns different names or nested data, ask the developer for the correct field paths. The address must use the same domain as the store.

Choosing a data source for an existing loyalty programme.

This setting is shared by loyalty cards in the same Feed.

Prepare the text and account link

For example, write “You have {{ points }} points. Your tier: {{ tier }}”. DropUI replaces the variables with customer data. Add a button linking to the store account or programme rules.

Also prepare fallback text, such as “Sign in to your store account to check your points”. It appears when data is unavailable. Benefits and redemption rules must match your loyalty programme.

When data is unavailable, the preview explains where the customer can check their points.

Check a test account

  1. Use Preview to check the card and fallback message. Demo numbers do not confirm a working connection.
  2. Sign in to a test account on the store. Compare the Feed balance and tier with the customer account.
  3. Open the card’s link and check that it reaches the correct page.
  4. Sign out and reopen Feed. The previous person’s data should no longer be visible.

What to send your developer

You can send this request:

I want to show customers their points balance and tier in DropUI Feed. Please provide a JSON source on the store domain for the signed-in customer, plus the path and field names to enter in DropUI. After sign-out, it must not return the previous customer’s data.

Include the loyalty programme’s name and store address. Once you have the path and field mapping, return to the example above.

Have questions after reading this guide?

Get in touch. We’ll answer your questions and help you with setup, free of charge.

Patryk Surmacz

I’ll walk you through the settings, step by step.