---
title: "Sync Contact With Stelorder"
method: POST
path: "/api/hubspot/stelorder-webhook"
tags: ["hubspot", "hubspot-stelorder"]
---

# Sync Contact With Stelorder

`POST /api/hubspot/stelorder-webhook`

Webhook completo: recibe un email, recupera datos del contacto en HubSpot
y sincroniza todo el flujo: cliente, incidencia, PDT, eventos en Stelorder y Google Calendar.

## Response `200`

Successful Response

- HubspotStelorderWebhookResponse
  - `status` 'ok'
  - `hubspot_contact_id` string, nullable
  - `stelorder` StelorderClientResult, required
    - `action` 'created' | 'updated', required
    - `client_id` integer, nullable
    - `payload` object, required
  - `sync_result` StelorderSyncResult — Resultado completo de la sincronización con Stelorder y Google Calendar.
    - `hubspot_contact_id` string, required
    - `contact_email` string, required
    - `actions` string[] — Lista de acciones realizadas
    - `stelorder_client_id` integer, nullable
    - `stelorder_incident_id` integer, nullable
    - `stelorder_work_order_id` integer, nullable
    - `stelorder_event_id` integer, nullable
    - `google_calendar_event_id` string, nullable

---

[API](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api.md) · [All operations](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hogarsolar/hogarsolar-backend-api/revisions/d9861e46bef8/schema)
