> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sell.ia.proativia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Obter Negócio do Pipeline

> Retorna os detalhes de um negócio do pipeline de CRM pelo seu ID.

## Requisição

`GET https://crm.wavups.com/api/v1/account-crm-pipeline-deal/{id}`

<ParamField header="Token" type="string" required>
  Seu token de autenticação.
</ParamField>

<ParamField path="id" type="string" required>
  ID do negócio a ser consultado.
</ParamField>

***

## Resposta

Retorna o objeto completo do negócio.

<ResponseField name="id" type="string">
  Identificador único do negócio.
</ResponseField>

<ResponseField name="title" type="string">
  Título do negócio.
</ResponseField>

<ResponseField name="stageId" type="string | null">
  ID do estágio vinculado.
</ResponseField>

<ResponseField name="leadId" type="string | null">
  ID do lead vinculado.
</ResponseField>

<ResponseField name="dealOwner" type="string | null">
  ID do usuário responsável.
</ResponseField>

<ResponseField name="value" type="number | null">
  Valor estimado do negócio.
</ResponseField>

<ResponseField name="status" type="string | null">
  Status do negócio.
</ResponseField>

<ResponseField name="expectedCloseDate" type="string | null">
  Data prevista de fechamento (ISO 8601).
</ResponseField>

<ResponseField name="createdAt" type="string">
  Data de criação (ISO 8601).
</ResponseField>

***

## Exemplos

<RequestExample>
  ```bash GET /api/v1/account-crm-pipeline-deal/{id} theme={null}
  curl --request GET \
    --url 'https://crm.wavups.com/api/v1/account-crm-pipeline-deal/cldeal001' \
    --header 'Token: SEU_TOKEN_DE_API'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "cldeal001",
    "title": "Contrato Empresa X",
    "stageId": "clstg0001",
    "leadId": "cllead001",
    "dealOwner": "cluser001",
    "value": 15000,
    "status": "open",
    "expectedCloseDate": "2025-08-01T00:00:00.000Z",
    "createdAt": "2025-06-15T14:30:00.000Z"
  }
  ```

  ```json 404 theme={null}
  {
    "error": "CRM pipeline deal not found"
  }
  ```

  ```json 500 theme={null}
  {
    "error": "Error to get account CRM pipeline deal"
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /account-crm-pipeline-deal/{id}
openapi: 3.0.3
info:
  title: WavUps CRM API
  description: >-
    API pública da plataforma WavUps CRM — gerencie leads, produtos, categorias,
    atendimentos, agendamentos, conversas e pipelines de CRM.
  version: 1.0.0
servers:
  - url: https://crm.wavups.com/api/v1
    description: Servidor de produção
security:
  - Token: []
paths:
  /account-crm-pipeline-deal/{id}:
    get:
      tags:
        - Negócios do Pipeline
      summary: Obter Negócio
      description: Retorna os dados de um negócio específico do pipeline pelo ID.
      operationId: getCrmPipelineDealById
      parameters:
        - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Negócio encontrado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrmPipelineDeal'
        '404':
          $ref: '#/components/responses/Error404'
        '500':
          $ref: '#/components/responses/Error500'
components:
  parameters:
    id:
      name: id
      in: path
      required: true
      description: Identificador único do recurso.
      schema:
        type: string
  schemas:
    CrmPipelineDeal:
      type: object
      properties:
        id:
          type: string
        stageId:
          type: string
          nullable: true
        leadId:
          type: string
          nullable: true
        dealOwner:
          type: string
          nullable: true
        title:
          type: string
        value:
          type: number
          nullable: true
        status:
          type: string
          nullable: true
        expectedCloseDate:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
    ErrorMessage:
      type: object
      properties:
        error:
          type: string
          example: Recurso não encontrado.
  responses:
    Error404:
      description: Recurso não encontrado.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorMessage'
    Error500:
      description: Erro interno no servidor.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorMessage'
  securitySchemes:
    Token:
      type: apiKey
      in: header
      name: Token
      description: Token de autenticacao gerado na plataforma WavUps CRM.

````