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

# Header Profiles

> ABC Collections receives files where the account number column is named "Acct No".

## Real-World Example

ABC Collections receives files where the account number column is named "Acct No". The creditor creates a Header Profile that maps "Acct No" to the YouNegotiate account number field.

The next time ABC Collections uploads a file with the same format, the system should understand the column without forcing the creditor to rebuild the mapping from scratch.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Creditor defines file header mapping"] --> B["Header Profile is saved"]
    B --> C["Creditor uploads file with same format"]
    C --> D["System applies saved mapping"]
    D --> E["Consumer fields are imported correctly"]
    classDef default fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef actor fill:#E0F2FE,stroke:#0284C7,stroke-width:2px,color:#0C4A6E;
    classDef system fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef decision fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#78350F;
    classDef risk fill:#FEE2E2,stroke:#DC2626,stroke-width:2px,color:#7F1D1D;
    classDef outcome fill:#DCFCE7,stroke:#16A34A,stroke-width:2px,color:#14532D;
    class A actor;
    class B,D outcome;
    class C,E system;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should let the creditor manage file header mappings used during imports.
* It should make repeated imports easier when files follow the same format.
* It should connect mappings to the correct creditor account.

## How It Should Not Work

* It should not apply one creditor's header mapping to another creditor.
* It should not import data into the wrong fields.
* It should not allow an incomplete mapping to be used when required fields are missing.

## Developer Notes

* Keep behavior scoped to the logged-in creditor company and allowed sub-accounts.
* When this page changes user-visible behavior, update the real-world example and visual flow.

## Related App Areas

* `routes/creditor/index.php`
