Hi, I’ve setup an online store catalog of items with variation via API. There are two pricing options available on the dropdown menu - one for a regular price and one for a member price.
This seems to function as expected but I need a way of controlling member pricing to only members. As it functions now, anyone could select member pricing and checkout.
Is this the best approach to member pricing or is there a better solution with discounts or some other method?
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
You can manage member pricing by using Square’s Customer Groups and Discounts features. Here’s a general approach:
Create a Customer Group for your members using the Customer Groups API.
Create a Discount using the Catalog API. This discount will be the special pricing for your members.
Use the CatalogPricingRule object to apply the discount to the members in the Customer Group. You can do this by setting the customer_group_id field in the CatalogPricingRule object to the ID of the Customer Group you created.
When a customer checks out, you can check if they are part of the Customer Group. If they are, you can apply the discount to their order using the Orders API.
This way, only customers who are part of the Customer Group (your members) will receive the special pricing. Non-members will not have access to this pricing.
This is helpful, thank you. I was looking at Customer Groups API. Steps 1-3 sound doable. I want this entire solution to be pre-configured and function automatically. Step 4 can be setup in advance too, right??
Great, I think that I see the solution using groups with POS and dashboard. I will need to experiment.
What about the context of an online store? I only see applying coupon codes directly at checkout for members unless there’s another way to capture an email and auto apply discounts?
Okay, so your using payment links. In that case the only way would to use a coupon code. If you were using the Orders API with the Web Payments SDK you could use automatic discounts based on the customer_id.