{
  "info": {
    "name": "Estima Bem · consultas de valor",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Guia: https://estimabem.com.br/documentacao-api. Configure a chave como variável local secreta. Selecione códigos válidos nos catálogos antes de estimar. Não compartilhe exports com credenciais preenchidas."
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://estimabem.com.br"
    },
    {
      "key": "ESTIMABEM_API_KEY",
      "value": ""
    },
    {
      "key": "brand",
      "value": ""
    },
    {
      "key": "model",
      "value": ""
    },
    {
      "key": "year",
      "value": ""
    },
    {
      "key": "product_id",
      "value": ""
    },
    {
      "key": "brand_id",
      "value": ""
    },
    {
      "key": "model_id",
      "value": ""
    },
    {
      "key": "knowledge_year",
      "value": ""
    },
    {
      "key": "configuration_id",
      "value": ""
    },
    {
      "key": "equipment_code",
      "value": ""
    },
    {
      "key": "treasury_id",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Imóveis · autenticação no backend",
      "item": [
        {
          "name": "Estimar apartamento",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{ESTIMABEM_API_KEY}}",
                  "type": "string"
                }
              ]
            },
            "url": "{{baseUrl}}/api/v2/property-estimates",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"externalId\": \"imovel-123\",\n  \"address\": {\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"property\": {\n    \"type\": \"apartment\",\n    \"privateAreaM2\": 100\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Dados pendentes · área não confirmada",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{ESTIMABEM_API_KEY}}",
                  "type": "string"
                }
              ]
            },
            "url": "{{baseUrl}}/api/v2/property-estimates",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"address\": {\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"property\": {\n    \"type\": \"apartment\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Consultar cobertura municipal",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{ESTIMABEM_API_KEY}}",
                  "type": "string"
                }
              ]
            },
            "url": "{{baseUrl}}/api/v2/coverage?municipalityCode=3550308"
          }
        },
        {
          "name": "Consultar CEP · pública",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v2/postal?cep=01050000"
          }
        }
      ]
    },
    {
      "name": "Veículos · selecione os códigos a cada etapa",
      "item": [
        {
          "name": "1. Montadoras",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/vehicles?type=cars"
          }
        },
        {
          "name": "2. Modelos e versões · preencher brand",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/vehicles?type=cars&brand={{brand}}"
          }
        },
        {
          "name": "3. Anos · preencher model com código da versão",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/vehicles?type=cars&brand={{brand}}&model={{model}}"
          }
        },
        {
          "name": "4. Estimar · preencher year",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/vehicle-estimates",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"cars\",\n  \"brand\": \"{{brand}}\",\n  \"model\": \"{{model}}\",\n  \"year\": \"{{year}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Outros bens · catálogos e estimativas públicas",
      "item": [
        {
          "name": "Cobertura das 18 classes",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/coverage"
          }
        },
        {
          "name": "Produtos e unidades",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/inventory/presets"
          }
        },
        {
          "name": "Estimar estoque · preencher product_id",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/inventory/quick-estimates",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"product_id\": \"{{product_id}}\",\n  \"quantity\": \"100\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Configurações de máquinas agrícolas",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/equipment?family=tractor"
          }
        },
        {
          "name": "Estimar equipamento novo",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/equipment-estimates",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"family\": \"tractor\",\n  \"product_code\": \"{{equipment_code}}\",\n  \"condition\": \"new\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Fabricantes de aeronaves",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/knowledge-catalog?asset_class=AIRCRAFT"
          }
        },
        {
          "name": "Modelos de aeronaves",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/knowledge-catalog?asset_class=AIRCRAFT&brand_id={{brand_id}}"
          }
        },
        {
          "name": "Anos de aeronaves",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/knowledge-catalog?asset_class=AIRCRAFT&brand_id={{brand_id}}&model_id={{model_id}}"
          }
        },
        {
          "name": "Configurações de aeronaves",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/knowledge-catalog?asset_class=AIRCRAFT&brand_id={{brand_id}}&model_id={{model_id}}&year={{knowledge_year}}"
          }
        },
        {
          "name": "Estimar aeronave selecionada",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/knowledge-estimates",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_class\": \"AIRCRAFT\",\n  \"brand_id\": \"{{brand_id}}\",\n  \"model_id\": \"{{model_id}}\",\n  \"year\": \"{{knowledge_year}}\",\n  \"configuration_id\": \"{{configuration_id}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Títulos disponíveis",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/treasury"
          }
        },
        {
          "name": "Estimar posição em títulos",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/treasury-estimates",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"product_id\": \"{{treasury_id}}\",\n  \"quantity\": \"1.25\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Simular recebível · ajuste a data futura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "auth": {
              "type": "noauth"
            },
            "url": "{{baseUrl}}/api/v1/asset-valuation/market/credit-estimates",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_class\": \"RECEIVABLE\",\n  \"face_value\": \"100000.00\",\n  \"due_date\": \"2027-09-06\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    }
  ]
}