Enroll your existing customers into your loyalty program. This will use the enrolment rules in Loyalty Settings and apply to the selected tiers.
An option to include customers’ past orders will be available by enabling Include Orders.
It will automatically calculate points for every order done in the past. The points will be added to the customers’ balance.