Integrations
Sync an opportunity
Integrations
Sync an opportunity
Sync an opportunity
PUT
/
v1
/
integrations
/
sync
/
opportunities
curl --request PUT \
--url https://us-central1-siro-prod.cloudfunctions.net/api-externalApi/v1/integrations/sync/opportunities \
--header 'Content-Type: application/json' \
--data '{
"externalId": "<string>",
"name": "<string>",
"amount": 123,
"closedAt": "<string>",
"disposition": "OPEN",
"account": {
"externalId": "<string>",
"name": "<string>",
"latitude": 123,
"longitude": 123,
"addresses": [
{
"country": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
]
},
"opportunityUsers": [
{
"externalId": "<string>",
"email": "<string>",
"shareOfSale": 123
}
]
}'
{
"data": {
"id": "<string>",
"externalId": "<string>",
"name": "<string>",
"amount": 123,
"closedAt": "<string>",
"disposition": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"recordingId": "<string>",
"accountId": "<string>",
"organizationId": "<string>",
"account": "<any>",
"opportunityUsers": [
"<any>"
]
}
}
Body
application/json
Available options:
OPEN
, LOST
, WON
Response
200 - application/json
Sync an opportunity
The ID of the opportunity in the external system (e.g. Salesforce)
The name of the opportunity
The date the opportunity was created
The date the opportunity was last updated
The dollar amount of the opportunity
The closure date of the opportunity
"WON" | "LOST" | "OPEN"
The ID of the recording associated to the opportunity
curl --request PUT \
--url https://us-central1-siro-prod.cloudfunctions.net/api-externalApi/v1/integrations/sync/opportunities \
--header 'Content-Type: application/json' \
--data '{
"externalId": "<string>",
"name": "<string>",
"amount": 123,
"closedAt": "<string>",
"disposition": "OPEN",
"account": {
"externalId": "<string>",
"name": "<string>",
"latitude": 123,
"longitude": 123,
"addresses": [
{
"country": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
]
},
"opportunityUsers": [
{
"externalId": "<string>",
"email": "<string>",
"shareOfSale": 123
}
]
}'
{
"data": {
"id": "<string>",
"externalId": "<string>",
"name": "<string>",
"amount": 123,
"closedAt": "<string>",
"disposition": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"recordingId": "<string>",
"accountId": "<string>",
"organizationId": "<string>",
"account": "<any>",
"opportunityUsers": [
"<any>"
]
}
}