Mover negocio de etapa
POST
https://api.bydomu.com/v1/deals/{id}/moveThis reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.
Mueve el negocio a otra etapa. Al caer en una etapa de ganado o perdido se disparan sus efectos (comisiones, eventos deal.won / deal.lost). Los movimientos de la API quedan marcados como automáticos en el informe de tiempo por etapa.
Permission required
deals:write
Required header
X-API-Key · secret key
Access level
Level 3 · with support review
Path parameters
1 · requiredidstring · requiredID del negocio
Headers
1 · all optionalIdempotency-Keystring · optionalClave única de la operación (8-128 caracteres de
[a-zA-Z0-9._:-]). Un reintento con la misma clave y el mismo cuerpo devuelve la respuesta original sin repetir la operación. Vive 24 horas.8–128 charsBody (JSON)
8 · 3 requiredstageIdstring · requiredpipelineIdstring · requiredstageOrderinteger · required≥ 0
lostReasonstring · optional≤ 1000 chars
lostReasonCategorystring · optionalPRECIO · COMPETENCIA · FINANCIAMIENTO · UBICACION · TIMING · CONDICION · SIN_RESPUESTA · OTRO
commissionConfigIdstring · optionalSee the other 2 parameters
dealValuenumber · optional≥ 0 · nullable
commissionGrossAmountnumber · optional≥ 0 · nullable
Response 200
Deal · 28 fieldsdataNegocio con su contacto, agente, etapas, propiedades, etiquetas y arriendo.
idstringcodestringCódigo legible del negociotitlestringvaluestringNúmero decimal serializado como texto.currencystringprobabilityintegerstatusstringOPEN, WON, LOSTclosedAtstringexpectedCloseDatestringlostReasonstringlostReasonCategorystringintentstringPURCHASE, RENT, BOTH, SELLERbudgetMinstringNúmero decimal serializado como texto.budgetMaxstringNúmero decimal serializado como texto.preferredZonesstring[]propertyTypesstring[]leadSourcestringREFERRAL, PORTAL, SOCIAL, COLD, OTHERnotesstringagentIdstringcontactIdstringcreatedAtstringupdatedAtstringcontactid · firstName · lastName · phone · email · source · score · budget
idstringfirstNamestringlastNamestringphonestring`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)emailstringsourcestringWHATSAPP, METROCUADRADO, FINCARAIZ, WEBSITE, REFERRAL, WALK_INscoreintegerbudgetstringNúmero decimal serializado como texto.agentid · firstName · lastName
idstringfirstNamestringlastNamestringplacements[]id · pipelineId · stageId · stageOrder · stageEnteredAt · stage · pipeline
idstringpipelineIdstringstageIdstringstageOrderintegerstageEnteredAtstringstageid · name · color · order · isWon · isLost
idstringnamestringcolorstringorderintegerisWonbooleanisLostbooleanpipelineid · name
idstringnamestringproperties[]propertyId · property
propertyIdstringpropertyid · title · price · currency · type · transactionType · status · city
idstringtitlestringpricestringNúmero decimal serializado como texto.currencystringtypestringAPARTMENT, HOUSE, OFFICE, COMMERCIAL, LAND, WAREHOUSEtransactionTypestringSALE, RENT, SALE_OR_RENTstatusstringDRAFT, ACTIVE, RESERVED, SOLD, RENTED, INACTIVEcitystringtags[]dealId · tagId · tag
dealIdstringtagIdstringtagid · name · color
idstringnamestringcolorstringleaseid · status
idstringstatusstringPossible errors
shaped as{ "error": { "code", "message" } }- 400Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
- 401UNAUTHORIZED
- 402PAYMENT_REQUIRED
- 403FORBIDDEN
- 404NOT_FOUND
- 409DUPLICATE
- 429RATE_LIMITED
- 500INTERNAL_ERROR