Skip to main content
GET
Consulta de oportunidade

Authorizations

Authorization
string
header
required

Utilize o token de integração no header Authorization: Bearer {token}. O domínio de origem (Origin/Referer) deve respeitar allowed_domain, quando configurado na chave.

Path Parameters

id
string
required

UUID ou código numérico da oportunidade.

Response

Detalhes da oportunidade.

Detalhamento completo retornado no GET /integrations/external/deals/{id}.

id
string
code
integer
title
string
status
enum<integer>

1 = aberta, 2 = ganha, 3 = perdida.

Available options:
1,
2,
3
created_by
object | null
stage
object | null
pipeline_stages
object[]
responsible
object | null
deal_source
object | null

Origem direta da oportunidade (crm_lead_source).

marketing_lead_source
object | null

Último registro de rastreio (crm_marketing_lead_source).

quality_rating
integer | null
quality_reason
string | null
won_date
string<date-time> | null
lost_date
string<date-time> | null
crm_loss_reason
object | null
lost_reason_description
string | null
visibility
enum<integer>

0 = privado (responsável e supervisores), 1 = equipe/responsável, 2 = público.

Available options:
0,
1,
2
negotiation_mode
integer | null

Modo de negociacao da oportunidade. 0 indica produtos/pedido e 1 indica proposta.

created_at
string<date-time>
updated_at
string<date-time>
archived_at
string<date-time> | null
last_activity_at
string<date-time> | null
expected_close_date
string<date-time> | null
temperature
enum<integer>

1 = frio, 2 = morno, 3 = quente.

Available options:
1,
2,
3
participants
object[]

Participantes da oportunidade com informações de contato.

organization
object | null
lead
object | null
custom_fields
object[]

Respostas de campos customizados agrupadas por campo.

tags
object[]
stage_durations
object[]

Tempo acumulado por etapa (segundos e texto legível).

value
number | null
views_count
integer
associations_count
object
proposals
object[]
products
object[]

Produtos diretamente associados a oportunidade em crm_deal_product.

followers
object[]