> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.tiankii.com/api-reference/tiankii-api-api-key/customers/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tiankii.com/_mcp/server. # Overview ## Customers — Base: `/v1/customers` **Customers** are the **merchant's clients** (the buyers), stored per store. They hold contact and address details (`name` and `email` required; phone and address optional). Their main use: they are the recipients to whom the merchant **extends payment requests of type** **`INVOICE`** — bills issued to a specific customer that the customer later pays through a *checkout invoice* generated at checkout. An invoice's `customerId` points to one of these records. * **Uniqueness**: `email` is unique per store (case-insensitive); a duplicate email returns `400`. * **Scope (store)**: `storeId` is derived from the API key context; it is not sent in the body. * **Scopes**: `Merchant.customer.{read,create,update,delete}`. Endpoints: create, list, get by id, update and delete a customer. ## API Docs - Customers [List customers](https://docs.tiankii.com/api-reference/tiankii-api-api-key/customers/list.md) - Customers [Create customer](https://docs.tiankii.com/api-reference/tiankii-api-api-key/customers/create.md) - Customers [Get customer](https://docs.tiankii.com/api-reference/tiankii-api-api-key/customers/get.md) - Customers [Delete customer](https://docs.tiankii.com/api-reference/tiankii-api-api-key/customers/delete.md) - Customers [Update customer](https://docs.tiankii.com/api-reference/tiankii-api-api-key/customers/update.md) - Customers [List customer invoices](https://docs.tiankii.com/api-reference/tiankii-api-api-key/customers/list-invoices.md) ## OpenAPI Specification The raw OpenAPI 3.1 specification for this API is available at: - [OpenAPI JSON](https://docs.tiankii.com/api-reference/tiankii-api-api-key/customers/openapi.json) - [OpenAPI YAML](https://docs.tiankii.com/api-reference/tiankii-api-api-key/customers/openapi.yaml)