put
https://api.caas.staging.bancocdc.com.br/operation/simulation/launch/
The generate operation by simulation route initiates the process of generating an operation based on a simulation.
Attention point:
- To consume the route it is necessary to pass the simulation code as a parameter.
- Every simulation requires a CPF/CNPJ for consumption, at the time of formalizing the operation and it is necessary to consume the customer registration routes to proceed with the launch of the operation.
- Operations that are not in status 5, 7, or 35 will be automatically canceled within 5 days, except for FGTS operations.
- FGTS operations that are not in status 5, 7 or 35 will be automatically canceled within 48 hours.
- After launching the operation, the operator will be able to consume the payment, subscription and movement routes with the code that will be made available.
- If the operation is for an individual client, they will be automatically linked as the borrower subscriber of the operation.
Response
| Http Code | Return Code | Message |
|---|---|---|
| 200 | 200-01 | Success. |
| 400 | 400-01 | Something unexpected happened. |
| 400 | 400-25 | The simulation hash is not available. |
| 400 | 400-28 | Error launching the installments FGTS. |
| 400 | 400-35 | Invalid installment, code 'X' for the FGTS installment has already been used in another release. Therefore the current simulation code is being deactivated. |
| 400 | 400-43 | Error when registering the result of the installments. |
| 400 | 400-46 | Error when registering the result of the operation. |
| 400 | 400-52 | Customer was not found. |
| 401 | 401-05 | Unauthorized or token invalid |
| 429 | 429-01 | Too many requests |
Response Parameters
| Parameter | Format | Description |
|---|---|---|
| request_code | string | The unique code identifying the request. |
| return | boolean | Indicates if the request was successful (true/false). |
| return_code | string | Code indicating the status of the request. |
| message | string | Message indicating the result of the request. |
| data.code | string | Unique code identifying the simulation. |
| data.code_operation | number | Code identifying the operation. |