# POST Consultar proposta em andamento

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

Cadastra uma nova proposta e aciona o motor de crédito.

---

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

```css
/Proposta/proposta-em-andamento?cpf={{cliente_cpf}}&loginVendedor={{login}}
```

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

<table border="1" id="bkmrk-token-eyj..." style="border-collapse: collapse; width: 103.81%;"><colgroup><col style="width: 50.0477%;"></col><col style="width: 50.0477%;"></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: 105.119%; height: 59.2px;"><colgroup><col style="width: 49.9794%;"></col><col style="width: 49.9794%;"></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%; height: 101px;"><colgroup><col style="width: 27.5262%;"></col><col style="width: 10.6053%;"></col><col style="width: 61.8446%;"></col></colgroup><thead><tr style="height: 29.6px;"><td style="height: 29.6px;">**Campo**</td><td style="height: 29.6px;">**Tipo**</td><td style="height: 29.6px;">**Descrição**</td></tr></thead><tbody><tr style="height: 36px;"><td style="height: 36px;">`cpf`  
</td><td style="height: 36px;">string</td><td style="height: 36px;">CPF, número de identificação fiscal brasileiro (11 dígitos).</td></tr><tr style="height: 35.4px;"><td style="height: 35.4px;">`logn`</td><td style="height: 35.4px;">string</td><td style="height: 35.4px;">Nome de usuário utilizado para autenticação no sistema.</td></tr></tbody></table>

##### ***Campos Opcionais***

<table border="1" id="bkmrk-campo-tipo-descri%C3%A7%C3%A3o-1" style="border-collapse: collapse; width: 100%; height: 59.2px;"><colgroup><col style="width: 34.9175%;"></col><col style="width: 31.6936%;"></col><col style="width: 33.4843%;"></col></colgroup><thead><tr style="height: 29.6px;"><td style="height: 29.6px;">**Campo**</td><td style="height: 29.6px;">**Tipo**</td><td style="height: 29.6px;">**Descrição**</td></tr></thead><tbody><tr style="height: 29.6px;"><td style="height: 29.6px;">Nenhum</td><td style="height: 29.6px;"> **-**</td><td style="height: 29.6px;">Não existem campos opcionais.</td></tr></tbody></table>

### **Exemplo de Requisição e Resposta**

---

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

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

```bash
curl --location --request POST 'https://app2-crefaz-api-external-stag.azurewebsites.net/api/Proposta/proposta-em-andamento?cpf=13670760059&loginVendedor=CC00000000' \
--header 'accept: application/json' \
--header 'Content-Type: application/json'
```

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

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

```json
{
  "success": true,
  "data": {
    "existePropostaAndamento": true,
    "propostas": [
      {
        "propostaId": 1028673845,
        "situacaoDescricao": "Seleção Oferta"
      }
    ]
  },
  "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>