Actualizar negocio
PATCH
https://api.bydomu.com/v1/deals/{id}This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.
Actualiza solo los campos enviados. Para cambiar de etapa usa POST /deals/{id}/move.
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)
18 · all optionaltitlestring · optional3–200 chars
valuenumber · optional≥ 0 · nullable
currencystring · optionalCOP · USD · EUR · MXN · BRL · ARS · BOB · CAD · CLP · CRC · CUP · DOP · GBP · GTQ · HNL · NIO · PEN · PYG · UYU · VES · default "COP"
probabilityinteger · optionaldefault 0 · 0–100 · nullable
expectedCloseDatestring · optionalnullable
notesstring · optional≤ 5000 chars
See the other 12 parameters
contactIdstring · optionalnullable
stageIdstring · optionalpipelineIdstring · optionalagentIdstring · optionalpropertyIdsstring[] · optionalintentstring · optionalPURCHASE · RENT · BOTH · SELLER
budgetMinnumber · optional≥ 0 · nullable
budgetMaxnumber · optional≥ 0 · nullable
preferredZonesstring[] · optionalpropertyTypesstring[] · optionalleadSourcestring · optionalREFERRAL · PORTAL · SOCIAL · COLD · OTHER
commissionConfigIdstring · optionalnullable
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