---
agentTools:
  projectIndex: https://atendare.readme.io/llms.txt
---

# Buscar negociação

Exibe detalhes apenas da negociação buscada pelo ID

```json
GET - 200
{
  "success": true,
  "data": {
    "id": 1,
    "name": "Nome da negociação - (NGC2 - Amazon)",
    "start_date": "2022-03-23T16:51:58Z",
    "end_date": "2022-03-23T16:51:58Z",
    "value": 5000,
    "estimated_value": 5000,
    "number": 1,
    "status": 1,
    "visibility": 2,
    "currency_id": 1,
    "currency": {
      "id": 1,
      "name": "Brazilian real",
      "symbol": "R$",
      "territory": "Brazil",
      "iso_code": "BRL",
      "is_default": false,
      "thousands": ".",
      "decimal": ",",
      "precision": 3
    },
    "company_id": 1,
    "company": {
      "id": ,
      "name": "Nome da companhia",
      "full_name": "Nome completo da companhia",
      "email": "email@atendare.com",
      "phone": "55 9 99999999",
      "document": "294.515.040-95",
      "image": "https://app.atendare.com/Account/Image/Index/No",
      "image_min": "https://app.atendare.com/Account/Image/Index/No/30",
      "show_name": "Nome exibido  da companhia"
    },
    "qualification_id": 1,
    "contact_id": 1,
    "contact": {
      "id": 1,
      "name": "Nome do contato",
      "full_name": "Nome completo do contato",
      "email": "email@atendare.com",
      "phone": "55 9 99999999",
      "document": "294.515.040-95",
      "image": "https://image-url/image.png",
      "image_min": "https://image-url/image.png",
      "show_name": "Nome exibido do contato"
    },
    "pipeline_id": 1,
    "pipeline": {
      "id": 1,
      "name": "Nome da pipeline"
    },
    "stage_id": 1,
    "stage": {
      "id": 1,
      "name": "Nome do estágio no momento",
      "status": 2,
      "percentage": 100
    },
    "source_id": 1,
    "source": {
      "id": 1,
      "name": "Instagram"
    },
    "last_stage_id": 1,
    "responsible_id": 1,
    "responsible": {
      "id": 1,
      "name": "Nome do responsável",
      "full_name": "Nome completo do responsável",
      "email": "email@atendare.com",
      "phone": "55 9 99999999",
      "document": "294.515.040-95",
      "image": "https://image-url/image.png",
      "image_min": "https://image-url/image.png",
      "show_name": "Nome exibido do responsável "
    },
    "author_id": 1,
    "author": {
      "id": 1,
      "detail": "Nome do autor",
      "type": 1,
      "user_id": 1,
      "automation_id": 1,
      "form_id": 1,
      "import_id": 1,
      "user_uid": 1
    },
    "creation_date": "2020-12-10T17:35:29Z",
    "update_date": "2022-06-09T12:34:16Z",
    "lastupdate_stage": "2022-06-09T12:34:16Z",
    "products": [
      {
        "id": 1,
        "deal_id": 1,
        "document_id": 1,
        "product_id": 1,
        "product": {
          "id": 1,
          "measuringunit_id": 1,
          "measuringunit": {
            "id": 1,
            "name": "Unidade (metros)",
            "unit": "M"
          },
          "category_id": 1,
          "category": {
            "id": 1,
            "name": "Nome da categoria"
          },
          "max_discount": 80.0,
          "image": "https://image-url/image.png",
          "image_min": "https://image-url/image.png",
          "edit_costprice": true,
          "edit_unitprice": true,
          "name": "Nome do produto",
          "type": 1,
          "reference": "Nome da refêrencia"
        },
        "name": "Nome do produto",
        "order": 0,
        "amount": 1.0,
        "cost_price": 1000.12,
        "unit_price": 2000.12,
        "sub_total": 234.11,
        "discount": 80.0,
        "discount_percent": 80.0,
        "total": 1000.12,
        "description": "Descrição do produto"
      }
    ],
    "participants": [
      {
        "id": 1,
        "opp_id": 1,
        "person_id": 1,
        "person": {
          "id": 1,
          "name": "Nome da empresa/contato",
          "full_name": "Nome completo empresa/contato",
          "email": "email@atendare.com",
          "phone": "55 9 99999999",
          "document": "294.515.040-95",
          "image": "https://image-url/image.png",
          "image_min": "https://image-url/image.png",
          "show_name": "Nome completo empresa/contato"
        },
        "user_id": 1,
        "user": {
          "id": 1,
          "name": "Nome da conta",
          "full_name": "Nome completo da conta",
          "email": "email@atendare.com",
          "phone": "55 9 99999999",
          "document": "294.515.040-95",
          "image": "https://image-url/image.png",
          "image_min": "https://image-url/image.png",
          "show_name": "Nome completo da conta"
        },
        "is_main": false,
        "type_id": 1,
        "type": {
          "id": 1,
          "name": "Influenciador"
        }
      }
    ],
    "tags": [
      {
        "id": 1,
        "name": "Nome da tag",
        "color": "#ffffff"
      }
    ],
    "custom_example": "Valor do campo personalizado"
  }
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Atendare API - v2",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.atendare.com/v2"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/deals/{id}": {
      "get": {
        "summary": "Buscar negociação",
        "description": "Exibe detalhes apenas da negociação buscada pelo ID",
        "operationId": "search-deals",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Deal ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true
          },
          {
            "name": "Access-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"NGC001 - Nome da negociação\",\n    \"start_date\": \"2022-03-23T16:51:58Z\",\n    \"end_date\": \"2022-03-23T16:51:58Z\",\n    \"value\": 5000.0,\n    \"estimated_value\": 5000.0,\n    \"number\": 1,\n    \"status\": 1,\n    \"visibility\": 2,\n    \"currency_id\": 1,\n    \"currency\": {\n      \"id\": 1,\n      \"name\": \"Brazilian real\",\n      \"symbol\": \"R$\",\n      \"territory\": \"Brazil\",\n      \"iso_code\": \"BRL\",\n      \"is_default\": false,\n      \"thousands\": \".\",\n      \"decimal\": \",\",\n      \"precision\": 3\n    },\n    \"company_id\": 1,\n    \"company\": {\n      \"id\": ,\n      \"name\": \"Nome da companhia\",\n      \"full_name\": \"Nome completo da companhia\",\n      \"email\": \"email@atendare.com\",\n      \"phone\": \"55 9 99999999\",\n      \"document\": \"294.515.040-95\",\n      \"image\": \"https://app.atendare.com/Account/Image/Index/No\",\n      \"image_min\": \"https://app.atendare.com/Account/Image/Index/No/30\",\n      \"show_name\": \"Nome exibido  da companhia\"\n    },\n    \"qualification_id\": 1,\n    \"contact_id\": 1,\n    \"contact\": {\n      \"id\": 1,\n      \"name\": \"Nome do contato\",\n      \"full_name\": \"Nome completo do contato\",\n      \"email\": \"email@atendare.com\",\n      \"phone\": \"55 9 99999999\",\n      \"document\": \"294.515.040-95\",\n      \"image\": \"https://image-url/image.png\",\n      \"image_min\": \"https://image-url/image.png\",\n      \"show_name\": \"Nome exibido do contato\"\n    },\n    \"pipeline_id\": 1,\n    \"pipeline\": {\n      \"id\": 1,\n      \"name\": \"Nome da pipeline\"\n    },\n    \"stage_id\": 1,\n    \"stage\": {\n      \"id\": 1,\n      \"name\": \"Nome do estágio no momento\",\n      \"status\": 2,\n      \"percentage\": 100\n    },\n    \"source_id\": 1,\n    \"source\": {\n      \"id\": 1,\n      \"name\": \"Instagram\"\n    },\n    \"last_stage_id\": 1,\n    \"responsible_id\": 1,\n    \"responsible\": {\n      \"id\": 1,\n      \"name\": \"Nome do responsável\",\n      \"full_name\": \"Nome completo do responsável\",\n      \"email\": \"email@atendare.com\",\n      \"phone\": \"55 9 99999999\",\n      \"document\": \"294.515.040-95\",\n      \"image\": \"https://image-url/image.png\",\n      \"image_min\": \"https://image-url/image.png\",\n      \"show_name\": \"Nome exibido do responsável \"\n    },\n    \"author_id\": 1,\n    \"author\": {\n      \"id\": 1,\n      \"detail\": \"Nome do autor\",\n      \"type\": 1,\n      \"user_id\": 1,\n      \"automation_id\": 1,\n      \"form_id\": 1,\n      \"import_id\": 1,\n      \"user_uid\": 1\n    },\n    \"creation_date\": \"2020-12-10T17:35:29Z\",\n    \"update_date\": \"2022-06-09T12:34:16Z\",\n    \"lastupdate_stage\": \"2022-06-09T12:34:16Z\",\n    \"products\": [\n      {\n        \"id\": 1,\n        \"deal_id\": 1,\n        \"document_id\": 1,\n        \"product_id\": 1,\n        \"product\": {\n          \"id\": 1,\n          \"measuringunit_id\": 1,\n          \"measuringunit\": {\n            \"id\": 1,\n            \"name\": \"Unidade (metros)\",\n            \"unit\": \"M\"\n          },\n          \"category_id\": 1,\n          \"category\": {\n            \"id\": 1,\n            \"name\": \"Nome da categoria\"\n          },\n          \"max_discount\": 80.0,\n          \"image\": \"https://image-url/image.png\",\n          \"image_min\": \"https://image-url/image.png\",\n          \"edit_costprice\": true,\n          \"edit_unitprice\": true,\n          \"name\": \"Nome do produto\",\n          \"type\": 1,\n          \"reference\": \"Nome da refêrencia\"\n        },\n        \"name\": \"Nome do produto\",\n        \"order\": 0,\n        \"amount\": 1.0,\n        \"cost_price\": 1000.12,\n        \"unit_price\": 2000.12,\n        \"sub_total\": 234.11,\n        \"discount\": 80.0,\n        \"discount_percent\": 80.0,\n        \"total\": 1000.12,\n        \"description\": \"Descrição do produto\"\n      }\n    ],\n    \"participants\": [\n      {\n        \"id\": 1,\n        \"opp_id\": 1,\n        \"person_id\": 1,\n        \"person\": {\n          \"id\": 1,\n          \"name\": \"Nome da empresa/contato\",\n          \"full_name\": \"Nome completo empresa/contato\",\n          \"email\": \"email@atendare.com\",\n          \"phone\": \"55 9 99999999\",\n          \"document\": \"294.515.040-95\",\n          \"image\": \"https://image-url/image.png\",\n          \"image_min\": \"https://image-url/image.png\",\n          \"show_name\": \"Nome completo empresa/contato\"\n        },\n        \"user_id\": 1,\n        \"user\": {\n          \"id\": 1,\n          \"name\": \"Nome da conta\",\n          \"full_name\": \"Nome completo da conta\",\n          \"email\": \"email@atendare.com\",\n          \"phone\": \"55 9 99999999\",\n          \"document\": \"294.515.040-95\",\n          \"image\": \"https://image-url/image.png\",\n          \"image_min\": \"https://image-url/image.png\",\n          \"show_name\": \"Nome completo da conta\"\n        },\n        \"is_main\": false,\n        \"type_id\": 1,\n        \"type\": {\n          \"id\": 1,\n          \"name\": \"Influenciador\"\n        }\n      }\n    ],\n    \"tags\": [\n      {\n        \"id\": 1,\n        \"name\": \"Nome da tag\",\n        \"color\": \"#ffffff\"\n      }\n    ],\n    \"custom_example\": \"Valor do campo personalizado\"\n  }\n}\n"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61f3f7309a3abf0010b92516:62697c140c43af003c777d1a"
}
```