Actualizar oportunidad en Salesflare, con una API

Actualiza los campos indicados de una oportunidad. Moverla por el pipeline es un cambio de etapa.

Identificador
salesflare_update_opportunity

La llamada

POST https://connect.reportei.com/api/tools/salesflare_update_opportunity/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "id": 1
  }
}

Tu sistema envía el id de la conexión de tu cliente y los argumentos de la tool. Los headers son los mismos de toda la API de Connect: el token de tu producto y el token de tu cliente.

Parámetros

Las descripciones de los parámetros siguen la documentación oficial de la app, en inglés.

ParámetroTipoObligatorioDescripción
idintegerSíId of the opportunity, from List opportunities or Create opportunity.
namestringNoName of the opportunity.
accountintegerNoId of the account, from List accounts.
stageintegerNoId of the new stage, from the stages of List pipelines.
valuenumberNoValue of the deal, in the currency of the pipeline.
probabilitynumberNoChance of winning, in percent.
close_datestringNoClose date, in ISO 8601.
closedbooleanNoWhether the opportunity is closed.
donebooleanNoWhether the opportunity is marked as done.
main_contactintegerNoId of the main contact, from List contacts.
ownerintegerNoId of the user who owns the opportunity, from List users.
assigneeintegerNoId of the user assigned to the opportunity, from List users.
tagsarrayNoTag names.
customobjectNoCustom field values, keyed by the API name of each custom field of the team.

Conexiones posibles

Tu cliente conecta su cuenta de Salesflare una sola vez, con uno de los modos de abajo. La misma conexión sirve para todas las tools del toolkit.

Clave de API

Tu cliente pega la clave de la app en una pantalla de Connect, o tu sistema envía la clave con POST /api/customer-toolkits, sin pantalla.

La respuesta

Si la llamada tiene éxito, Connect conserva el status y el cuerpo de la respuesta de la app. Los errores HTTP devueltos por la app usan el objeto {error, api_error}; la autenticación o validación pueden fallar antes de la ejecución. El header X-Toolkit-Execution-Id identifica la ejecución registrada, disponible en GET /api/tools/executions/{uuid}.

Lista para agentes de IA

El input de esta tool es un JSON Schema, disponible en GET /api/tools/salesflare_update_opportunity. Se convierte en la definición de tool de tu agente sin conversión.

Mira Connect aplicado a tu producto.

Pruébalo durante 15 días sin tarjeta, o cuéntale tu caso a nuestro equipo.