curl --request GET \
--url https://api.wegly.com.br/integrations/external/deals/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.wegly.com.br/integrations/external/deals/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wegly.com.br/integrations/external/deals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wegly.com.br/integrations/external/deals/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wegly.com.br/integrations/external/deals/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wegly.com.br/integrations/external/deals/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wegly.com.br/integrations/external/deals/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"code": 123,
"title": "<string>",
"measurement_consent": "GRANTED",
"status": 1,
"created_by": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"stage": {
"id": "<string>",
"name": "<string>",
"pipeline": {
"id": "<string>",
"name": "<string>"
}
},
"pipeline_stages": [
{
"id": "<string>",
"name": "<string>",
"position": 123
}
],
"responsible": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"deal_source": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"marketing_lead_source": {
"id": "<string>",
"utm_search_term": "<string>",
"utm_medium": "<string>",
"lead_source": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"url_conversion": "<string>",
"campaing_name": "<string>",
"ad_set_name": "<string>",
"content_name": "<string>",
"displayed_on_name": "<string>",
"conversion_tool_name": "<string>",
"creative": {
"id": "<string>",
"value": "<string>",
"creative_uri": "<string>"
},
"source_url": "<string>",
"headline": "<string>",
"ad_body": "<string>",
"media_type": "<string>",
"ads_clid_id": "<string>",
"gclid": "<string>",
"fbclid": "<string>",
"fbc": "<string>",
"fbp": "<string>",
"conversion_url_full": "<string>",
"measurement_consent": "GRANTED"
},
"quality_rating": 123,
"quality_reason": "<string>",
"won_date": "2023-11-07T05:31:56Z",
"lost_date": "2023-11-07T05:31:56Z",
"crm_loss_reason": {
"id": "<string>",
"name": "<string>"
},
"lost_reason_description": "<string>",
"visibility": 0,
"negotiation_mode": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"last_activity_at": "2023-11-07T05:31:56Z",
"expected_close_date": "2023-11-07T05:31:56Z",
"temperature": 1,
"participants": [
{
"id": "<string>",
"main": true,
"role": "<string>",
"notes": "<string>",
"person": {
"id": "<string>",
"name": "<string>",
"contacts": [
{
"id": "<string>",
"type": 0,
"value": "<string>",
"primary": true
}
]
}
}
],
"organization": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"lead": {
"id": "<string>",
"title": "<string>"
},
"custom_fields": [
{
"field_id": "<string>",
"field_name": "<string>",
"field_type": 123,
"answers": [
{
"id": "<string>",
"option_id": "<string>",
"option_value": "<string>",
"value": "<string>"
}
]
}
],
"tags": [
{
"id": "<string>",
"name": "<string>",
"color": {
"background": "<string>",
"foreground": "<string>"
}
}
],
"stage_durations": [
{
"stage_id": "<string>",
"stage_name": "<string>",
"total_seconds": 123,
"human_readable": "<string>"
}
],
"value": 123,
"views_count": 123,
"associations_count": {
"items": 123,
"tasks": 123,
"qualifications": 123,
"notes": 123,
"files": 123,
"activities": 123,
"proposals": 123
},
"proposals": [
{
"id": "<string>",
"code": 123,
"version": 123,
"title": "<string>",
"status": 123,
"is_primary": true,
"discount_type": 123,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"valid_until": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"approved_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"rejected_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"approved_by": {
"id": "<string>",
"name": "<string>"
},
"delivery_schedule": {
"starts_on": "2023-12-25",
"effective_starts_on": "2023-12-25",
"is_dynamic": true,
"timezone": "<string>",
"calculation_version": 123,
"final_qualifier": "EXACT",
"declared_total": "<string>",
"declared_totals": [
{
"quantity": 123,
"unit": "DAYS",
"counting_mode": "CALENDAR"
}
],
"estimated_delivery_date": "2023-12-25",
"estimated_delivery_is_business_day": true,
"suggested_next_business_date": "2023-12-25",
"elapsed_calendar_days": 123,
"business_days_notice": "Dias úteis consideram somente segunda a sexta-feira; feriados não são considerados.",
"deadlines": [
{
"unit": "DAYS",
"quantity": 18263,
"counting_mode": "CALENDAR",
"stage": "<string>",
"qualifier": "EXACT",
"notes": "<string>",
"position": 123,
"cumulative_qualifier": "EXACT",
"estimated_start_date": "2023-12-25",
"estimated_end_date": "2023-12-25",
"estimated_end_is_business_day": true,
"suggested_next_business_date": "2023-12-25"
}
]
}
}
],
"products": [
{
"id": "<string>",
"product_id": "<string>",
"product": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"unit": 123,
"sale_price": 123
},
"unit": 123,
"quantity": 123,
"unit_price": 123,
"discount_type": 123,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"notes": "<string>",
"is_recurring_default": true,
"billing_interval_default": 123,
"contract_term_months": 123,
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"billing_cycles": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"billing_interval_count": 123
}
],
"followers": [
{
"role": {
"id": "<string>",
"name": "<string>"
},
"user": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"notes": "<string>"
}
],
"icp": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"banner_type": "<string>",
"banner_image_url": "<string>",
"banner_color": "<string>",
"gradient_start_color": "<string>",
"gradient_end_color": "<string>",
"gradient_angle": 123
},
"icps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"banner_type": "<string>",
"banner_image_url": "<string>",
"banner_color": "<string>",
"gradient_start_color": "<string>",
"gradient_end_color": "<string>",
"gradient_angle": 123,
"is_primary": true
}
],
"partners": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": 123,
"name": "<string>",
"trade_name": "<string>",
"logo": "<string>",
"documents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": 123,
"value": "<string>",
"label": "<string>",
"is_primary": true
}
],
"address": {
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zip_code": "<string>",
"street": "<string>",
"number": "<string>",
"complement": "<string>",
"neighborhood": "<string>",
"formatted_address": "<string>",
"latitude": 123,
"longitude": 123
}
}
],
"has_channel_chat": true,
"channel_chats": [
{
"chat_id": "<string>",
"title": "<string>",
"person_id": "<string>",
"person_name": "<string>",
"channel_account_id": "<string>",
"type": "WhatsApp",
"channel_type": "WHATSAPP",
"unread_count": 123,
"channel_account_name": "<string>",
"whatsapp_number_verified_name": "<string>",
"external_contact_id": "<string>",
"external_contact_handle": "<string>",
"chat_responsible": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"avatar": "<string>"
}
}
],
"has_whatsapp_chat": true,
"whatsapp_chats": [
{
"chat_id": "<string>",
"title": "<string>",
"person_id": "<string>",
"person_name": "<string>",
"channel_account_id": "<string>",
"type": "WhatsApp",
"channel_type": "WHATSAPP",
"unread_count": 123,
"channel_account_name": "<string>",
"whatsapp_number_verified_name": "<string>",
"external_contact_id": "<string>",
"external_contact_handle": "<string>",
"chat_responsible": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"avatar": "<string>"
}
}
],
"score": 123,
"score_criteria_count": 123,
"score_updated_at": "2023-11-07T05:31:56Z",
"valuation": {
"mode": "CURRENT",
"source": "LEGACY_CURRENT_VALUE",
"current_value": 123,
"projected_value": 123,
"display_value": 123,
"has_recurring_value": true,
"has_indefinite_recurring_value": true,
"has_rolling_projection": true,
"indefinite_horizon_months": 6,
"calculation_version": 123
},
"qualification_metric": "quality_rating",
"projection_context": {
"indefinite_horizon_months": 6,
"display_mode": "CURRENT"
},
"crm_loss_reasons": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"crm_gain_reason": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"crm_gain_reasons": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"won_reason_description": "<string>"
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Consulta de oportunidade
Retorna detalhes completos da oportunidade informada, incluindo propostas e produtos diretos associados. O id pode ser UUID ou o código numérico interno.
Os resumos de chats dependem exclusivamente de crm/chats.read na chave. Sem esse grant, flags são false e listas de chats são vazias. A resposta inclui valuation e projection_context para os valores comerciais e seus critérios de exibição. Cada consulta registra uma visualização do usuário criador da chave: views_count aumenta e o registro deixa de aparecer em only_new=true.
curl --request GET \
--url https://api.wegly.com.br/integrations/external/deals/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.wegly.com.br/integrations/external/deals/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wegly.com.br/integrations/external/deals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wegly.com.br/integrations/external/deals/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wegly.com.br/integrations/external/deals/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wegly.com.br/integrations/external/deals/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wegly.com.br/integrations/external/deals/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"code": 123,
"title": "<string>",
"measurement_consent": "GRANTED",
"status": 1,
"created_by": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"stage": {
"id": "<string>",
"name": "<string>",
"pipeline": {
"id": "<string>",
"name": "<string>"
}
},
"pipeline_stages": [
{
"id": "<string>",
"name": "<string>",
"position": 123
}
],
"responsible": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"deal_source": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"marketing_lead_source": {
"id": "<string>",
"utm_search_term": "<string>",
"utm_medium": "<string>",
"lead_source": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"url_conversion": "<string>",
"campaing_name": "<string>",
"ad_set_name": "<string>",
"content_name": "<string>",
"displayed_on_name": "<string>",
"conversion_tool_name": "<string>",
"creative": {
"id": "<string>",
"value": "<string>",
"creative_uri": "<string>"
},
"source_url": "<string>",
"headline": "<string>",
"ad_body": "<string>",
"media_type": "<string>",
"ads_clid_id": "<string>",
"gclid": "<string>",
"fbclid": "<string>",
"fbc": "<string>",
"fbp": "<string>",
"conversion_url_full": "<string>",
"measurement_consent": "GRANTED"
},
"quality_rating": 123,
"quality_reason": "<string>",
"won_date": "2023-11-07T05:31:56Z",
"lost_date": "2023-11-07T05:31:56Z",
"crm_loss_reason": {
"id": "<string>",
"name": "<string>"
},
"lost_reason_description": "<string>",
"visibility": 0,
"negotiation_mode": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"last_activity_at": "2023-11-07T05:31:56Z",
"expected_close_date": "2023-11-07T05:31:56Z",
"temperature": 1,
"participants": [
{
"id": "<string>",
"main": true,
"role": "<string>",
"notes": "<string>",
"person": {
"id": "<string>",
"name": "<string>",
"contacts": [
{
"id": "<string>",
"type": 0,
"value": "<string>",
"primary": true
}
]
}
}
],
"organization": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"lead": {
"id": "<string>",
"title": "<string>"
},
"custom_fields": [
{
"field_id": "<string>",
"field_name": "<string>",
"field_type": 123,
"answers": [
{
"id": "<string>",
"option_id": "<string>",
"option_value": "<string>",
"value": "<string>"
}
]
}
],
"tags": [
{
"id": "<string>",
"name": "<string>",
"color": {
"background": "<string>",
"foreground": "<string>"
}
}
],
"stage_durations": [
{
"stage_id": "<string>",
"stage_name": "<string>",
"total_seconds": 123,
"human_readable": "<string>"
}
],
"value": 123,
"views_count": 123,
"associations_count": {
"items": 123,
"tasks": 123,
"qualifications": 123,
"notes": 123,
"files": 123,
"activities": 123,
"proposals": 123
},
"proposals": [
{
"id": "<string>",
"code": 123,
"version": 123,
"title": "<string>",
"status": 123,
"is_primary": true,
"discount_type": 123,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"valid_until": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"approved_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"rejected_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"approved_by": {
"id": "<string>",
"name": "<string>"
},
"delivery_schedule": {
"starts_on": "2023-12-25",
"effective_starts_on": "2023-12-25",
"is_dynamic": true,
"timezone": "<string>",
"calculation_version": 123,
"final_qualifier": "EXACT",
"declared_total": "<string>",
"declared_totals": [
{
"quantity": 123,
"unit": "DAYS",
"counting_mode": "CALENDAR"
}
],
"estimated_delivery_date": "2023-12-25",
"estimated_delivery_is_business_day": true,
"suggested_next_business_date": "2023-12-25",
"elapsed_calendar_days": 123,
"business_days_notice": "Dias úteis consideram somente segunda a sexta-feira; feriados não são considerados.",
"deadlines": [
{
"unit": "DAYS",
"quantity": 18263,
"counting_mode": "CALENDAR",
"stage": "<string>",
"qualifier": "EXACT",
"notes": "<string>",
"position": 123,
"cumulative_qualifier": "EXACT",
"estimated_start_date": "2023-12-25",
"estimated_end_date": "2023-12-25",
"estimated_end_is_business_day": true,
"suggested_next_business_date": "2023-12-25"
}
]
}
}
],
"products": [
{
"id": "<string>",
"product_id": "<string>",
"product": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"unit": 123,
"sale_price": 123
},
"unit": 123,
"quantity": 123,
"unit_price": 123,
"discount_type": 123,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"notes": "<string>",
"is_recurring_default": true,
"billing_interval_default": 123,
"contract_term_months": 123,
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"billing_cycles": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"billing_interval_count": 123
}
],
"followers": [
{
"role": {
"id": "<string>",
"name": "<string>"
},
"user": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"notes": "<string>"
}
],
"icp": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"banner_type": "<string>",
"banner_image_url": "<string>",
"banner_color": "<string>",
"gradient_start_color": "<string>",
"gradient_end_color": "<string>",
"gradient_angle": 123
},
"icps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"banner_type": "<string>",
"banner_image_url": "<string>",
"banner_color": "<string>",
"gradient_start_color": "<string>",
"gradient_end_color": "<string>",
"gradient_angle": 123,
"is_primary": true
}
],
"partners": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": 123,
"name": "<string>",
"trade_name": "<string>",
"logo": "<string>",
"documents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": 123,
"value": "<string>",
"label": "<string>",
"is_primary": true
}
],
"address": {
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zip_code": "<string>",
"street": "<string>",
"number": "<string>",
"complement": "<string>",
"neighborhood": "<string>",
"formatted_address": "<string>",
"latitude": 123,
"longitude": 123
}
}
],
"has_channel_chat": true,
"channel_chats": [
{
"chat_id": "<string>",
"title": "<string>",
"person_id": "<string>",
"person_name": "<string>",
"channel_account_id": "<string>",
"type": "WhatsApp",
"channel_type": "WHATSAPP",
"unread_count": 123,
"channel_account_name": "<string>",
"whatsapp_number_verified_name": "<string>",
"external_contact_id": "<string>",
"external_contact_handle": "<string>",
"chat_responsible": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"avatar": "<string>"
}
}
],
"has_whatsapp_chat": true,
"whatsapp_chats": [
{
"chat_id": "<string>",
"title": "<string>",
"person_id": "<string>",
"person_name": "<string>",
"channel_account_id": "<string>",
"type": "WhatsApp",
"channel_type": "WHATSAPP",
"unread_count": 123,
"channel_account_name": "<string>",
"whatsapp_number_verified_name": "<string>",
"external_contact_id": "<string>",
"external_contact_handle": "<string>",
"chat_responsible": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"avatar": "<string>"
}
}
],
"score": 123,
"score_criteria_count": 123,
"score_updated_at": "2023-11-07T05:31:56Z",
"valuation": {
"mode": "CURRENT",
"source": "LEGACY_CURRENT_VALUE",
"current_value": 123,
"projected_value": 123,
"display_value": 123,
"has_recurring_value": true,
"has_indefinite_recurring_value": true,
"has_rolling_projection": true,
"indefinite_horizon_months": 6,
"calculation_version": 123
},
"qualification_metric": "quality_rating",
"projection_context": {
"indefinite_horizon_months": 6,
"display_mode": "CURRENT"
},
"crm_loss_reasons": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"crm_gain_reason": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"crm_gain_reasons": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"won_reason_description": "<string>"
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Authorizations
Chave de integração com prefixo wegly_, enviada em Authorization: Bearer . Não é JWT. A chave deve estar ativa, não excluída e dentro da validade. Com allowed_domain, Origin (ou Referer na ausência de Origin) precisa informar o hostname permitido. A empresa e as permissões são obtidas pela chave.
Path Parameters
UUID ou código sequencial do registro.
Response
Detalhes da oportunidade.
Detalhamento completo retornado no GET /integrations/external/deals/{id}.
Consentimento para mensuração: GRANTED autoriza, DENIED recusa e UNSPECIFIED registra que não houve decisão informada. Em respostas de registros históricos sem valor canônico oficial, a API usa a decisão oficial do snapshot ativo mais recente; snapshots sem decisão não a sombreiam e a ausência de ambos resulta em UNSPECIFIED, sem backfill.
GRANTED, DENIED, UNSPECIFIED 1 = aberta, 2 = ganha, 3 = perdida.
1, 2, 3 Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Origem efetiva do registro: a da aquisição mais recente e, na falta dela, a gravada no registro. O histórico de aquisição é retornado separadamente em marketing_lead_source no detalhe.
Show child attributes
Show child attributes
Snapshot ativo de aquisição mais recente. campaing_name mantém a grafia do contrato. O consentimento efetivo é resolvido separadamente do snapshot de aquisição.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
0 = privado (responsável e supervisores), 1 = equipe/responsável, 2 = público.
0, 1, 2 Modo de negociacao da oportunidade. 0 indica produtos/pedido e 1 indica proposta.
1 = frio, 2 = morno, 3 = quente.
1, 2, 3 Participantes da oportunidade com informações de contato.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Respostas de campos customizados agrupadas por campo.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Tempo acumulado por etapa (segundos e texto legível).
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Produtos diretamente associados a oportunidade em crm_deal_product.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
false quando a chave não tem crm/chats.read.
Resumos de WhatsApp e Instagram; vazio sem crm/chats.read na própria chave.
Show child attributes
Show child attributes
Alias de compatibilidade de has_channel_chat nas leituras externas.
Alias de compatibilidade de channel_chats nas leituras externas; pode incluir Instagram.
Show child attributes
Show child attributes
Valores calculados conforme o modo de exibição e horizonte da empresa. value continua representando o valor atual; display_value é o valor apropriado para a exibição configurada.
Show child attributes
Show child attributes
quality_rating, lead_score Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
