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

# Resources

> How CurbWaste objects relate: the customer account, what connects to it, and where each resource lives in REST or MCP.

## How they connect

A customer is the account. After you create one, store `id` and pass that UUID as `customerId` wherever another resource asks for the account.

* **Locations** always belong to one customer.
* **Catalog** (SKUs, services, materials, company price lists) belongs to the company. A customer price list is the exception: it is pricing scoped to that account.
* **Invoices and orders** reference the customer. An order is also tied to a location. An invoice can include payments and credit notes when you expand it; those objects also belong to the customer, and a payment is not always tied to a single invoice.

Work with resources through the partner REST API or through [MCP](https://docs.curbwaste.com/concepts/mcp.md) with the same scopes. Endpoint detail lives in the [API Reference](https://docs.curbwaste.com/api-reference/overview.md).

## Resource map

| Resource | Relationship | Where | Scope |
| - | - | - | - |
| **Customer** | Account hub | REST `/v1/customers` | `customers:read` / `customers:write` |
| **Location** | Service site under a customer | REST `/v1/locations`, `/v1/zones` | `locations:read` / `locations:write` |
| **Catalog** | SKUs, services, pricelists, charges, materials; some pricing is customer-scoped | REST `/v1/skus`, `/v1/services`, `/v1/pricelists`, … | `catalog:read` |
| **Invoice** | Bills a customer | REST `/v1/invoices` | `invoices:read` |
| **Balance, payments, credit notes** | What a customer owes; how payments and credits apply | [MCP](https://docs.curbwaste.com/concepts/mcp.md) | `invoices:read`, `payments:read`, `credit_notes:read` |
| **Orders, routes, drivers, haulers, labels, billing templates, payment policies, reports** | Operations and configuration objects | [MCP](https://docs.curbwaste.com/concepts/mcp.md) | Matching resource scopes |

REST rows open under **API Reference → REST API**. MCP-only rows list every tool and scope on the [MCP](https://docs.curbwaste.com/concepts/mcp.md) page.

## Identifiers

| Field | What it is | How to use it |
| - | - | - |
| `id` | Stable UUID | Join key after create. Use it in paths (`/v1/customers/{id}`) and when other endpoints ask for a UUID (`customerId`). |
| Display numbers | Values shown in CurbWaste (for example `customerNumber` `C001`, invoice numbers) | Read-only / searchable. Not the UUID in `id`. |

> [!WARNING]
>
> When Locations or catalog pricing inputs require a UUID `customerId`, pass the Customer’s `id`, not `customerNumber`.

## Customers

Create and update customers under `/v1/customers`. Profile field tables and request shapes live on the [Customers API](https://docs.curbwaste.com/api-reference/customers/list-customers.md). For the create → store UUID → update workflow, see [Sync customers](https://docs.curbwaste.com/guides/sync-customers.md).

### Services on create

Create requires `serviceIds`. Prefer these **identifier** strings. They are the same for every company:

| Identifier | Service |
| - | - |
| `DUMPSTER` | Dumpster |
| `LIVE_LOAD` | Live Load |
| `MINIS` | Minis |
| `COMMERCIAL_ROUTE` | Commercial Route |
| `RESIDENTIAL_ROUTE` | Residential Route |

Match is exact and case-sensitive. The service must be **active** for your API key’s company, or create fails. You can also send the service `id` UUID from `GET /v1/services`. Do **not** send numeric `code` (`1`–`5`). It is not accepted.

Example: `"serviceIds": ["DUMPSTER"]`.

### Labels on write

Label ids for write come from the `search_labels` MCP tool (company-configured labels).

On create and update, when either `customerLabelIds` or `globalLabelIds` is present, both replace the full set (the omitted array means empty). Both omitted assigns no labels on create and leaves labels unchanged on update. The same label id must not appear in both arrays. A global label is also applied to that customer’s active locations.

Successful create/update emit `customer.created` / `customer.updated` webhook events. See [Webhooks](https://docs.curbwaste.com/concepts/webhooks.md).

## Related

> [card] [Sync customers](https://docs.curbwaste.com/guides/sync-customers.md)
>
> Keep your system aligned using CurbWaste `id` as the join key.

> [card] [Webhooks](https://docs.curbwaste.com/concepts/webhooks.md)
>
> React to create and update events with signed deliveries.

> [card] [API overview](https://docs.curbwaste.com/api-reference/overview.md)
>
> REST conventions and where each domain lives.


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