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

# Reference: Customers

> This document presents the screens, fields, permissions, API operations, and troubleshooting of Customers.

## Customers screen: search, filters, and columns

The **Customers** screen lists the [customers](https://zenskar.com/docs/20260301/zenskar-modules/customers/glossary.md#customer) of your [organization](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#organization).

| Element | Details |
| - | - |
| **Search customers** | Finds a customer by the name or the [external ID](https://zenskar.com/docs/20260301/zenskar-modules/customers/glossary.md#external-id). Selecting a customer opens the screen of the customer. |
| **Export** | Opens the **Export customers** dialog, which starts an export of the selected customers, of the customers that the filters show, or of every customer. See [Export: what the CSV file holds](#export-what-the-csv-file-holds). |
| **Add customer** | Opens the **Add customer** screen. Its arrow holds **Upload CSV**, which opens the **Upload customers** dialog. |
| Filters | **Customer**, **External ID**, **Email**, **Email present**, **Contact email**, **Phone**, **Created**, **Business entity**, **Email communications**, **Auto charge**, and one filter for each [customer attribute](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#custom-attribute). **Email present** is **Has email** or **No email**. **Contact email** filters by the email addresses of the contacts of each customer. **Email communications** filters by [invoice](https://zenskar.com/docs/20260301/zenskar-modules/invoices/glossary.md#invoice) emails, and **Auto charge** by [automatic charging](https://zenskar.com/docs/20260301/zenskar-modules/customers/glossary.md#automatic-charging). Both are **On** or **Off**. |
| Columns | **Customer**, **External ID**, **Email**, **Business entity**, and **Created**. The column manager of the table also shows **Invoices**, **Phone**, **Country**, **Auto charge**, **Email communications**, and **Updated**, and changes the order of the columns. **Customer** always shows. **Customer**, **External ID**, **Email**, **Created**, and **Updated** can be sorted. |
| Row | Clicking a row opens the screen of the customer. The checkbox of a row selects the customer for an export. The edit icon opens the **Edit customer** screen. The delete icon opens the **Delete customer** dialog. |
| Empty list | The screen shows `No customers yet.`, or `No customers match these filters.` when a filter is added. |

## Add customer and Edit customer screens: fields and their rules

The **Add customer** and **Edit customer** screens have the same fields. **Edit customer** shows **Business entity** first, as a field that cannot be changed.

| Section | Field | Details |
| - | - | - |
| **Customer** | **Name** | Required. |
| | **Business entity** | The [business entity](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#business-entity) that bills the customer. **Add customer** shows the default business entity of your organization. The business entity cannot change after the customer is added. |
| | **Email** | Optional. Zenskar emails invoices to this address. Two customers in your organization cannot have the same email address. |
| | **Phone** | Optional. Selecting a country under **Billing address** fills in its dialing code, such as `+1`. A dialing code alone saves no phone number. |
| | **External ID** | Optional. The ID of the customer in a system outside Zenskar. Two customers in your organization cannot have the same external ID. |
| **Billing address** | **Country**, **Address line 1**, **Address line 2**, **Address line 3**, **Zip code**, **City**, **State** | Optional. The default billing address of the customer. **Address line 3** appears when you click it. If a third-party [tax engine](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#tax-engine) is connected to the business entity, the tax engine validates the default billing address each time you save the customer. |
| | **Use this address for shipping** | Selected by default. While it is selected, the default shipping address is the same as the default billing address, and changes with it. |
| **Shipping address** | Same fields as **Billing address** | Appears when **Use this address for shipping** is cleared. |
| **Custom attributes** | One field for each [custom attribute](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#custom-attribute) | Each customer attribute that applies to the business entity. **Manage** opens the customer attributes in a new tab. See [Required custom attributes: what each record needs](https://zenskar.com/docs/20260301/zenskar-modules/settings/custom-attributes/reference.md#required-custom-attributes-what-each-record-needs). |
| **Tax treatment** | **Customer type** | **Business (B2B)** or **Individual (B2C)**. The default is **Business (B2B)**. |
| | **Tax exempt** | Cleared by default. |
| | **Exemption certificate number**, **Entity use code** | Optional. They appear while **Tax exempt** is selected. |
| **Tax IDs** | **Type**, **Tax ID** | Optional, one row for each [tax ID](https://zenskar.com/docs/20260301/zenskar-modules/customers/glossary.md#tax-id). **Type** lists 63 types. See [Types of tax ID](#types-of-tax-id). While **Tax exempt** is selected, the dashboard disables **Tax IDs**. |
| **Billing preferences** | **Charge invoices automatically** | Selected by default. It turns automatic charging on or off for the customer. Clearing it stops the charges of every invoice of the customer. Selecting it again does not restart the charges of the invoices that Zenskar created while it was cleared. See [Charges](https://zenskar.com/docs/20260301/zenskar-modules/invoices/concepts/invoices.md#charges). |
| | **Email invoices and reminders** | Selected by default. While it is cleared, Zenskar emails no invoices, payment reminders, or payment receipts to the customer or to the contacts of the customer. |
| **Contacts** | | Appears with fields only on **Edit customer**. See [Contacts: fields and their rules](#contacts-fields-and-their-rules). |

The **Custom attributes**, **Tax IDs**, and **Contacts** rows start open. **Custom attributes** shows the number of customer attributes. The **Tax treatment** and **Billing preferences** rows start closed, and show a summary of their values, such as `B2B · Taxable`.

### Constraints: what each field accepts

| Property | Constraint |
| - | - |
| Name | Required. |
| | Up to 255 characters. |
| Email | A valid email address. |
| | Different from the email address of every other customer of the organization. |
| Phone | Starts with `+` and the country code. |
| | Up to 20 characters. |
| External ID | Up to 255 characters. |
| | Different from the external ID of every other customer of the organization. |
| Address lines | Up to 500 characters each. |
| Zip code | Up to 50 characters. |
| | Cannot be a decimal number. |
| City, State | Up to 255 characters each. |
| Exemption certificate number, Entity use code | Up to 255 characters each. |
| Tax ID | Up to 255 characters. |
| | Needs a **Type**. |

### Types of tax ID

**Type** lists the following types of tax ID, in this order. Each type is a country code or region code, then a tax code.

| Type | Country or region |
| - | - |
| **IND (GST)** | India |
| **USA (TIN)** | United States |
| **AUS (GST)** | Australia |
| **EU (VAT)** | European Union |
| **SG (GST)** | Singapore |
| **FR (VAT)** | France |
| **UK (VAT)** | United Kingdom |
| **GB (VAT)** | United Kingdom |
| **PT (VAT)** | Portugal |
| **CA (GST/HST)** | Canada |
| **CH (VAT)** | Switzerland |
| **JP (JCT)** | Japan |
| **BR (CNPJ)** | Brazil |
| **MY (SST)** | Malaysia |
| **ID (NPWP)** | Indonesia |
| **IL (VAT)** | Israel |
| **NZ (GST/IRD)** | New Zealand |
| **PH (VAT)** | Philippines |
| **ZA (VAT)** | South Africa |
| **AT (VAT)** | Austria |
| **BE (VAT)** | Belgium |
| **BG (VAT)** | Bulgaria |
| **HR (VAT)** | Croatia |
| **CY (VAT)** | Cyprus |
| **CZ (VAT)** | Czechia |
| **DK (VAT)** | Denmark |
| **EE (VAT)** | Estonia |
| **FI (VAT)** | Finland |
| **DE (VAT)** | Germany |
| **GR (VAT)** | Greece |
| **HU (VAT)** | Hungary |
| **IE (VAT)** | Ireland |
| **IT (VAT)** | Italy |
| **LV (VAT)** | Latvia |
| **LT (VAT)** | Lithuania |
| **LU (VAT)** | Luxembourg |
| **MT (VAT)** | Malta |
| **NL (VAT)** | Netherlands |
| **PL (VAT)** | Poland |
| **RO (VAT)** | Romania |
| **SK (VAT)** | Slovakia |
| **SI (VAT)** | Slovenia |
| **ES (VAT)** | Spain |
| **SE (VAT)** | Sweden |
| **NO (MVA)** | Norway |
| **AE (VAT)** | United Arab Emirates |
| **SA (VAT)** | Saudi Arabia |
| **OM (VAT)** | Oman |
| **BH (VAT)** | Bahrain |
| **QA (TIN)** | Qatar |
| **KW (TIN)** | Kuwait |
| **EG (VAT)** | Egypt |
| **JO (VAT)** | Jordan |
| **MA (VAT)** | Morocco |
| **TN (VAT)** | Tunisia |
| **DZ (VAT)** | Algeria |
| **LB (VAT)** | Lebanon |
| **IQ (TIN)** | Iraq |
| **LY (TIN)** | Libya |
| **PS (VAT)** | Palestine |
| **YE (VAT)** | Yemen |
| **SD (VAT)** | Sudan |
| **TR (VAT)** | Türkiye |

**UK (VAT)** and **GB (VAT)** are both types for the United Kingdom. Anrok matches a VAT-type tax ID to the country of the default billing address only by **GB (VAT)**.

## Contacts: fields and their rules

**Contacts** on the **Edit customer** screen lists the contacts of the customer. Each change to a contact saves straight away, without **Save changes**.

| Field | Details |
| - | - |
| **First name**, **Last name** | Optional. Up to 255 characters each. |
| **Email** | Required. A valid email address. |
| **Send invoices** | Selected by default. The contact receives each invoice email of the customer, while **Email invoices and reminders** is selected for the customer. |
| **Send contracts** | Cleared by default. Zenskar saves it with the contact, and sends no [contracts](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract) to contacts. |

Each contact shows its name or email address, and what it receives, such as `Receives invoices`. The edit icon of a contact opens its fields, with **Save contact**. The remove icon removes the contact straight away, without a confirmation.

## Customer screen: details and tabs

The screen of a customer shows the name of the customer, **Edit**, and **⋮**.

| Detail | What it shows |
| - | - |
| **External ID** | The external ID of the customer, with a copy button. |
| **Email** | The email address of the customer, with a copy button. |
| **Business entity** | The business entity of the customer. |
| **Contacts** | The first contact. **View** or **+N** opens the **Contacts** dialog. |
| **Custom attributes** | **View** opens the values of the customer attributes of the customer. |
| **Invoice auto charge** | **Enabled** or **Disabled**: the automatic charging of the customer. |
| **Billing address** | The default billing address. The address shows **Invalid** when a third-party tax engine could not validate it. |
| **Ship-to address** | The default shipping address. |
| **Payment methods** | The default payment method of the customer in Stripe. **View all** or **View payment methods** opens the **Payment methods** dialog, which lists each payment method saved on Stripe for the customer. The detail appears only while Stripe is connected. You cannot add or remove a payment method on this screen. |
| **Tax code**, **Tax ID** | The type and the number of the first tax ID of the customer. |

| Menu item of **⋮** | What it does |
| - | - |
| **View customer portal** | Opens the [customer portal](https://zenskar.com/docs/20260301/zenskar-modules/customers/glossary.md#customer-portal) of the customer in a new tab, and copies its link. The link stops working after 12 to 24 hours without use. A new link ends the session of the earlier link. |
| **Manage secondary contacts** | Opens the **Contacts** dialog: a table of the contacts, with **First Name**, **Last Name**, **Email**, **Send Contract**, and **Send Invoice**. The dialog cannot change a contact. **+ Add Contact** opens the **Edit customer** screen. |
| **Delete customer** | Opens the **Delete customer** dialog. |

`Cmd+K` or `Ctrl+K` opens the command menu. Its item **Copy Customer ID** copies the [customer ID](https://zenskar.com/docs/20260301/zenskar-modules/customers/glossary.md#customer-id).

The tabs show the records of other modules for this customer:

| Tab | What it shows |
| - | - |
| **Invoices** | The invoices of the customer. This tab opens first. **Export** starts an export of the invoices that the tab shows. Its arrow holds **Export line items**, which exports the [invoice line items](https://zenskar.com/docs/20260301/zenskar-modules/invoices/glossary.md#invoice-line-item) of those invoices. See [Invoices: what you bill on one date](https://zenskar.com/docs/20260301/zenskar-modules/invoices/concepts/invoices.md#invoices-what-you-bill-on-one-date). |
| **Contracts** | The contracts of the customer. **Create contract** opens a new contract for the customer. **Export** starts an export of the contracts that the tab shows. See [Create a contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/contracts.md#create-a-contract). |
| **Payments** | The payments of the customer. **Add payment** records a payment. **Export** starts an export of the payments that the tab shows. |
| **Credit notes** | The [credit notes](https://zenskar.com/docs/20260301/zenskar-modules/invoices/glossary.md#credit-note) of the customer. **Export** starts an export of the credit notes that the tab shows. |
| **Monitoring** | The monitoring of the customer. |
| **Email Logs** | The emails that Zenskar sent to the customer, with **Email Template**, **Sender**, **Receiver**, **Sent At**, and **Status**. |
| **Integrations** | The accounts of the customer in connected third-party systems, and their logs. |
| **Settings** | **Invoice template**, **Invoice note template**, and **Payment methods** for the customer. **Set** gives a setting a value, **Edit** changes it, and **Remove** removes it. **Payment methods** holds up to 20 payment methods of the customer, in order. |

## Upload customers dialog: file, columns, and options

| Element | Details |
| - | - |
| **Customers CSV** | One CSV file of up to 10 MB. Choose the file, or drag the file onto the field. The import reads each date as day/month/year. The dialog checks the columns of the file and names each missing column. A file with no rows under its header row cannot be uploaded either. |
| **Download template** | Downloads `customers-template.csv`, with a header row and one example row. |
| **Upload** | Uploads the file and starts the import as a job. |
| **Continue in background** | Closes the dialog while the import runs. The import keeps running, and its results stay on the job. |
| Summary | Appears when the import is done. It shows the number of customers imported and the number of rows skipped. It lists up to 50 skipped rows, each with its row number and reason. **View job** opens the job screen. |
| **Upload another file** | Clears the dialog for another file. |

The columns of `customers-template.csv`:

| Column | Details |
| - | - |
| `name` | Required in each row. |
| `email` | The email address of the customer. The file needs this column or `reference_id`. |
| `external_id` | The external ID of the customer. |
| `phone_number` | The phone number of the customer. |
| `contacts` | The contacts of the customer, in the form `Name \| email, Name \| email`. A row with an invalid contact email address is skipped. |
| `address_line_1`, `address_line_2`, `address_line_3`, `city`, `state`, `zip`, `country` | The default billing address. |
| `auto_charge_enabled` | The automatic charging of the customer. |
| `communications_enabled` | The invoice emails of the customer. |
| `ship_to_address_line_1`, `ship_to_address_line_2`, `ship_to_address_line_3`, `ship_to_city`, `ship_to_state`, `ship_to_zip`, `ship_to_country` | The default shipping address. |
| `business_entity_id` | The ID of the business entity. A row without it belongs to the default business entity. |
| `parent_customer_email`, `parent_customer_external_id` | The parent customer of the customer. |

The import also reads these columns, which `customers-template.csv` leaves out:

| Column | Details |
| - | - |
| `reference_id` | The Stripe customer ID of the customer. Needed for the options that import from Stripe. |
| `custom_attributes.<key>` | The value of the custom attribute with that key. A row with an invalid value is skipped. |

Under **While importing**:

| Option | Details |
| - | - |
| **Create a contract for each customer** | Does not create contracts that Cedar uses. Leave it cleared. |
| **Import invoice numbering from Stripe** | Copies the invoice prefix and the next [invoice number](https://zenskar.com/docs/20260301/zenskar-modules/invoices/glossary.md#invoice-number) of each customer from Stripe. Needs `reference_id`. |
| **Import payment methods from Stripe** | Copies the payment methods of each customer from Stripe, with the default payment method. Needs the `reference_id` column. The dialog does not upload a file without it. |

A row is skipped when another customer already has its email address or its external ID, or when a value is too long or missing. The other rows are added.

## Export: what the CSV file holds

An export is a job named `Customers Export`. When the job is done, **Download CSV** on the job screen downloads the file. The file has one row for each customer, with these columns:

| Columns | Details |
| - | - |
| `customer_id`, `customer_name`, `email`, `external_id`, `phone_number` | The details of the customer. |
| `communications_enabled`, `auto_charge_enabled` | The [billing preferences](https://zenskar.com/docs/20260301/zenskar-modules/customers/glossary.md#billing-preferences) of the customer. |
| `created_at`, `updated_at` | When the customer was added and last changed. |
| `business_entity_id`, `business_entity_name` | The business entity of the customer. |
| `default_payment_method_name`, `default_payment_method_id` | The default payment method of the customer. |
| `contact_name_<n>`, `contact_email_<n>`, `contact_send_invoice_<n>` | Each contact of the customer. |
| `address_line1`, `address_line2`, `address_line3`, `address_city`, `address_state`, `address_country`, `address_zipCode` | The default billing address. |
| `custom_attributes.<key>` | The value of each custom attribute. |

The file holds no default shipping address.

## Permissions

| Action | Required permission |
| - | - |
| Add a customer | **Can Read Customer** and **Can Create Customer** |
| Import customers from a CSV file | **Can Read Job** and **Can Create Job** |
| Find or view a customer | **Can Read Customer** |
| Edit a customer | **Can Read Customer** and **Can Update Customer** |
| Add, edit, or remove a contact | **Can Read Customer** and **Can Update Customer** |
| Open the customer portal | **Can Read Customer** and **Can Update Customer** |
| Export customers | **Can Read Job** and **Can Create Job** |
| Download an export | **Can Read Job** |
| Delete a customer | **Can Read Customer** and **Can Delete Customer** |

## API reference

| Operation | API reference |
| - | - |
| List customers | [List customers with filtering and pagination](https://zenskar.com/docs/api-reference/customers/list-customers-with-filtering-and-pagination.md) |
| Get a customer | [Get customer by ID](https://zenskar.com/docs/api-reference/customers/get-customer-by-id.md) |
| Add a customer | [Create customer](https://zenskar.com/docs/api-reference/customers/create-customer.md) |
| Edit a customer | [Update customer](https://zenskar.com/docs/api-reference/customers/update-customer.md) |
| Delete a customer | [Delete customer](https://zenskar.com/docs/api-reference/customers/delete-customer.md) |
| Open the customer portal | [Create customer or guest session](https://zenskar.com/docs/api-reference/customers/create-customer-or-guest-session.md) |
| List contacts | [List contacts](https://zenskar.com/docs/api-reference/contacts/list-contacts.md) |
| Add a contact | [Create contact](https://zenskar.com/docs/api-reference/contacts/create-contact.md) |
| Edit a contact | [Update contact](https://zenskar.com/docs/api-reference/contacts/update-contact.md) |
| Remove a contact | [Delete contact](https://zenskar.com/docs/api-reference/contacts/delete-contact.md) |

## Troubleshooting

| Problem | Cause | Solution |
| - | - | - |
| A customer cannot be added or saved, because of the email address. | Another customer of the organization has the same email address. | Enter a different email address, or edit the other customer. |
| A customer cannot be added or saved, because of the external ID. | Another customer of the organization has the same external ID. | Enter a different external ID, or edit the other customer. |
| The business entity of a customer is wrong. | The business entity cannot change after the customer is added. | Add a new customer with the right business entity. |
| A customer cannot be deleted, because of a contract. | The customer has a contract of any status, including a [draft contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#draft-contract). | Delete the contracts of the customer first. See [Delete a customer](https://zenskar.com/docs/20260301/zenskar-modules/customers/how-to-guides.md#delete-a-customer). |
| A customer cannot be deleted, because the customer pays for contracts. | The customer is the bill-to party or the payer of the contracts that the dashboard names. | Change the bill-to party or the payer of those contracts first. |
| A customer cannot be deleted, because of child customers. | The customer has child customers. | Unlink the child customers first. |
| The default billing address shows **Invalid**. | The connected third-party tax engine could not validate the address. | Correct the address. See [Edit a customer](https://zenskar.com/docs/20260301/zenskar-modules/customers/how-to-guides.md#edit-a-customer). |
| A customer receives no invoice emails. | **Email invoices and reminders** is cleared for the customer. | Select **Email invoices and reminders**. See [Edit a customer](https://zenskar.com/docs/20260301/zenskar-modules/customers/how-to-guides.md#edit-a-customer). |
| A contact receives no invoice emails. | **Send invoices** is cleared for the contact, or **Email invoices and reminders** is cleared for the customer. | Select both. See [Edit or remove a contact](https://zenskar.com/docs/20260301/zenskar-modules/customers/how-to-guides.md#edit-or-remove-a-contact). |
| An invoice is not charged automatically, although the customer has automatic charging on. | The invoice was created while automatic charging was off for the customer. | Turn on **Enable Charge** on the screen of the invoice. See [Turn automatic charging on or off for an invoice](https://zenskar.com/docs/20260301/zenskar-modules/invoices/how-to-guides/invoices.md#turn-automatic-charging-on-or-off-for-an-invoice). |
| The link to the customer portal does not work. | The session of the link ended after 12 to 24 hours without use, or a newer link was opened for the customer. | Open the customer portal again, and send the new link. See [Open the customer portal](https://zenskar.com/docs/20260301/zenskar-modules/customers/how-to-guides.md#open-the-customer-portal). |
| A CSV import added fewer customers than the rows of the file. | Rows with an email address or an external ID that another customer has, or with a missing or too long value, are skipped. | Correct the skipped rows that the summary of the **Upload customers** dialog lists, and import them again. See [Import customers from a CSV file](https://zenskar.com/docs/20260301/zenskar-modules/customers/how-to-guides.md#import-customers-from-a-csv-file). |
| The **Upload customers** dialog does not upload a CSV file. | The file has no `email` and no `reference_id` column, or **Import payment methods from Stripe** is selected without a `reference_id` column. A file with no rows under its header row cannot be uploaded either. The dialog names the problem. | Correct the file, and choose the file again. |
| A CSV import created no Cedar contracts. | **Create a contract for each customer** does not create contracts that Cedar uses. | Add each contract on the **Contracts** screen. See [Create a contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/contracts.md#create-a-contract). |
| **Payment methods** does not appear on the screen of a customer. | Stripe is not connected. | Connect Stripe. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.