ByDomuDevelopers

Listar negocios

GEThttps://api.bydomu.com/v1/deals

Esta referência é gerada a partir do código da API, por isso as descrições estão em espanhol. Nomes, parâmetros e exemplos são iguais em qualquer idioma.

Negocios de la organización con filtros y paginación por página o por cursor (pageSize máximo 500). status acepta varios valores separados por comas.

Permissão pedida

deals:read

Cabeçalho obrigatório

X-API-Key · chave secreta

Nível de acesso

Nível 2 · automático na Inmobiliaria Pro

Parâmetros de consulta

19 · todos opcionais
searchstring · opcional
Título o código del negocio
propertyIdstring · opcional
Negocios vinculados a esta propiedad
statusstring[] · opcional
Estados, separados por comasOPEN · WON · LOST · nullable
stageIdstring · opcional
Negocios en esta etapa
Ver os outros 15 parâmetros
pipelineIdstring · opcional
Negocios en este pipeline (si no se manda stageId)
orphanboolean · opcional
Negocios sin pipeline. Cualquier valor no vacío (incluso false) cuenta como verdaderonullable
agentIdstring · opcional
Agente responsable
contactIdstring · opcional
Contacto del negocio
tagIdstring · opcional
Con esta etiqueta
valueMinnumber · opcional
Valor mínimo≥ 0 · nullable
valueMaxnumber · opcional
Valor máximo≥ 0 · nullable
expectedCloseAfterstring · opcional
Cierre esperado desde esta fecha (ISO 8601)
expectedCloseBeforestring · opcional
Cierre esperado hasta esta fecha (ISO 8601)
pageinteger · opcional
Página, desde 1padrão 1 · ≥ 1
pageSizeinteger · opcional
Negocios por página (máximo 500)padrão 20 · 1–500
cursorstring · opcional
Paginación por cursor: el meta.nextCursor de la respuesta anterior
includeTotalboolean | string · opcional
false para no contar el total (más rápido)
sortBystring · opcional
Campo de orden (por defecto createdAt)padrão "createdAt"
sortOrderstring · opcional
Dirección del ordenasc · desc · padrão "desc"

Resposta 200

Deal[] · 28 campos
data[]id · code · title · value · currency · probability · status · closedAt · expectedCloseDate · lostReason · lostReasonCategory · intent · budgetMin · budgetMax · preferredZones · propertyTypes · leadSource · notes · agentId · contactId · createdAt · updatedAt · contact · agent · placements · properties · tags · lease
idstring
codestringCódigo legible del negocio
titlestring
valuestringNúmero decimal serializado como texto.
currencystring
probabilityinteger
statusstringOPEN, WON, LOST
closedAtstring
expectedCloseDatestring
lostReasonstring
lostReasonCategorystring
intentstringPURCHASE, RENT, BOTH, SELLER
budgetMinstringNúmero decimal serializado como texto.
budgetMaxstringNúmero decimal serializado como texto.
preferredZonesstring[]
propertyTypesstring[]
leadSourcestringREFERRAL, PORTAL, SOCIAL, COLD, OTHER
notesstring
agentIdstring
contactIdstring
createdAtstring
updatedAtstring
contactid · firstName · lastName · phone · email · source · score · budget
idstring
firstNamestring
lastNamestring
phonestring`null` si el contacto llegó por un canal sin número (Instagram, Facebook, chat de la web, correo o WhatsApp con usuario y número oculto)
emailstring
sourcestringWHATSAPP, METROCUADRADO, FINCARAIZ, WEBSITE, REFERRAL, WALK_IN
scoreinteger
budgetstringNúmero decimal serializado como texto.
agentid · firstName · lastName
idstring
firstNamestring
lastNamestring
placements[]id · pipelineId · stageId · stageOrder · stageEnteredAt · stage · pipeline
idstring
pipelineIdstring
stageIdstring
stageOrderinteger
stageEnteredAtstring
stageid · name · color · order · isWon · isLost
idstring
namestring
colorstring
orderinteger
isWonboolean
isLostboolean
pipelineid · name
idstring
namestring
properties[]propertyId · property
propertyIdstring
propertyid · title · price · currency · type · transactionType · status · city
idstring
titlestring
pricestringNúmero decimal serializado como texto.
currencystring
typestringAPARTMENT, HOUSE, OFFICE, COMMERCIAL, LAND, WAREHOUSE
transactionTypestringSALE, RENT, SALE_OR_RENT
statusstringDRAFT, ACTIVE, RESERVED, SOLD, RENTED, INACTIVE
citystring
tags[]dealId · tagId · tag
dealIdstring
tagIdstring
tagid · name · color
idstring
namestring
colorstring
leaseid · status
idstring
statusstring
metaPaginación por página (`page`) o por cursor (`cursor` = `nextCursor` de la respuesta anterior). Con cursor no se cuenta el total, que es lo más rápido para recorrer todo.
totalintegerTotal de registros. `null` al paginar con `cursor` o con `includeTotal=false`.
pageinteger
pageSizeinteger
totalPagesinteger`null` cuando no se contó el total.
nextCursorstringPásalo como `cursor` para pedir la página siguiente. `null` en la última.
hasMorebooleanHay más registros después de esta página.

Erros possíveis

com a forma { "error": { "code", "message" } }
  • 400Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
  • 401UNAUTHORIZED
  • 403FORBIDDEN
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
RequisiçãoGET/v1/deals
SDK oficial · @bydomu/sdk · ainda não está no npm
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data, meta } = await bydomu.deals.list();
200 OK · exemplo
{
  "data": [
    {
      "id": "clx1deal001",
      "code": "N-0031",
      "title": "Venta Apto Chapinero - María González",
      "value": "350000000.00",
      "currency": "COP",
      "probability": 40,
      "status": "OPEN",
      "closedAt": "2026-10-30T18:00:00.000Z",
      "expectedCloseDate": "2026-11-30T00:00:00.000Z",
      "lostReason": "Compró con otra inmobiliaria",
      "lostReasonCategory": "COMPETENCIA",
      "intent": "PURCHASE",
      "budgetMin": "300000000.00",
      "budgetMax": "400000000.00",
      "preferredZones": [
        "Chapinero"
      ],
      "propertyTypes": [
        "APARTMENT"
      ],
      "leadSource": "REFERRAL",
      "notes": "Pre-aprobada para crédito hipotecario.",
      "agentId": "clx1usr001",
      "contactId": "clx1con001",
      "createdAt": "2026-09-01T08:00:00.000Z",
      "updatedAt": "2026-09-25T16:45:00.000Z",
      "contact": {
        "id": "clx1con001",
        "firstName": "María",
        "lastName": "González",
        "phone": "+573001234567",
        "email": "[email protected]",
        "source": "WHATSAPP",
        "score": 75,
        "budget": "350000000.00"
      },
      "agent": {
        "id": "clx1usr001",
        "firstName": "Carlos",
        "lastName": "Rodríguez"
      },
      "placements": [
        {
          "id": "clx1plc001",
          "pipelineId": "clx1pip001",
          "stageId": "clx1stg002",
          "stageOrder": 0,
          "stageEnteredAt": "2026-09-20T10:00:00.000Z",
          "stage": {
            "id": "clx1stg002",
            "name": "Visita",
            "color": "#6366F1",
            "order": 1,
            "isWon": false,
            "isLost": false
          },
          "pipeline": {
  …