# Customers and items

> Model who you sell to, which tax identity you invoice them under and what you sell them.

Source: https://app.relvoerp.com/docs/product/en/customers-catalog/

## Customers

A customer is the company you have a commercial relationship with. It is the party you talk to: it has a name, a contact, a history. It is not necessarily the entity you issue the document to.

Relvo separates three things that a spreadsheet usually collapses into a single column:

| Piece | What it is | Example |
| --- | --- | --- |
| **Customer** | The commercial relationship | Acme AI |
| **Billing account** | The legal and tax identity that receives the document | Acme AI SpA, RUT (Chilean tax ID) 76.123.456-7 |
| **Billing link** | The terms under which you invoice that identity | 30 days, subject to VAT (IVA), domestic invoice |

> **Key rule: A customer can invoice more than one identity**
>
> A single customer can have several billing accounts—subsidiaries, countries, cost centers—and each link carries its own terms. That is why payment terms and tax treatment live on the link, not on the customer: changing them for one subsidiary does not affect the others.

### Billing accounts

The billing account brings together the legal name, tax ID, line of business (*giro*), default currency, time zone and address that Relvo uses when issuing documents. Set it up before enabling invoicing for that customer.

The same structure serves both ends of the document: there are billing accounts with the **issuer** role—your own legal identities, one per country or line of business—and with the **customer** role.

> **Caution: Not everything you see was created by you**
>
> When syncing documents from the SII (Chile's tax authority), Relvo creates any missing billing account so it can record the document without losing it. Those accounts are flagged as **automatically created**, as opposed to **verified by a person**. Review and merge them before treating them as curated customers: it is the difference between a customer and a RUT that showed up on a bank statement.

### Link terms

| Term | What it determines |
| --- | --- |
| **Payment terms** | The due date of each invoice, and with it the entire overdue axis. |
| **Tax treatment** | Taxable, exempt or reverse charge (*cambio de sujeto*). |
| **Default document** | Domestic invoice, receipt (*boleta*) or export invoice. |
| **Status** | Active, suspended or archived — suspending stops invoicing without erasing the history. |

A one-off invoice can force export treatment at issuance; otherwise, the document follows what the link says.

### Contacts

Contacts hang off the billing link, not the customer, and each one has one or more **roles**:

| Role | What it receives |
| --- | --- |
| **Billing** | Issued invoices and credit notes |
| **Collections** | Payment reminders |
| **Commercial reference** | Requests for purchase orders (OC, *orden de compra*) and service acceptance sheets (HES) |
| **XML email** | Only the document's XML, for accounting systems |

There is one default contact per role within each link. A single contact can have several roles, and its identity is preserved even if its email changes: if an address bounces and is replaced, no new person appears in the operation.

## Items

An item represents a product or service you sell: a platform, conversations, an implementation. It is the commercial basis on which a contract's charges are defined, and what is described on the invoice line.

An item does **not** carry a price. The price lives on the contract charge, because the same service can cost different amounts in two contracts, and the 2024 price must not be rewritten when you change the 2026 price list.

**Example: One item, two contracts**

| Contract | Item | Charge |
| --- | --- | --- |
| Acme AI | Conversations | Usage-based, tiered: 1,000 included, then USD 0.10 |
| Globex | Conversations | Usage-based, flat rate USD 0.08 |

Items are deactivated rather than deleted: documents already issued keep pointing to the item they were issued with.

## API

| Resource | Endpoint | Scopes |
| --- | --- | --- |
| Customers and billing entities | `/api/v1/public/customers` | `customers:read` · `customers:write` |
| Taxpayer lookup (Chile) | `GET /api/v1/public/integrations/chile/taxpayers/lookup` | `customers:read` |
| Payment methods | `/api/v1/public/customers/{customer_id}/payment-methods` | `payment_methods:read` · `payment_methods:write` |
| Items | `/api/v1/public/catalog/items` | `catalog:read` · `catalog:write` |
| Billable metrics | `/api/v1/public/catalog/billable-metrics` | `catalog:read` · `catalog:write` |

Every `POST` requires `Idempotency-Key`. `PATCH` and `DELETE` also require `If-Match`. Lists return `{items, next_cursor}` and accept `query`, `limit` and `cursor`.

- [Charges and pricing](https://app.relvoerp.com/docs/product/en/pricing.md): The pricing models a charge on an item can use.
- [Contracts and phases](https://app.relvoerp.com/docs/product/en/contracts.md): Where the customer, the item and the price come together.
