Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Upsert Opportunity
POST https://services.leadconnectorhq.com/opportunities/upsert

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Body

id
string
default:"yWQobCRIhRguQtD2llvk"
opportunityId
pipelineId
string
default:"bCkKGpDsyPP4peuKowkG"
required
pipeline Id
locationId
string
default:"CLu7BaljjqrEjBGKTNNe"
required
locationId
followers
string[]
default:"LiKJ2vnRg5ETM8Z19K7"
required
contactId
isRemoveAllFollowers
boolean
default:"True"
required
isRemoveAllFollowers
followersActionType
string
default:"add"
required
followers action type Posibles valores: ‘add’, ‘remove’
name
string
default:"opportunity name"
name
status
string
Posibles valores: ‘open’, ‘won’, ‘lost’, ‘abandoned’, ‘all’
pipelineStageId
string
default:"7915dedc-8f18-44d5-8bc3-77c04e994a10"
monetaryValue
object
default:"220"
assignedTo
string
default:"082goXVW3lIExEQPOnd3"
lostReasonId
string
default:"CLu7BaljjqrEjBGKTNNe"
lost reason Id

Respuestas

opportunity
object
required
Updated / New Opportunity
new
boolean
default:"True"
required
{
  "opportunity": {},
  "new": true
}
{}
{}
{}

Ejemplo

curl -X POST 'https://services.leadconnectorhq.com/opportunities/upsert' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "yWQobCRIhRguQtD2llvk",
  "pipelineId": "bCkKGpDsyPP4peuKowkG",
  "locationId": "CLu7BaljjqrEjBGKTNNe",
  "followers": "LiKJ2vnRg5ETM8Z19K7",
  "isRemoveAllFollowers": true,
  "followersActionType": "add",
  "name": "opportunity name",
  "status": "open",
  "pipelineStageId": "7915dedc-8f18-44d5-8bc3-77c04e994a10",
  "monetaryValue": 220,
  "assignedTo": "082goXVW3lIExEQPOnd3",
  "lostReasonId": "CLu7BaljjqrEjBGKTNNe"
}'