# Store compliance

Store compliance gives HQ one place to see whether each store meets the programs the brand holds it
to, such as PCI. Each store is marked compliant or not, and a program can count toward the
store's SEEScore. A program can be shared with franchisees, who then see their own stores on it
and, where the brand allows, send their evidence for HQ to approve.

## Programs and requirements

A **program** is something the brand tracks, such as PCI. It is made of one or more
**requirements**. A store is compliant on the program only when it is compliant on every
requirement.

Each requirement says how long a mark holds:

| Renewal | What a mark means |
|---------|-------------------|
| **Never** | The mark stands until the next one. |
| **Monthly** or **Quarterly** | A mark answers one calendar month or quarter. A new period opens unmarked, and the store reads **Due** until it is marked again. |
| **Yearly** | A Compliant mark holds for a year, then reads **Expired**. |
| **Expiry date per store** | A Compliant mark holds until the expiry date recorded with it. |

Where your brand tracked PCI before, its PCI program is already in place.

## Setting up a program

Programs are set up in **Account settings → Compliance programs**. Anyone with the view
compliance permission can read the setup; changing it needs the manage compliance permission.

A new program starts as simple as one **Compliant** or **Not compliant** per store: one
requirement that never renews, hidden from franchisees. From there you can:

- rename the program and say what "compliant" means, shown at the top of its roster;
- add, rename, reorder and remove requirements, and set how each one renews;
- set whether a requirement's marks take **evidence**: **None**, **Optional** (a PDF or photo
  can be attached) or **Required** (every Compliant mark needs one);
- choose what franchisees see: **Hidden**, **Can see** or **Can see and submit** (see
  [Franchisees](#franchisees) below).

The program's SEEScore weight is shown on the page but set in [score settings](https://franchisesee.com/docs/features/seescore.md),
beside the score's other metrics.

**Changing a renewal after stores are marked** never rewrites a mark: the marks already made are
read by the new renewal. The page says what changes before it saves, with today's numbers. For
example, a program switched from Never to Monthly keeps each past mark in the month it was made,
and stores not marked yet this month read **Due**. One switched to Yearly expires marks older
than a year at once.

**Removing a requirement or deleting a program** deletes its marks too, and the page says how
many first. A program the SEEScore still counts can't be deleted: take it out in score settings
first.

**Adding a second requirement** means stores are no longer marked in one click from the roster:
each requirement is marked on the store's page. Every store reads **Not marked** until it has
been marked on the new requirement.

**Requiring evidence** applies to marks made from then on. Past marks are not rewritten. A sync
through the API or an AI app must then send a reference with each Compliant mark (see below).

A requirement whose marks need evidence, or that has an expiry date per store, isn't marked in one
click either: each row's **Record** button opens **Record an update** for that store.

## What you see

**Store compliance** opens on the program's roster. With more than one program it opens on
every store against every program, worst first.

Each store on the roster shows:

| Column | What it shows |
|--------|---------------|
| **Status** | Where the store stands today. |
| **Store** | The store's name, which opens its page. Its district can be added from the Columns menu. |
| **Mark** | One click marks the store **Compliant** or **Not compliant**, on a program of one requirement. Where each mark needs evidence or an expiry date, **Record** opens the form instead. |
| **Last 6 months** | One cell per month: teal for compliant, red for not compliant, amber for lapsed, and an empty ring for a month with nothing recorded. |
| **Last updated** | When the store was last marked, and how: on the web, via API, and so on. |

The statuses are **Compliant**, **Due soon** (still compliant, but lapsing within 30 days),
**Expired**, **Not compliant**, **Due** (not marked yet this month or quarter) and **Not
marked** (never marked).

A monthly or quarterly program shows the period it is marking, such as "November 2026".

HQ can search, filter by status and district, tick several stores and mark them together, and
download the roster as a CSV file.

When franchisees have sent marks for review, the roster says how many stores are waiting, and
**Show them** filters it to those stores (the **Review** filter, **Waiting for review**). Each one
shows **Awaiting review** beside its status.

## A store's page

Each store has a page showing it on every program: where it stands on each requirement, the date
a mark holds to, who made it and how, its reference and note, and its files. Below that is the
store's history, every mark recorded for it, newest first.

**Record an update** marks one store on one requirement. It asks only for what that requirement
uses:

- **Result:** Compliant or Not compliant.
- **For:** on a monthly or quarterly requirement, this period or the one before (for a mark made
  just after a month closes).
- **Effective on:** the day the mark takes effect, today or earlier.
- **Good through:** on a requirement with an expiry date per store, the date it lapses. It is
  filled in from the store's last term and can be changed to the date on the document. On a yearly
  requirement it is worked out for you: a year from the effective date.
- **Evidence:** a PDF or a photo, up to 10 MB, where the requirement takes it. Required for a
  Compliant mark when evidence is **Required**.
- **Reference** and **Note**, both optional.

Attaching a file always records a new mark, so a new certificate is never lost behind an
unchanged one. Files are kept private: they open only for HQ users who can see compliance, and
for a franchisee, their own store's files on a program shared with them.

## Franchisees

Each program's **Franchisees** setting decides what franchisees see of it:

| Setting | What a franchisee gets |
|---------|------------------------|
| **Hidden** | Nothing. The program isn't named to them anywhere, not even in their SEEScore drivers, where it reads as "Compliance". |
| **Can see** | Their own stores' standing on it, on their **Store compliance** page and through their connected AI. HQ records every mark. |
| **Can see and submit** | The same, and they can send a mark with its evidence for HQ to approve. |

A new program, and a program carried over from the old PCI board, starts **Hidden**. The
franchisee's **Store compliance** menu item appears once a program is shared with them.

The franchisee's page shows only their own active stores:

- **Things that need you:** each requirement, on a program that takes submissions, where a store
  is not compliant, expired, due, never marked or due soon, or where HQ sent their last submission
  back (with HQ's reason). The menu shows how many there are. **Send for review** opens a short
  form for the evidence, the period or dates the requirement takes, a reference and a note.
- **Waiting for HQ:** what they have sent that HQ hasn't answered yet.
- **Your stores:** each store against each shared program.

A submission always says compliant, and it counts for nothing until HQ approves it: the store's
standing and its SEEScore stay as they were. A store sends one at a time per requirement; another
can be sent once HQ has answered. Where a requirement needs evidence, the file itself is needed.

## Reviewing what franchisees send

A submission waiting for review shows on the store's page, under its requirement, with its files.
Reviewing needs the manage compliance permission:

- **Approve** makes it the store's mark from then on, by the dates it was sent with.
- **Send back** needs a reason. The franchisee reads it on their page and can send again. A
  sent-back submission stays in the store's history but never counted.

A submission ranks among the store's marks by its own dates. If HQ marked the store for the same
period after it was sent, or with a mark taking effect later, that mark stands over it and
approving would change nothing, so the page says so instead: send it back, or record an update.
For the same reason a franchisee can't date a submission earlier than HQ's latest mark on a
requirement that isn't monthly or quarterly. A store that is no longer active can't be approved.

## Weekly digest

HQ users who can see Store compliance can choose a weekly email under **User settings →
Notifications → Store compliance digest**. It is off until they turn it on, and they pick the day.
It covers every program and active store, in four lists:

- **Expired:** stores whose mark has run out, with the last day it was valid.
- **Due soon:** stores whose mark runs out within the requirement's due-soon window (30 days
  unless set otherwise).
- **Newly not compliant:** stores marked not compliant since the last digest went out, or in the
  past week for a first one (and never more than two weeks back). A store that was already not
  compliant isn't listed again.
- **Waiting for review:** what franchisees have sent that HQ hasn't approved or sent back.

A program with several requirements names the requirement too, and each list shows its first 25
stores, with the rest on the roster. A store that is **Due** (a new month or quarter not marked
yet) isn't listed; the roster shows it. With nothing in any list there is no email. If a send day
is missed, the digest goes out the next morning.

## How it works

- **A mark is kept, never overwritten.** To correct a mark, mark the store again. The newest mark
  counts, and the earlier one stays in the store's history.
- **Sending the same mark again adds nothing.** It confirms the mark, and **Last updated** shows
  the day it was confirmed. A system that syncs every week shows it is still running without
  piling up history.
- **SEEScore** counts a program only when HQ gives it a weight in
  [score settings](https://franchisesee.com/docs/features/seescore.md). A store that is compliant or due soon earns that driver's full
  points. One that is not compliant or expired earns none. A store that is due or not yet
  recorded is left out of that driver, so a monthly program doesn't drop every store's score on
  the 1st.
- **It is not a dashboard metric.** Store compliance has no tile, leaderboard or goal. It reaches the
  dashboard only through the SEEScore.

## Who sees it

- **HQ** sees the Store compliance pages with the view compliance permission. Marking stores
  needs the manage compliance permission.
- **Franchisees** see their own stores on each program shared with them, on their own Store
  compliance page. They never see HQ's pages or another franchisee's stores.
- **Connected AI apps** can read each program's standings, as of any date. A franchisee's
  connection sees only their own stores, and only on programs the brand shares with franchisees.
  An HQ connection with the manage compliance permission can also mark stores. See
  [Connect your AI](https://franchisesee.com/docs/ai/overview.md).

## Importing marks from a spreadsheet

To mark many stores at once from a list you already keep, open the program's roster and choose
**Import marks**. It takes a CSV file with one row per store, shows what each row would do, and
saves only when you say so.

1. **Upload the file.** The page lists the columns this program reads, and **Download a sample
   file** gives you one with them in place, under two of your own stores.
2. **Check the marks.** Each row shows the store it matched and one of:
   - **New mark:** saving writes it.
   - **Already current:** the store already has this mark for the period. Saving writes nothing
     new and shows it as confirmed today.
   - **Can't be saved:** with the reason, such as a store code that matches no store.
3. **Save.** Saving is all or nothing: while any row can't be saved, nothing is, so fix those rows
   in the file and upload it again.

The columns are `store`, `status`, and where they apply `requirement`, `period`, `effective_on`,
`expires_on`, `note` and `reference`. The first row holds their names, and other columns are
ignored (the preview lists them).

- **store** is the store's `external_id`, its FranchiseSEE uuid, or its exact name. A partial
  name never matches, and a name two stores share is refused, so a mark can't land on the wrong
  store. Leading zeros count: `0101` and `101` are different stores, and Excel drops the zero
  when it opens a CSV, so format the store column as text before you edit the file there.
- **status** is Compliant or Not compliant.
- **requirement** is needed only when the program has more than one, by its exact name.
- The other columns follow the same rules as the API below: `period` as `2026-11` (or `2026-Q4`
  for a quarter), only on a monthly or quarterly program; `expires_on` on every Compliant row of
  a program with an expiry date per store; `reference` on every Compliant row where the
  requirement needs evidence.
- A blank cell leaves that column out for the row: no period is the current one, and no date is
  today.
- Dates are written as `YYYY-MM-DD` and periods as `2026-11`. Excel changes values it reads as
  dates when it saves a CSV, so if a row says its date or period isn't in that form, format the
  column as text before saving.

A file can hold up to 2,000 rows and 2 MB. Imported marks show **by import** under **Last
updated**. Importing needs the manage compliance permission, the same as marking stores on the
roster.

## Keeping it in sync from another tool

If another system already tracks a program, such as a PCI board kept from your scan reports, it
can mark stores in FranchiseSEE for you, through the REST API or an AI app.

- **The REST API:** `POST /api/v1/store-compliance-records` takes the program, and one row per store
  with its status and, on a monthly or quarterly program, the period it answers ("2026-11", or
  "2026-Q4" for a quarter). Stores are named by their `external_id`, the ID in your own systems,
  or their FranchiseSEE uuid. A batch is all or nothing: one row it can't use refuses the whole
  request, listing every problem. See [REST API](https://franchisesee.com/docs/api/getting-started.md).
- **An AI app** connected to the [admin server](https://franchisesee.com/docs/ai/api-tokens.md#the-admin-server) uses
  `record-store-compliance`, which also matches stores by exact name (never a partial one) and reports
  each row on its own, so a row it can't use doesn't hold up the rest. To check the result, ask it
  to read the program back month by month.

Either way:

- It needs an API token with the `create` permission, from an HQ account that can manage
  compliance.
- Marks show **via API** or **via AI** under **Last updated**, so HQ can tell a sync from a click.
- Sending the same marks again is safe. A store already marked the same way for that period gets
  no new mark; its **Last updated** shows the day it was confirmed.
- Only active stores can be marked. On a program with an expiry date per store, a Compliant mark
  must say when it lapses.
- Files can't be sent this way. Where a requirement needs evidence, each Compliant mark must carry
  a `reference`, the number of the permit, certificate or report it rests on. HQ can attach the
  file itself on the store's page.

## Related

- [SEEScore](https://franchisesee.com/docs/features/seescore.md): how drivers and weights build the score.
- [Store audits](https://franchisesee.com/docs/features/store-audits.md): scored audits rather than compliant or not.
