> A **customer** is the end-client company you provision PBX services for, linked to a reseller and optionally to one or more PBXs.

## Overview

Customers sit between resellers and PBXs in the partner hierarchy. You create a customer record for a client company, then assign PBXs to it. Distributors can see customers across all their resellers but only the owning reseller can create or edit them.

## The customers list

The page has five tabs, each with a count:

- **All** - every customer in your portal.
- **Active** - customers whose signup is finished.
- **Signups in progress** - people who started the [signup link](partner_customer_onboarding.md) and have not finished. See [Customer onboarding](partner_customer_onboarding.md#signups-in-progress).
- **Needs KYC review** - customers waiting for you to verify their documents.
- **Unpaid invoices** - customers with an unpaid invoice in your CRM.

The tabs and the filters share one bar above the list. **Remove filters** also takes you back to **All**.

The sidebar shows what is waiting for you as badges: **Customers** shows how many customers have an unpaid invoice, and **KYC reviews** shows how many customers wait for your verification. The unpaid count appears once your CRM figures have loaded.

Each row shows these columns, in this order:

- **Customer** - the name, then the email and phone number with a copy icon beside each, then the city and country. A small **Possible duplicate** badge appears when another customer shares this one's email or name. Point at it to see which one.
- **Plan** - the plan name, a **Trial** badge while a trial is running, the price per user or the trial end date, and a line with the subscription number, price and renewal date. Click the cell to open [Change plan](#changing-a-customers-plan). A plan change that is waiting for the customer to accept it is shown under the plan.
- **Invoices** - what is outstanding, how many invoices are unpaid and when the last one was raised, from your CRM. The list never waits on your CRM: the figures are refreshed in the background every few minutes, and the first time they are read the cell says so until they arrive.
- **Verification** - **Approved**, **Needs review**, **Docs requested**, **Rejected** or **Not started**, plus the AI score when there is one. If you can review verifications, click the cell to open the customer's Verification tab.
- **PBX** - the customer's PBX with its number of users and lines, and a **Provisioning** badge while it is being set up. With several PBXes the first is shown with a **+N more** link to the [PBXs](partner_pbxes.md) list filtered to this customer.
- **Recording & AI** - whether either is switched on for the customer's PBXes, and where the call-recording consent stands: signed, requested, not requested or withdrawn. With several PBXes the weakest state is shown, because one unsigned PBX is the fact worth knowing. **Open consent** goes to the PBX's call recording consent, with its documents (with several PBXes, to the customer's PBX list). It is shown to resellers whose role can edit PBXs.

A one-line status above the tabs says when the list was last synced with your CRM, with the counts of what the run added, updated, left unchanged, sent and failed, and a link to the sync history. While a run is going it says **Syncing with Odoo now**.

Filters narrow the list by plan, source (in your CRM or local only), whether AI is on, country, and when the customer was last synced. A distributor can also filter by reseller.

## Row actions

The menu at the end of each row groups its actions, with a divider between groups. A group only appears when you can use something in it.

1. **Open customer** and **Edit details** (**View details** if you cannot edit).
2. **Sign in to PBX**.
3. **Invoices**, **Change plan**, **Verification & documents**, and **Turn on recording & AI** (**Turn off recording & AI** once something is on). With several PBXes you choose which one, and each is listed with its own state.
4. **Sync with Odoo**, **Open in Odoo** and **Link to CRM** (**Change CRM link** once it is linked). **Sync with Odoo** re-reads that one customer there and then, for a payment that has just landed. **Open in Odoo** opens the customer's record in your instance.
5. **Delete**, last. See [Deleting a customer](#deleting-a-customer).

**Sign in to PBX** asks how to open the PBX: in a new tab of this browser, or with **Copy link** in a private window. A copied link asks for your partner portal login in that window, then opens the PBX, so you can keep several PBXes open, one per private window.

The CRM actions need a CRM: until one is [connected](partner_integrations.md) they are not offered. **Turn on recording & AI** is cockpit's own and is always there.

## The customer detail page

**Open customer** shows everything about one customer on one page. The header holds the name, badges for the plan, verification and invoices, and the buttons **Sign in to PBX**, **Change plan** and **Open in Odoo**. Below it, the tabs:

- **Overview** - the plan, subscription, PBX with its state (**Deployed**, **Waiting for the server** or **Not deployed**), invoices, verification, recording and AI state, address, and the Odoo record.
- **Invoices** - the customer's invoices from your CRM with number, date, amount and status (**Paid**, **Unpaid**, **Overdue**), a **PDF** link, and **Send reminder** on an unpaid one. The reminder goes to the customer's email address, and the page tells you when it was sent or why it could not be. **Sync invoices** re-reads the customer's invoices now.
- **Activity & emails** - a timeline of what happened to the customer: verification checks, AI reviews and decisions, document requests, plan changes, Odoo syncs, invoice reminders and every email sent. Entries made by a check or a scheduled job say **Automatic**; the rest name who did it.
- **Verification** - the customer's identity verification, described in [Customer onboarding](partner_customer_onboarding.md#verifying-a-customer-kyc). It is shown to people who can review verifications. A customer who did not sign up through the self-service flow has nothing to verify, and the tab says so. A wrong address can be removed there; see [Removing a wrong address](partner_customer_onboarding.md#removing-a-wrong-address).

> [!NOTE]
> Everything on the page is limited to your own customers. A customer that belongs to another partner is not found, even if you type its address.

## Changing a customer's plan

**Change plan**, from the plan cell, the row menu or the detail page, opens a dialog. You need permission to change plans.

1. Pick the new plan. The current one is marked **Current**, and each plan shows its user limit.
2. Choose **When**:
   - **Change now** applies the plan right away. The customer gets an email.
   - **At next billing date** asks the customer to accept the change. It starts on the date their next invoice is due.
3. Add a note if you want. It is optional.
4. Select **Change plan**.

If a change is already waiting for the customer, the dialog warns you, and **Change now** replaces it. When the customer has an Odoo subscription, the new plan is written to it as well. If Odoo cannot be reached, the plan change is still saved here and you are told to update the subscription in Odoo yourself. Every change is logged on the customer's Activity tab.

## Creating and editing a customer

**New customer** opens the form. Besides the company or individual choice, name, country, email, phone number and address, the form asks for:

- **VAT number** - the customer's tax number.
- **Source** - where the customer came from, for example a referral or an event.
- **Plan** - the plan the customer starts on. It is pre-selected with your default plan from [Settings](partner_settings.md) when that plan is still offered. After creation, the plan changes through **Change plan**.

When you create a customer, they get an email to finish signup and verification, and they appear under **Signups in progress** until they do.

Typing a company name in the name field searches OpenStreetMap for matching businesses and suggests addresses. Picking a suggestion fills in the street, number, postal code, and city automatically. The search is scoped to the selected country, so set the country first.

Mark each customer as a **company** or an **individual**. Your CRM keeps that distinction too, so it is the one thing cockpit cannot guess for you.

## With a CRM connected

Connect your CRM under [Integrations](partner_integrations.md) and this page changes.

**Sync with Odoo** at the top of the list does both directions in one run, on a queue. It reads your CRM's customers in first, because your CRM owns new customers, then creates the ones you added here that it has never seen. A CRM customer with the same email as one you already have here is linked to it rather than added a second time. Cockpit never deletes anything in your CRM. The status line above the tabs summarizes the last run, and **Sync history** under [Integrations](partner_integrations.md#sync-history) keeps the detail: what each run touched, per customer, with the before and after of every field it changed.

A customer you onboard here is sent to your CRM straight away rather than waiting for the next sync, so you can issue a consent for them immediately. If your CRM cannot be reached, the customer is still saved and goes over on the next run.

A customer that came from your CRM can be edited here like any other. When you save, the change is also written to its record in your CRM, so the next sync does not bring the old values back. If your CRM cannot be reached, the change is still saved here and you are warned.

## Linking a customer to your CRM by hand

A customer is matched to its CRM record by the CRM's ID, or by email (ignoring upper and lower case). When the email is different on the two sides, cockpit cannot tell they are the same customer, and its invoices show as none. Choose **Link to CRM** in the row menu (**Change CRM link** once it is linked): search your CRM by name, email or VAT number and pick the right record, or type its ID, the number at the end of the record's address in your CRM. The next sync then fills in the customer's details from that record.

Invoices are read for the whole company, so an invoice addressed to one of its contacts, such as an invoice address or a person at the company, counts for the customer too.

## Transferring a customer to another reseller

A reseller admin can hand a customer to another reseller. Choose **Transfer to another reseller** in the customer's row menu or on the customer page, pick the reseller (every active reseller is listed with its country) and write a comment.

The request is emailed to the receiving reseller's operations team, who move the customer and its phone systems outside the portal. If the receiving reseller has set an **Ops email for customer transfers**, the form says the request will be emailed to its ops team. If it has not, the form warns you and asks for an **Email** to send the request to, which you type by hand. You never see another reseller's ops email. The email lists the customer, your organization, the receiving reseller, your comment and the customer's phone systems with their profile ID and trunk username, and replies to it go to you. You can send up to 20 requests a day to addresses you type by hand.

The request waits as **Pending** under **Customer transfers > Sent**. A customer can have one pending request at a time, and you can cancel it from the Sent list while it is pending.

The receiving reseller finds the request under **Customer transfers > Received**. There is no Accept button in the portal, because ops carries out the move. The receiving reseller can still **Reject** the request: it writes a comment, nothing changes, and you are emailed the decision. If your own **Ops email for customer transfers** is empty, the Customer transfers page shows a notice with a link to **Settings > Customer transfers**.

When ops moves a customer, the customer and all its phone systems pass to the receiving reseller and disappear from yours. Nothing is written to either Odoo, so cancel the customer's subscription in your own Odoo.

### Transfers at the end of a trial

A plan can name a reseller that customers are handed to when their free trial ends (see [Plans](partner_plans.md)). When a trial ends on such a plan, cockpit opens a transfer request to that reseller by itself. The list shows **Automatic at trial end** instead of a person's name. The request is emailed to the receiving reseller's ops email when it has one, and otherwise only appears in its list. The receiving reseller can reject it. Until the customer is moved, the customer stays on its current plan. If the request is rejected or canceled, the normal rules for the end of a trial apply and no second request is opened for that trial.

Unlike a manual transfer, the customer's signups do not move: they stay with you. After the customer is moved they remain in your signup list as read-only records marked **Moved to** the receiving reseller, and no action can be taken on them.

Sending and rejecting transfers needs the **Transfer customers** permission, which only reseller admins have.

## Deleting a customer

You can delete a customer, whether it came from your CRM or not, as long as no PBX is assigned to it. Move or remove its PBXes first. A deleted customer that came from your CRM is not brought back by the next sync, and its record in your CRM is left as it is.

## See also

- [Integrations](partner_integrations.md) - connect the CRM that everything on this page reads from.
- [PBXs](partner_pbxes.md) - assign a PBX to a customer, and sign the call-recording consent that opens the AI features.
- [Resellers](partner_resellers.md) - every customer belongs to a reseller.
- [Customer onboarding](partner_customer_onboarding.md) - signups in progress, leads and identity verification.
- [Plans](partner_plans.md) - the packages a customer can be on.

```yaml fields
name:
  label: Name
  tab: General
  hint: 'Company name for the customer. Start typing to trigger address autocomplete - selecting a result fills in the address fields.'
country_id:
  label: Country
  tab: General
  hint: 'Country where the customer is located. Also scopes the address autocomplete results.'
email:
  label: Email
  tab: General
  hint: 'Primary contact email address for the customer.'
phone_number:
  label: 'Phone number'
  tab: General
  hint: 'Primary phone number for the customer.'
street:
  label: Street
  tab: General
  hint: 'Street name of the customer address.'
'no':
  label: Number
  tab: General
  hint: 'House or building number.'
postal:
  label: 'Postal code'
  tab: General
  hint: 'Postal or ZIP code.'
city:
  label: City
  tab: General
  hint: 'City or town name.'
vat_number:
  label: 'VAT number'
  tab: General
  hint: "The customer's VAT or tax number. Shown on the detail page and used to find the customer in your CRM."
source:
  label: Source
  tab: General
  hint: 'Where this customer came from, for example a referral or an event.'
plan_id:
  label: Plan
  tab: General
  hint: 'The plan the customer starts on. Pre-selected with your default plan from Settings. The customer gets an email to finish signup and verification, and appears under Signups in progress until then. After creation, change the plan with Change plan.'
is_company:
  label: 'Contact type'
  tab: General
  hint: 'Whether this customer is a company or an individual. Your CRM holds the same distinction, so a customer sent there is created as whichever you pick.'
```
