# Your data

Most of what FranchiseSEE shows comes straight from your POS, pulled automatically every night.
Nobody at the store has to export or key anything in. Other sources, such as review ratings,
store audits, food cost and turnover, arrive by connection or by upload. Your own figures can be
sent in through the REST API. To bring in another source, talk to your FranchiseSEE team.

## What comes in, and how

| Data | How it arrives | How often |
|------|----------------|-----------|
| **Sales and labor**: checks, line items, discounts, payments and shifts | Pulled from your POS | Every night after close |
| **Loyalty rewards** *(optional)* | Read from the rewards redeemed on your POS checks | Nightly |
| **Loyalty members** *(optional)* | From your loyalty platform's daily export | Daily |
| **Online review ratings** *(optional)* | Read from online review sites | Weekly |
| **Rating reports** *(optional)* | Uploaded by HQ as a spreadsheet | When uploaded |
| **Store audits** *(optional)* | From your audit provider where connected, or uploaded or entered by HQ | Nightly when connected |
| **Store compliance** *(optional)* | Marked by HQ in the app, imported from CSV or sent through the API, or submitted by franchisees for HQ to approve | When recorded |
| **Food cost** *(optional)* | Food cost reports uploaded by HQ | Per report |
| **Employee retention** *(optional)* | Turnover reports uploaded by HQ | Per report |
| **Custom metrics** | Sent through the REST API, or worked out from your item categories | As sent, or nightly |

Uploads take an Excel (.xlsx) or CSV file. Competitions load their standings as described in
[Competitions](https://franchisesee.com/docs/features/competitions.md).

## How it works

### The nightly load

Each night, after your stores close, FranchiseSEE pulls the day's checks and shifts for every
active store. When the load finishes, leaderboards refresh and every store's SEEScore is
recalculated.

The nightly load also catches up on late changes:

- **Late checks.** A check your POS delivers after its day was first loaded is picked up the
  next night, and that day's numbers are rebuilt.
- **Labor corrections.** Recent days of shifts are checked again, so a punch corrected at the
  POS flows through to labor figures.

### Labor rules

- **Salaried jobs.** Shifts under jobs set up as salaried are left out of labor cost and labor
  hours, which is why labor metrics are labeled *Variable*.
- **Shifts the POS closed on its own.** A shift that looks like a forgotten clock-out counts only
  up to the end of the store's last hour with sales that day. A shift that began after that is
  left out of labor totals. See [Timekeeping](https://franchisesee.com/docs/features/timekeeping.md).

### Custom metrics

Custom metrics are your own measures, set up for your brand by your FranchiseSEE team. They get
their values in one of two ways:

- **Sent through the API.** Your systems post a value for each store and day, identifying the
  store by its ID in your systems. Sending a day again corrects it, and a batch can cover many
  days, so history can be backfilled. This needs an API token with permission to create, made
  by an HQ account that can manage locations. See [REST API](https://franchisesee.com/docs/api/getting-started.md).
- **Worked out from your item categories.** A metric can be the net sales or units sold of an
  item category group. Its values come from your POS line items, so nothing needs to be sent.
  Moving a category into or out of the group changes the metric's whole history.

See [Metrics](https://franchisesee.com/docs/features/metrics.md) for how custom metrics appear.

To take your data out of FranchiseSEE, see [Reports & exports](https://franchisesee.com/docs/features/reports-and-exports.md).

## The Data loads page

The **Data loads** page shows whether last night's load landed. **Data current through** gives
the latest business day in your reports. **Stores reporting** counts the stores the latest load
pulled and names any that are missing; a store with no sales that day still counts as loaded.
**Late checks healed** counts checks that arrived late and were rebuilt. Below the tiles are a
night-by-night chart of checks loaded and a log of every load.

## Who sees it

- **HQ** sees Data loads for every store. Only HQ users can upload reports, enter audits and
  record compliance, and only those whose role has permission to manage that data.
- **Franchisees** see Data loads for their own stores only. Data loads needs the *View history*
  permission, which HQ and franchisee roles have by default.
- **Connected AI apps and the API** read the same data, scoped to what the user's login can see.
  See [Data scope and permissions](https://franchisesee.com/docs/ai/data-scope-and-permissions.md).

## Related

- [Metrics](https://franchisesee.com/docs/features/metrics.md): every figure built from this data.
- [Reports & exports](https://franchisesee.com/docs/features/reports-and-exports.md): getting data back out.
- [REST API](https://franchisesee.com/docs/api/getting-started.md): sending custom metric values.
