# GET Listar Ofertas

#### **Introdução**

Retorna uma lista de produtos ofertados para a proposta, juntamente com os valores disponíveis e algumas informações adicionais, necessárias em rotas posteriores.

##### ***Rota***

```css
/Proposta/oferta-produto/:propostaId
```

##### ***Authorization***

<table border="1" id="bkmrk-token-eyj..." style="border-collapse: collapse; width: 112.976%;"><colgroup><col style="width: 49.9795%;"></col><col style="width: 49.9795%;"></col></colgroup><tbody><tr><td>Token</td><td>eyJ...</td></tr></tbody></table>

##### ***Headers Request***

<table border="1" id="bkmrk-accept-application%2Fj" style="border-collapse: collapse; width: 100%; height: 59.2px;"><colgroup><col style="width: 50%;"></col><col style="width: 50%;"></col></colgroup><tbody><tr style="height: 29.6px;"><td style="height: 29.6px;">Accept</td><td style="height: 29.6px;">application/json</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Content-Type</td><td style="height: 29.6px;">application/json</td></tr></tbody></table>

#### **Detalhes da API**

Campos obrigatórios e seus respectivos tipos

---

##### ***Campos Obrigatórios***

<table border="1" id="bkmrk-campo-tipo-descri%C3%A7%C3%A3o" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 26.8175%;"></col><col style="width: 17.8679%;"></col><col style="width: 55.2908%;"></col></colgroup><thead><tr><td>**Campo**</td><td>**Tipo**</td><td>**Descrição**</td></tr></thead><tbody><tr><td>`<strong class="sc-fzoXzr bUnOKm">propostaId</strong> `  
</td><td>string</td><td>Identificado único da proposta, ultilizada para referenciar e manipular dados relacionados a uma proposta específicas.</td></tr></tbody></table>

##### ***Exemplo de Request***

<details id="bkmrk-curl-curl---location"><summary>curl</summary>

```bash
curl --location 'https://api-externo-stag.crefazon.com.br/api/Proposta/oferta-produto/1028673845' \
--header 'accept: application/json' \
--header 'Content-Type: application/json'
```

</details>##### ***Exemplo de Response***

<details id="bkmrk-json-%7B-%22success%22%3A-tr"><summary>sucesso</summary>

```json
{
  "success": true,
  "data": {
    "produtos": [
      {
        "id": 6,
        "nome": "Energia",
        "convenio": [
          {
            "id": 1,
            "nome": "ENEL SP",
            "convenioDados": [
              {
                "convenioDadosId": 12,
                "nome": "N° da Instalação",
                "tipo": 1,
                "ordem": 1,
                "formato": "^([0]\\d{1,13}|[1-9]\\d{0,13})$"
              },
              {
                "convenioDadosId": 23,
                "nome": "Data de Leitura",
                "tipo": 4,
                "ordem": 2,
                "formato": null
              }
            ],
            "tabelaJuros": [
              {
                "id": 213,
                "nome": "Energia ",
                "tabelaJurosValores": [
                  {
                    "valor": 1100
                  }
                ]
              },
              {
                "id": 2,
                "nome": "Tabela Energia Padrão",
                "tabelaJurosValores": [
                  {
                    "valor": 1100
                  },
                  {
                    "valor": 1000
                  },
                  {
                    "valor": 900
                  },
                  {
                    "valor": 800
                  },
                  {
                    "valor": 700
                  },
                  {
                    "valor": 600
                  },
                  {
                    "valor": 500
                  },
                  {
                    "valor": 450
                  },
                  {
                    "valor": 400
                  }
                ]
              }
            ]
          }
        ],
        "tabelaJuros": []
      }
    ],
    "proposta": {
      "cpf": "CPF",
      "nome": "NOME_COMPLETO",
      "valorRendaPresumida": 1178.33
    }
  },
  "errors": null
}
```

</details><details id="bkmrk-erro-%7B-%22success%22%3A-tr"><summary>erro</summary>

```json
{
  "success": true,
  "data": [
    {
      "mensagem": "Não há produtos ofertados no momento"
    }
  ],
  "errors": null
}
```

</details>##### ***<span class="Text__TextContainer-sc-1kqigik-0 dLPxIq" data-aether-id="aether-text" data-click="" data-testid="aether-text">Headers de Response (5)</span>***

<table border="1" id="bkmrk-type-value-content-t" style="border-collapse: collapse; width: 100%; height: 177.6px;"><colgroup><col style="width: 50%;"></col><col style="width: 50%;"></col></colgroup><thead><tr style="height: 29.6px;"><td style="height: 29.6px;">**Type**</td><td style="height: 29.6px;">**Value**</td></tr></thead><tbody><tr style="height: 29.6px;"><td style="height: 29.6px;">Content-Type</td><td style="height: 29.6px;">application/json; charset=utf-8

</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Date</td><td style="height: 29.6px;">Fri, 04 Oct 2024 18:03:20 GMT</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Server</td><td style="height: 29.6px;">Kestrel</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Transfer-Encoding</td><td style="height: 29.6px;">chunked</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Request-Context</td><td style="height: 29.6px;">appId=cid-v1:d0033e30-cc70-4961-9727-b7389fb39348</td></tr></tbody></table>