> For the complete documentation index, see [llms.txt](https://docs.bullcredtech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bullcredtech.com/api-reference/apis-en/queries/get-proposals-analysis-data.md).

# Analysis Data

**GET** `/proposals/{proposalId}/analysis-data`

Returns the data used and the result of the credit analysis of a proposal.

## URL Parameters

| Parameter    | Type          | Description |
| ------------ | ------------- | ----------- |
| `proposalId` | string (UUID) | Proposal ID |

## Success Response (200 OK)

### Returned Data

```json
{
  "cpf": "12345678909",
  "name": "JOÃO DA SILVA",
  "decision_rate_min": 1.99,
  "decision_installments_max": 84,
  "decision_limit": 15000.00,
  "selected_offer_installment_amount": 520.50,
  "selected_offer_installments": 24,
  "selected_offer_amount": 10000.00,
  "has_insurance": false,
  "rejection_reason": null,
  "analysis_status": {
    "code": "APPROVED",
    "message": "Approved",
    "description": "Proposal approved and offer generated successfully"
  }
}
```

| Field                               | Type           | Description                                                                         |
| ----------------------------------- | -------------- | ----------------------------------------------------------------------------------- |
| `cpf`                               | string         | Customer CPF                                                                        |
| `name`                              | string         | Customer name (as per Dataprev when available)                                      |
| `decision_rate_min`                 | number         | Minimum interest rate approved by the credit engine (% per month)                   |
| `decision_installments_max`         | number         | Maximum number of approved installments                                             |
| `decision_limit`                    | number         | Maximum approved amount (R$)                                                        |
| `selected_offer_installment_amount` | number         | Installment amount of the contracted offer (R$). `0` if no offer selected.          |
| `selected_offer_installments`       | number         | Number of installments of the contracted offer. `0` if no offer selected.           |
| `selected_offer_amount`             | number         | Principal amount of the contracted offer (R$). `0` if no offer selected.            |
| `has_insurance`                     | boolean        | Indicates whether the contracted offer includes insurance                           |
| `rejection_reason`                  | string \| null | Reason for rejection when the analysis resulted in a refusal. `null` when approved. |
| `analysis_status`                   | object \| null | Credit analysis status. `null` if the analysis has not yet been performed.          |
| `analysis_status.code`              | string         | Status code (ex: `APPROVED`, `REJECTED`)                                            |
| `analysis_status.message`           | string         | Brief status message                                                                |
| `analysis_status.description`       | string         | Detailed description of the result                                                  |

## Possible Errors

| Code  | Description                             |
| ----- | --------------------------------------- |
| `401` | Invalid or missing authentication token |
| `404` | Proposal not found                      |

## Notes

* The fields `selected_offer_*` return `0` when no offer was selected on the proposal.
* The field `name` prioritizes the name returned by Dataprev; if unavailable, uses the name provided in the proposal registration.
* The field `analysis_status` reflects the latest result of the credit analysis and can be `null` if the endpoint `/credit-analysis` has not yet been called.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bullcredtech.com/api-reference/apis-en/queries/get-proposals-analysis-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
