The Clients module is where Yakult App stores all of your customer relationships. Every client record holds the contact and location details your sales team needs in the field — and because each record carries an active/inactive status, you can retire a customer without losing their historical order data. The mobile app makes it fast to find any client through real-time search and status filtering, and the stored phone number doubles as a direct gateway to WhatsApp for sending order updates.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/160906/Yakultt-App/llms.txt
Use this file to discover all available pages before exploring further.
Client Fields
Each client record contains the following fields:| Field | Type | Description |
|---|---|---|
id | integer | Auto-incremented primary key |
nombre | string | Full client name |
telefono | string | 10-digit Mexican mobile number |
direccion | string | Delivery address |
activo | boolean | Whether the client is active (true by default on creation) |
creado_en | timestamp | Record creation timestamp |
Sample Client Object
Validation Rules
The mobile app enforces the following validation before any create or update request is sent to the API:nombre
Letters (and spaces) only — no numbers or special characters. Cannot be empty.
telefono
Exactly 10 digits — no spaces, dashes, or country codes. The app strips non-digit characters before validating.
direccion
Minimum 5 characters. Cannot be blank or a trivial placeholder.
These validations are enforced client-side in the mobile app. If you call the API directly (e.g., via
curl or an integration), the backend will accept the record as-is. Always sanitize inputs on your own side when bypassing the mobile UI.API Endpoints
The clients resource is mounted at/api/clientes.
- List Clients
- Create Client
- Update Client
- Toggle Active Status
- Delete Client
Retrieve all client records ordered alphabetically by name.Response — array of client objects:
Search and Filtering
The mobile app provides two complementary ways to narrow down the client list without any additional API calls — both operate on the full list already loaded in memory.Search
The search bar matches against both
nombre and telefono simultaneously as you type, so you can find a client by partial name or by part of their phone number.Status Filter
A segmented control lets you switch between three views: Todos (all clients), Activos (only
activo: true), and Inactivos (only activo: false). The filter stacks with search.WhatsApp Integration
Thetelefono field stored on each client record is the foundation of Yakult App’s WhatsApp notification system. When a sales rep wants to notify a client about their order, the app constructs a wa.me deep-link using the stored number.
The link is built as follows:
52) if it is not already present, resulting in links of the form: