> ## Documentation Index
> Fetch the complete documentation index at: https://help-loyalife.xoxoday.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoice claims

> Review, verify, and approve invoice and warranty claims from channel partners using OCR-assisted extraction and two-level approval.

Invoice claims are submissions made by channel partners to earn loyalty points on purchases they have made. Warranty submissions follow the same pipeline but register product coverage rather than awarding points. Both flow through a two-level approval process before being finalised.

## Claim types

Every claim is tagged with a type badge that is visible in the list and in the detail view.

| Type     | Badge colour                                  | Points awarded | Description                                                                       |
| -------- | --------------------------------------------- | -------------- | --------------------------------------------------------------------------------- |
| Claims   | Blue (`#E5F3FF` background, `#144DFF` text)   | Yes            | Standard invoice claim — loyalty points are credited on approval                  |
| Warranty | Purple (`#F9EBFF` background, `#7D00CC` text) | No             | Product coverage registration — no points are awarded regardless of configuration |

<Info>
  For Warranty claims, the **Points Awarded** field is hidden in the approval modal and the system enforces a points value of zero server-side. Approving a Warranty claim never credits points.
</Info>

## How a claim is submitted

<Steps>
  <Step title="Partner initiates the claim">
    In the channel partner mobile app, the partner taps **New Claim**, selects the claim type (invoice or warranty), and chooses how to capture the invoice.
  </Step>

  <Step title="OCR extraction (Scan Receipt)">
    If the partner selects **Scan Receipt**, they upload one or more invoice photos. Loyalife's OCR engine reads the image and automatically populates:

    * Product names and descriptions
    * Product codes / SKU identifiers
    * Quantities, unit prices, and line totals

    Each extracted field carries an **OCR confidence score** (0–1 scale). Scores close to 1 indicate a reliable read; scores below 0.7 flag fields that may need review.
  </Step>

  <Step title="Product catalogue matching">
    Extracted product codes and names are matched against the program's product catalogue using approximate (vector-embedding) matching. The system attaches a **match confidence score** to each line item.
  </Step>

  <Step title="Partner reviews and corrects">
    On the review screen, the partner sees all extracted line items and can edit any field, add missed items, or remove incorrect ones. Edited fields are flagged so admins can distinguish OCR-extracted values from manual corrections.
  </Step>

  <Step title="QR code scanning (if applicable)">
    For QR-linked claims, the partner scans the product QR code instead of uploading a photo. The system validates the code and pre-fills product details automatically.
  </Step>

  <Step title="Submission">
    The partner submits the claim. It enters the admin approval queue with all extracted data, confidence signals, and any corrections attached.
  </Step>
</Steps>

## OCR signals in the admin view

When an admin opens a claim submitted via **Scan Receipt**, the line items table shows additional signals to help prioritise review:

| Signal                | What it means                                                                                                                               |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **OCR confidence**    | Per-field score (description, product code, quantity, unit price, amount) on a 0–1 scale. Low scores highlight fields likely to be misread. |
| **Match confidence**  | How closely the extracted product matched the programme catalogue — high cosine similarity indicates a strong match.                        |
| **Match method**      | How the match was found: exact code, approximate name, or vector-embedding match.                                                           |
| **Added by admin**    | Flags any line item manually inserted by an admin rather than extracted by OCR.                                                             |
| **Duplicate invoice** | If the same invoice number exists in a previous claim, the related claim IDs are listed as a warning.                                       |

<Info>
  OCR confidence scores reflect the original extraction snapshot. Even if a partner edited a field, the admin view shows the **original OCR reading** alongside the corrected value so you can compare what was read vs. what was changed.
</Info>

### Handling low-confidence extractions

When a field's OCR confidence is low (typically below 0.7):

1. Open the original invoice image from the claim detail.
2. Manually verify the field value against the source document.
3. Edit the line item if the extracted value is incorrect.
4. Enter remarks explaining any corrections before approving.

<Tip>
  Fields with low OCR confidence are visually highlighted in the review interface. Focus your manual review on flagged fields — not every line item equally.
</Tip>

### Duplicate invoice detection

Loyalife checks whether the same invoice number has been used in a previously processed claim. If a duplicate is detected:

* The admin review screen shows a warning banner listing the related claim IDs.
* The claim is **not** automatically rejected — the admin must decide whether the duplicate is legitimate (e.g., a split shipment on a single invoice) or fraudulent.

### Photo upload limits

| Limit                    | Detail                                            |
| ------------------------ | ------------------------------------------------- |
| Maximum photos per claim | Configured per program (typically 1–3)            |
| Accepted formats         | JPG, JPEG, PNG                                    |
| Recommended resolution   | 1 MP or higher for reliable character recognition |

<Info>
  Product codes must exist in the Rule Engine's Attributes Manager before they are available for OCR matching. If a product is not in the catalogue, it appears as an unmatched item and requires admin intervention.
</Info>

## Filtering claims

The filter bar is available on both the **Pending Actions** tab and the **All Status** tab.

<Frame>
  <img src="https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-invoices-pending.png?fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=61cc4b24b80352186a7b9149cb30e386" alt="Claims Management — Invoices screen showing the Approval Workflow banner with 329 invoices in queue and Start Approval button, Pending Actions tab active, and claims list with Partner Name, Claim ID, Type badge, Invoice Number, Amount, and Claim Submitted On columns" width="2000" height="1067" data-path="images/claims-invoices-pending.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-invoices-all-status.png?fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=ab2e0add784d31a0d260faebb7155623" alt="Claims Management — Invoices All Status tab showing the same columns with an additional Status column displaying Pending Approval and Failed status badges for each claim" width="2000" height="1063" data-path="images/claims-invoices-all-status.png" />
</Frame>

| Filter         | Options                     |
| -------------- | --------------------------- |
| Claim Type     | All Types, Claims, Warranty |
| Partner Name   | Free-text search            |
| Invoice Number | Free-text search            |

Filters are combinable — for example, you can filter for Warranty claims submitted by a specific partner.

## The approval workflow

Invoice claims go through two levels of approval before they are finalised.

### Step 1 — Approver 1

Approver 1 is the first-level reviewer. The role assigned to this step varies by program — it could be a field manager, area coordinator, or any equivalent role (e.g., ASM, RSM). This step requires the **Approve Assigned Invoices** permission.

<Steps>
  <Step title="Open a pending claim">
    Go to **Partners & Promotions → Claims Management → Invoices** and select a claim from the **Pending Actions** tab.
  </Step>

  <Step title="Verify the invoice">
    Review the claim details, line items, and any attached documents submitted by the partner. For OCR claims, check confidence signals and correct any low-confidence fields.
  </Step>

  <Step title="Add mandatory remarks">
    Enter remarks explaining your verification decision. Remarks are required before the claim can move forward.
  </Step>

  <Step title="Upload a supporting document (optional)">
    Attach a supporting file if needed. Accepted formats: JPG, JPEG, PNG, PDF. Maximum file size: 5 MB.
  </Step>

  <Step title="Submit">
    Submit your verification. The claim status changes to **Pending From Others** and moves to Approver 2's queue.
  </Step>
</Steps>

### Step 2 — Approver 2

Approver 2 is the final decision-maker.

<Frame>
  <img src="https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-invoice-detail.png?fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=aad5cf8c80ce13dc685998f344fbaeef" alt="View Invoice detail showing Invoice Details panel with Pending Approval status, Alerts panel (Duplicate Invoice Detection warning), Line Items table with OCR confidence signals, Partner Details with past invoices thumbnails, Reward Points section, and Timeline with action history" width="1830" height="1376" data-path="images/claims-invoice-detail.png" />
</Frame>

The role varies by program — it could be a regional head, national manager, or central approver (e.g., Head Office).

<Steps>
  <Step title="Open the claim">
    Claims awaiting final action appear in the **Pending Actions** tab for Approver 2. Open the claim to see the full detail view.
  </Step>

  <Step title="Review all information">
    The detail view shows invoice details, any system alerts (including duplicate warnings), line items with OCR signals, and the remarks and supporting document uploaded by Approver 1.
  </Step>

  <Step title="Take a final action">
    Select one of the three available actions:

    * **Approve** — finalises the claim; points are credited (for Claims type) or no points are credited (for Warranty type)
    * **Reject** — rejects the claim; no points are credited
    * **Skip** — defers the claim without approving or rejecting it
  </Step>
</Steps>

## Supporting documents

Approver 1 may attach a supporting document during verification. Documents must meet the following requirements:

| Requirement       | Detail                                                                                          |
| ----------------- | ----------------------------------------------------------------------------------------------- |
| Accepted formats  | JPG, JPEG, PNG, PDF                                                                             |
| Maximum file size | 5 MB                                                                                            |
| Visibility        | Approver 2 can view the document in the claim detail; it is also downloadable from the timeline |

## Timeline and audit trail

Every action taken on a claim is recorded in the timeline section of the claim detail view.

Each timeline entry shows:

* The user who performed the action
* Their role
* The date and time of the action
* Any remarks they entered
* Any supporting document they attached (with a download link)

Entries are displayed in chronological order, giving you a full audit trail from submission to final decision.

## Claim statuses

| Status              | Meaning                                                                   |
| ------------------- | ------------------------------------------------------------------------- |
| Submitted           | Claim received from the partner, awaiting Approver 1 action               |
| Verified            | Approver 1 has reviewed and submitted remarks                             |
| Pending From Others | Approver 1 has completed their step; awaiting Approver 2's final decision |
| Approved            | Approver 2 has approved the claim; points credited (Claims type only)     |
| Rejected            | Approver 2 has rejected the claim; no points credited                     |

<Info>
  Access to invoice claims requires the **View Claims** permission. Approving requires **Approve Assigned Invoices** for Approver 1, and the corresponding approval permission for Approver 2.
</Info>

## Claim alerts and settings

Navigate to **Partners & Promotions → Claims Management → Settings** (gear icon in the top right) to configure program-wide claim validation rules.

<Frame>
  <img src="https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-settings.png?fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=b1652c4c6e159452773c703050359d87" alt="Claims Settings screen showing Built-in Alerts section with toggles for Unable to fetch details, Line item sum mismatch, and Duplicate invoice number checks, plus Custom Alerts section with a High value invoice rule configured to flag invoices with Amount >= 2000" data-og-width="2000" width="2000" data-og-height="1058" height="1058" data-path="images/claims-settings.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-settings.png?w=280&fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=d22f46d668f6049b9bdc95c7c912eb1b 280w, https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-settings.png?w=560&fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=6b621749a21d43f556568b8380cf4e9b 560w, https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-settings.png?w=840&fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=597bffe1c84d3dba9493d1bb16f1f679 840w, https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-settings.png?w=1100&fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=ec435ee50175d9d49c3709ec9202c77b 1100w, https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-settings.png?w=1650&fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=0fb44ee73cd7e51297020b2af3664b81 1650w, https://mintcdn.com/loyalife/8T2sU_yVdYPpOa4R/images/claims-settings.png?w=2500&fit=max&auto=format&n=8T2sU_yVdYPpOa4R&q=85&s=c29bd70a600deae594be4bb5287bc3fc 2500w" />
</Frame>

**Built-in alerts** run on every invoice automatically — no configuration required:

| Alert                    | When it fires                                                  |
| ------------------------ | -------------------------------------------------------------- |
| Unable to fetch details  | Invoice image is missing or unreadable by OCR                  |
| Line item sum mismatch   | Sum of line items does not match the invoice total             |
| Duplicate invoice number | The same invoice number has been submitted in a previous claim |

**Custom alerts** flag matching invoices with a warning icon in the claims list and are configurable per program (for example, flagging all invoices above a certain amount threshold for extra scrutiny).

## Troubleshooting

**OCR extracted incorrect product details.**

* Review the original invoice image in the claim detail.
* Edit the line items manually and enter the correct values before approving.

**A product is not matching in the catalogue.**

* Verify the product code exists in **Rule Engine → Attributes Manager**.
* If the product was recently added, allow time for the catalogue index to update.
* Manually enter the correct product code in the line item editor.

**OCR confidence scores are consistently low for a client's invoices.**

* Partners should photograph invoices flat, in good lighting, without glare or shadows.
* A minimum resolution of 1 MP significantly improves extraction reliability.
