PostShopify loyalty program

Backfill Points for Past Orders at Launch

Backfilling credits customers for orders placed before you launched. LoyalXP offers your live earning rate, a one-time history rate or a flat number of points per customer, and shows the total and its liability before anything is written, so launch day starts with history instead of zero.

#When should you backfill?

When you want past purchases to count. A regular who has bought five times and sees a zero balance on launch day assumes nothing is happening. Backfill fixes that.

Skip it if you are importing balances from another app. Those balances already include the old orders, so doing both would pay the same customers twice. This is a reasoning point, not a check the software makes for you: pick one route per customer.

#Where do you find it?

It is the Existing customers step of setup, on the second card, "Credit past orders?". Choose "Start fresh" to skip, or "Credit history" to continue. The first card, "Bring over existing balances?", is the CSV import from another app.

#What are the three methods?

  • Same as live earning rate. Every past order is run through the rules you just set: slabs, exclusions, what counts. Past orders earn as they would have if you had launched earlier.
  • A one-time history rate. One rate for this run only, for example a lower one for history than for new orders. Points are the order's base divided by the rate, rounded down.
  • Flat points per customer. One fixed number for each customer who has any eligible past order. It is per customer, not per order.

Then pick the window: last 3, 6 or 12 months, or All history. Press "Fetch past orders" and LoyalXP pulls them from Shopify.

#Which orders are left out?

Some orders are skipped on purpose: guest orders (no account to credit), cancelled and unpaid orders, redacted customers, orders in another currency than the program, order types you have excluded, orders worth nothing after exclusions, fully refunded orders, and orders already credited. That last one means an overlap with an earlier run does not double-credit.

Refunds are netted off: a partly refunded order earns on what is left. Paying with a gift card or store credit does not earn, as in live earning.

#What do you see before it counts?

A preview with customers credited, orders counted, points and the liability: those points valued at your point value. It also lists the top customers by points. Nothing is written until you commit, and the points land in the ledger with the reason "backfill". After a committed run, the step tells you past orders were already credited for this programme.

Here is an EXAMPLE with invented numbers. Live rate: 1 point per ₹10. Point value: ₹0.50 each. Window: last 6 months. Three eligible orders for one customer: ₹1,500 paid, ₹2,000 paid, and ₹1,000 paid then ₹400 refunded.

  • Order 1: 1,500 divided by 10 = 150 points.
  • Order 2: 2,000 divided by 10 = 200 points.
  • Order 3: net 600 divided by 10 = 60 points.

Total 410 points, worth 410 times 0.50 = ₹205 in liability. On a flat 100 points per customer instead, that customer gets 100 whatever the number of orders.

#What about the 60-day limit?

Shopify only gives an app the last 60 days of orders unless it has the read_all_orders permission. Shopify's access scopes page says this permission covers orders beyond the default window of the last 60 days. If you pick a longer window without it, the run stops with a "read_all_orders_missing" error rather than quietly backfilling less.

#What goes wrong?

  • Import and backfill together. Choose one source of truth per customer.
  • Flat read as per order. It is one amount per customer.
  • A rich history rate. A generous rate on a year of orders can create a large liability on day one. Read the preview figure first.
  • Launching before the preview. Always fetch and read it.

Points from backfill count as issued in the liability report. The feature sits inside $15 a month with every feature, 250 paid orders included. See how to migrate from Smile.io for the import route and the ecommerce loyalty guide for the wider picture. Request early access.

Frequently asked questions about LoyalXP and this topic

Can I preview?

Yes. The preview shows customers, orders, points and liability, and nothing is written until you commit.

Does backfill affect levels?

Backfill credits points to the ledger with the reason "backfill". Whether history also counts towards a level is not covered here, so test it on the free trial before you rely on it.

Can I do it twice?

Orders already credited are skipped, so an overlapping run does not double-credit them. Still, avoid repeating a run you do not need.