Square Customer Lookup with Loyalty Balance

Ask the agent for a customer by name, email, or phone. It queries the Customers API, joins with Loyalty and Orders, and returns lifetime spend, loyalty stars, tier, and last visit in one clean summary.

WhatsApp DMcustomerslookuployalty

Conversation example

Pull up Priya D. — she's a regular at Main St. I want to comp her next drink.

http_request → Square Customers API

Searching /v2/customers for Priya D. and joining with Loyalty + Orders...

Customer: Priya D. ID: CUST_4822 Phone: +1 415 555 0188 Customer since: Sep 2, 2024 Lifetime stats: - Visits: 86 - Total spent: $1,142.60 - Avg ticket: $13.29 - Favorite item: Cold Brew 16oz (32 orders) - Last visit: 2 days ago at Main St Loyalty: - Stars: 2 (just redeemed $5 off) - Tier: Silver - Rewards redeemed lifetime: 7 I can add a $0 custom item 'Thanks for being a regular' to her next ticket via the Orders API so the comp goes on automatically when she swipes in. Want me to set that up?

More Square use cases

Deploy this in minutes

Create a LunoGen agent, connect Square, and start running this workflow from WhatsApp today.

Back to Square