# Connect Punchh loyalty

If your brand runs its loyalty program on Punchh, you can send FranchiseSEE a daily file of
per-store loyalty totals. FranchiseSEE then shows, for every store:

- **New members**: guests whose first-ever check-in at your brand was at that store. This is how
  a signup is credited to a store; an app download has no store.
- **Signups per 1,000 checks**: new members against the store's POS checks, so small and large
  stores compare fairly.
- **Loyalty check-ins per 100 checks**, and how check-ins were credited: at the register, on
  online orders, or by a scanned receipt.

These appear in the **Customer metrics** row of the dashboard, on the **Customers** tab of Sales
Analytics, and to your [connected AI apps](https://franchisesee.com/docs/ai/overview.md).

You set this up once in the Punchh admin. It takes about ten minutes.

## What FranchiseSEE receives

The file holds **store totals only**: counts of check-ins, new members, redemptions and spend for
each store, for one day. It contains no guest names, emails, phone numbers, birthdays, addresses
or member ids.

FranchiseSEE checks every file's columns before reading it. If a file contains any column that
could identify a guest, FranchiseSEE refuses the whole file and imports nothing from it.

## Before you start

You need:

- **A Punchh admin login** that can create Data Export templates and schedules. In the Punchh
  admin these are under **Data Sharing** → **Data Export**.
- **Your FranchiseSEE inbox address and file prefix.** Ask FranchiseSEE support for them, and
  agree the date your daily schedule will start: support sets up your brand to receive the files
  before then. The address is private to your brand, and FranchiseSEE accepts only files whose
  names start with your prefix.

### Check your store numbers

FranchiseSEE matches each row in the file to a store by its **store number**. In Punchh, that is
the **Store Number/Identifier** on each location (**Store Locations** → **All Store Locations** →
open a location). In FranchiseSEE, it is the **External ID** on the **Locations** page, which is
your POS's store number.

The two must be the same. A store whose numbers differ is skipped every day until they match.
Check a few stores now, and tell FranchiseSEE support about any that differ before you change
anything in Punchh. Other systems, such as your online ordering, may rely on Punchh's store
numbers too.

## 1. Create the export template

1. In the Punchh admin, go to **Data Sharing** → **Data Export** and choose
   **New Data Export Template**.
2. **Name:** `FranchiseSEE – All Locations, Daily`.
3. **Date Range:** leave it as it is. A daily schedule ignores it.
4. **Locations:** **All Locations**.
5. **Header:** leave both boxes unticked. FranchiseSEE reads the report title and the column
   headers.
6. Under **Data Exports**, tick **Locations Data** only. Do not tick any other dataset: the others
   contain guest-level records.
7. Select **Locations Data** to open its field lists. **Selected Fields** must include all of
   these:
   - Store Number
   - First Loyalty Checkins
   - Loyalty Checkins
   - System Checkins
   - Online Checkins
   - Barcode Checkins
   - Users With Checkins
   - Redemption Count
   - Users With Redemptions
   - Total Spend

   The other store-level fields Punchh selects by default, such as Location Name or Average
   Checkins Per User, can stay; FranchiseSEE ignores them.

8. **Address, State, City and Zip Code must stay under Available Fields**, not selected.
   FranchiseSEE refuses a file that carries any of them.
9. Choose **Save & Create Schedule**.

## 2. Schedule it daily

Punchh opens **New Data Export Schedule** with your template as the **Source**.

1. **Frequency:** **Daily**.
2. **Start Date:** tomorrow.
3. **Start Time:** **05:00 AM**.
4. **Timezone:** the timezone your stores report their business day in, for example
   **Eastern Time (US & Canada)**. Each daily file covers the previous day, midnight to midnight,
   in this timezone.
5. **Email Recipients:** your FranchiseSEE inbox address. Press Enter after it. You can add your
   own address too, to get a copy.
6. **FTP Endpoint:** leave empty.
7. **Export File Prefix:** the prefix FranchiseSEE support gave you, exactly as given. It cannot
   contain spaces.
8. Choose **Save Schedule**.

The template now shows a **Daily** schedule marked **Activated**.

## 3. Check the first import

The first file arrives the morning after the start date. Punchh emails a download link, and
FranchiseSEE fetches and imports the file within a few hours.

FranchiseSEE support confirms the first import with you, including any stores that were skipped
because their store numbers didn't match. Files import from the first day, but the new member figures stay hidden
until you and support agree to turn them on, so you can load earlier days first.

If no file arrives for more than a day and a half, FranchiseSEE support is alerted and gets in
touch.

## Load earlier days (optional)

New member figures start from the first daily file. To add history, run one export per past day,
up to two years back:

1. Open your template (**Data Export Templates** → `FranchiseSEE – All Locations, Daily`), set
   **Date Range** to a single day, and choose **Update Data Export Template**.
2. Choose **Add New Schedule** (the **+** beside the template), set **Frequency** to
   **Immediately**, add your FranchiseSEE inbox address and the same **Export File Prefix**, and
   choose **Save Schedule**.
3. Repeat for each day.

> [!IMPORTANT]
> Each run must cover **one day**. A Locations row totals its whole date range, so a week-long
> file can't be split into days, and FranchiseSEE refuses it.

Your daily schedule is unaffected: it always ignores the template's date range.

## Troubleshooting

### Support says a file was refused for columns FranchiseSEE must not hold

A field that could identify a guest, or a store address field (Address, City, State or Zip Code),
was selected in the template.
Open the template and move that field from **Selected Fields** back to **Available Fields**.
The next daily file imports as normal.

### A store is missing from the new member figures

Its Punchh **Store Number/Identifier** doesn't match its **External ID** in FranchiseSEE. See
[Check your store numbers](#check-your-store-numbers).

### Support says files arrived but nothing was imported

Check that the schedule's **Export File Prefix** matches the prefix FranchiseSEE support gave you
exactly. FranchiseSEE refuses files with any other name.

### I changed the template

Changes apply from the next daily run. Removing one of the required fields leaves that figure
blank from then on. Removing **First Loyalty Checkins** or **Store Number** stops the import
entirely.
