API REST v1 — Solicitudes

Autenticación con Bearer token (Laravel Sanctum). Genera el token en la app: Configuración → Integraciones / API.

Base

https://zhysqua.com/api/v1
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json

Endpoints

  • POST /stops — crear solicitud
  • GET /stops — listar (fecha, estado, q, page, per_page)
  • GET /stops/{id} — detalle (?by=id|ticket)
  • PATCH /stops/{id} — actualizar campos editables
  • PATCH /stops/{id}/status — cambiar estado (INACTIVE requiere motivo)

Ejemplo: crear solicitud

curl -X POST "https://zhysqua.com/api/v1/stops" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "fechaGestion": "2026-07-14",
    "destino": "Cliente ERP",
    "direccion": "Calle 100 # 19-54",
    "ciudad_entrega": "Bogotá",
    "contacto": "Ana",
    "ventana_tipo": "JORNADA"
  }'

Respuesta: { "ok": true, "data": { ... } }. Fechas pasadas o inválidas se normalizan a hoy. No se geocodifica en el alta.

← Docs