> ## 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.

# Reseller Partner Create and Edit

> A platform operator adds a reseller partner and later updates the partner details used for monthly partner billing reports.

## Real-World Example

A platform operator adds a reseller partner and later updates the partner details used for monthly partner billing reports. The portal should keep partner identity and reporting relationships accurate.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Super Admin creates or edits partner"] --> B["Portal validates partner details"]
    B --> C["Partner relationship is saved"]
    C --> D["Monthly partner reports use updated details"]
    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,C,D system;
    class D outcome;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should let platform operators create and edit reseller partner records.
* It should preserve partner details used by billing and reporting jobs.
* It should keep partner relationships traceable to the affected creditor activity.

## How It Should Not Work

* It should not break monthly partner reports by saving incomplete partner data.
* It should not hide which creditors or activity relate to a partner.
* It should not allow unauthorized users to change partner revenue relationships.

## Developer Notes

* Partner records feed monthly partner billing report jobs.
* If partner revenue-share rules become configurable, document those rules separately.

## Related App Areas

* `app/Livewire/Creditor/ManagePartners/ListPage.php`
* `app/Livewire/Creditor/ManagePartners/CreatePage.php`
* `app/Livewire/Creditor/ManagePartners/EditPage.php`
* `app/Console/Commands/PartnerMonthlyBillingReportsCommand.php`
* `app/Jobs/SendPartnerMonthlyBillingReportJob.php`
