Skip to main content
GET
/
api
/
clientes
curl -X GET https://your-domain.com/api/clientes \
  -H "Cookie: session=your-session-token"
[
  {
    "id": 1,
    "legal_name": "Empresa SA",
    "tax_id": "20-12345678-9",
    "phone": "+54 11 1234-5678",
    "email": "[email protected]",
    "client_type": "FFWW",
    "user_id": 3,
    "user_name": "Juan Pérez",
    "is_active": true
  },
  {
    "id": 2,
    "legal_name": "Cliente Final SRL",
    "tax_id": "20-98765432-1",
    "phone": "+54 11 9876-5432",
    "email": "[email protected]",
    "client_type": "Final",
    "user_id": 5,
    "user_name": "María González",
    "is_active": true
  }
]
Lists all clients in the system with their associated salesperson details.

Authentication

Requires an active session. Available to all authenticated roles.

Response

Returns an array of client objects with joined user information.
id
integer
Unique client identifier
Client’s legal business name (razón social)
tax_id
string | null
Tax identification number (CUIT/CUIL) for invoicing
phone
string | null
Contact phone number
email
string | null
Contact email address
client_type
enum
Type of client businessPossible values: "FFWW", "Final", "Both"
user_id
integer | null
ID of the assigned salesperson (references users table)
user_name
string | null
Full name of the assigned salesperson
is_active
boolean
Whether the client is currently active
curl -X GET https://your-domain.com/api/clientes \
  -H "Cookie: session=your-session-token"
[
  {
    "id": 1,
    "legal_name": "Empresa SA",
    "tax_id": "20-12345678-9",
    "phone": "+54 11 1234-5678",
    "email": "[email protected]",
    "client_type": "FFWW",
    "user_id": 3,
    "user_name": "Juan Pérez",
    "is_active": true
  },
  {
    "id": 2,
    "legal_name": "Cliente Final SRL",
    "tax_id": "20-98765432-1",
    "phone": "+54 11 9876-5432",
    "email": "[email protected]",
    "client_type": "Final",
    "user_id": 5,
    "user_name": "María González",
    "is_active": true
  }
]

Build docs developers (and LLMs) love