How POS Point Retrieval Works from Login

Architecture for real-time retrieval and display of POS point balance in online store

point retrievalreal-timeomnichannelbalance
3 min read

About This Topic

We built a mechanism to retrieve point balance from the POS system (Smaregi) in real-time for customers logged into the online store.

By enabling customers to check points earned at stores online, we achieve an omnichannel experience.

Why Real-Time Retrieval is Important

Problems with Periodic Batch Sync

Data freshness
Specific ImpactPoints used at store just now not reflected
Customer confusion
Specific ImpactInquiries like 'Points weren't deducted'
Reduced trust
Specific ImpactCan't trust online display
Operational burden
Specific ImpactNeed to handle batch failures

Benefits of Real-Time Retrieval

  • Always display latest point balance
  • Reduced customer inquiries
  • Accurate display even "right after store use"

Overall Architecture

Point Retrieval Flow
1. Customer opens my page

Access my page after login

2. Verify auth token

Authenticated -> Continue / Not logged in -> Login screen

3. Request point retrieval

API call to your server

4. Extract member number from Shopify customer ID

Example: gid://shopify/Customer/12345 -> 12345

5. Search POS customer

Search POS system with member number

6. Get point balance

Get current points, expiration, etc.

7-8. Return result and display

Return to frontend and display point balance on screen

Three Key Points for Implementation

Three important elements are needed to realize this mechanism.

1. Complete Point Retrieval Flow

Detailed explanation of the flow from opening my page to displaying points.

-> Complete Point Retrieval Flow

2. Shopify ID and POS Member Number Mapping

How to use Shopify customer ID as POS member number to link online and offline customers.

-> ID Mapping Mechanism

3. API Authentication and Security

Proper authentication is required since point balance is personal information. Explanation of security design.

-> API Authentication and Security

Customer Screen Image

Displayed Information

Customer name
Display ExampleMr. Taro Yamada
Current point balance
Display Example1,250 pt
Expiration
Display ExampleDecember 31, 2025
Action
Display ExampleUse Points button

Recent Point History

01/15
ContentStore purchase
Points+100pt
01/10
ContentOnline purchase
Points+50pt
01/05
ContentCoupon exchange
Points-500pt

Performance Considerations

Response Time Goals

Auth verification
Duration~100ms
POS API call
Duration~500-800ms
Data formatting/display
Duration~100ms
Total goal
DurationUnder 1 second

Long wait times degrade UX, so loading display improves perceived performance.

Cache Considerations

Benefits of This Mechanism

For Customers

  • Can check latest point balance anytime
  • Accurate display even right after store purchase
  • No stress from "points seem wrong"

For Operations

  • Reduced inquiries about points
  • No complaints from data inconsistency
  • Improved customer satisfaction with omnichannel experience

Related Topics