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

# Listar negócios

> Retorna uma lista paginada de negócios do workspace.

<Accordion title="Escopo necessário">
`deals:read`
</Accordion>



## OpenAPI

````yaml /pt/api-reference/openapi.json get /v1/deals
openapi: 3.1.0
info:
  title: OAuth 2.1
  description: Endpoints para registrar aplicativos e gerenciar tokens OAuth 2.1.
  version: 1.0.0
  contact:
    name: Suporte Vendaze
    email: suporte@vendaze.com
servers:
  - url: https://api.vendaze.com
    description: Produção
security:
  - bearerAuth: []
tags:
  - name: OAuth
  - name: Pessoas
  - name: Empresas
  - name: Negócios
  - name: Pipelines
  - name: Tarefas
  - name: Tipos de Tarefas
  - name: Produtos
  - name: Tags
  - name: Listas
  - name: Campos Adicionais
  - name: Webhooks
paths:
  /v1/deals:
    get:
      tags:
        - Negócios
      summary: Listar negócios
      description: |-
        Retorna uma lista paginada de negócios do workspace.

        <Accordion title="Escopo necessário">
        `deals:read`
        </Accordion>
      operationId: listDeals
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 1
          description: Número da página.
        - name: per_page
          in: query
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 100
          description: 'Registros por página. Máximo: 100.'
        - name: order_by
          in: query
          schema:
            type: string
            enum:
              - created_at
              - updated_at
              - name
            default: created_at
          description: Campo de ordenação.
        - name: order
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
          description: Direção da ordenação.
        - name: name
          in: query
          schema:
            type: string
          description: >-
            Filtrar pelo nome do negócio (busca parcial, sem distinção de
            maiúsculas/minúsculas).
        - name: pipeline_id
          in: query
          schema:
            type: string
            format: uuid
          description: Filtrar pelo UUID do pipeline.
        - name: stage_id
          in: query
          schema:
            type: string
            format: uuid
          description: Filtrar pelo UUID da etapa.
        - name: source
          in: query
          schema:
            type: string
          description: >-
            Filtrar pela origem (correspondência exata). A origem é o nome do
            OAuth app que criou o negócio.
        - name: forecast_after
          in: query
          schema:
            type: string
            format: date-time
          description: >-
            Negócios com forecast_date igual ou posterior a esta data (ISO
            8601).
        - name: forecast_before
          in: query
          schema:
            type: string
            format: date-time
          description: Negócios com forecast_date igual ou anterior a esta data (ISO 8601).
        - name: created_after
          in: query
          schema:
            type: string
            format: date-time
          description: Negócios criados igual ou após esta data (ISO 8601).
        - name: created_before
          in: query
          schema:
            type: string
            format: date-time
          description: Negócios criados igual ou antes desta data (ISO 8601).
        - name: updated_after
          in: query
          schema:
            type: string
            format: date-time
          description: Negócios atualizados igual ou após esta data (ISO 8601).
        - name: updated_before
          in: query
          schema:
            type: string
            format: date-time
          description: Negócios atualizados igual ou antes desta data (ISO 8601).
      responses:
        '200':
          description: Negócios listados com sucesso.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DealListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/InsufficientScope'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    DealListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Deal'
        meta:
          type: object
          properties:
            total:
              type: integer
              example: 42
            page:
              type: integer
              example: 1
            per_page:
              type: integer
              example: 50
            has_more:
              type: boolean
              example: false
    Deal:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          example: Contrato Anual Acme Corp
        amount:
          type: integer
          description: Valor em centavos. 250000 = R$ 2.500,00
          example: 250000
        currency:
          $ref: '#/components/schemas/CurrencyCode'
        formatted_amount:
          type: string
          nullable: true
          description: >-
            Valor formatado usando o símbolo, separador decimal e separador de
            milhar da moeda.
          example: R$ 2.500,00
        owner:
          $ref: '#/components/schemas/Owner'
        source:
          type: string
          description: Nome do OAuth app que criou o negócio.
          example: Minha Integração
        forecast_date:
          type: string
          format: date-time
          nullable: true
          example: '2026-12-31T00:00:00Z'
        entity_id:
          type: string
          description: Identificador único legível.
          example: NEG-0001
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
              format: uuid
    ValidationErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
              example: Validation failed.
            fields:
              type: object
              additionalProperties:
                type: string
            request_id:
              type: string
              format: uuid
    CurrencyCode:
      type: string
      description: Código ISO 4217 de moeda suportado pela Vendaze.
      enum:
        - AED
        - ARS
        - AUD
        - BRL
        - CAD
        - CHF
        - CLP
        - CNY
        - COP
        - DKK
        - EGP
        - EUR
        - GBP
        - HKD
        - ILS
        - INR
        - JPY
        - KWD
        - MAD
        - MXN
        - MYR
        - NGN
        - NOK
        - NZD
        - PEN
        - QAR
        - SAR
        - SEK
        - SGD
        - TRY
        - USD
        - UYU
        - ZAR
      example: BRL
    Owner:
      type: object
      nullable: true
      description: >-
        Membro do workspace responsável pela tarefa. `null` quando nenhum
        responsável está atribuído.
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          example: João Silva
        email:
          type: string
          format: email
          example: joao@empresa.com.br
  responses:
    Unauthorized:
      description: >-
        Token ausente, inválido ou expirado. Códigos possíveis: `unauthorized`,
        `token_expired`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: unauthorized
              message: Missing or invalid Authorization header.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    InsufficientScope:
      description: 'Token sem o escopo necessário. Código de erro: `insufficient_scope`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: insufficient_scope
              message: This endpoint requires the 'webhooks:read' scope.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    ValidationError:
      description: >-
        Validação de entrada falhou. Código: `validation_error`. O objeto
        `fields` mapeia cada campo inválido para uma descrição do problema.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
          example:
            error:
              code: validation_error
              message: Validation failed.
              fields:
                url: url must use HTTPS.
                events: At least one event is required.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    RateLimitExceeded:
      description: 'Rate limit excedido. Código: `rate_limit_exceeded`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: rate_limit_exceeded
              message: Rate limit exceeded. Try again in 60 seconds.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    InternalError:
      description: 'Erro interno inesperado. Código: `internal_error`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: internal_error
              message: An unexpected error occurred.
              request_id: 550e8400-e29b-41d4-a716-446655440000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Access token OAuth 2.1.

````