---
agentTools:
  projectIndex: https://nowseguros.readme.io/llms.txt
---

# Inserir Proposta

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Desenvolvimento",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://saas-dev.nowseguros.seg.br"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/proposta": {
      "post": {
        "summary": "Inserir Proposta",
        "description": "",
        "operationId": "proposta",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "proposta": {
                    "type": "object",
                    "properties": {
                      "dados_proposta": {
                        "type": "array",
                        "items": {
                          "properties": {
                            "produto": {
                              "type": "object",
                              "required": [
                                "codigo_produto",
                                "nome_produto"
                              ],
                              "properties": {
                                "codigo_produto": {
                                  "type": "string"
                                },
                                "nome_produto": {
                                  "type": "string"
                                }
                              }
                            },
                            "data_base_calculo": {
                              "type": "string",
                              "default": "2023-03-27 00:00:00.000"
                            },
                            "vigencia": {
                              "type": "object",
                              "required": [
                                "data_inicio",
                                "data_fim"
                              ],
                              "properties": {
                                "data_inicio": {
                                  "type": "string",
                                  "default": "2023-03-27"
                                },
                                "data_fim": {
                                  "type": "string",
                                  "default": "2023-04-27"
                                }
                              }
                            },
                            "dtemissao": {
                              "type": "string",
                              "default": "2023-03-27"
                            },
                            "credencial": {
                              "type": "object"
                            },
                            "estipulante": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "dtemissao",
                            "credencial",
                            "estipulante"
                          ],
                          "type": "object"
                        }
                      },
                      "segurado": {
                        "type": "object",
                        "required": [
                          "nome",
                          "cpf_cnpj"
                        ],
                        "properties": {
                          "nome": {
                            "type": "string"
                          },
                          "cpf_cnpj": {
                            "type": "string"
                          },
                          "endereco": {
                            "type": "object",
                            "properties": {}
                          }
                        }
                      },
                      "item_segurado": {
                        "type": "array",
                        "items": {
                          "properties": {
                            "identificacao": {
                              "type": "string"
                            },
                            "descricao": {
                              "type": "string"
                            },
                            "vigencia": {
                              "type": "object",
                              "required": [
                                "data_inicio",
                                "data_fim"
                              ],
                              "properties": {
                                "data_inicio": {
                                  "type": "string",
                                  "default": "2023-03-27"
                                },
                                "data_fim": {
                                  "type": "string",
                                  "default": "2023-04-27"
                                }
                              }
                            },
                            "caracteristicas": {
                              "type": "object",
                              "properties": {
                                "atividade": {
                                  "type": "array",
                                  "default": [
                                    "residencial"
                                  ],
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              }
                            },
                            "coberturas": {
                              "type": "array",
                              "items": {
                                "properties": {
                                  "codigo": {
                                    "type": "string"
                                  },
                                  "nome": {
                                    "type": "string"
                                  },
                                  "premio": {
                                    "type": "object",
                                    "properties": {
                                      "importanciaSegurada": {
                                        "type": "string"
                                      },
                                      "premioTarifario": {
                                        "type": "number",
                                        "format": "float"
                                      },
                                      "premioTotal": {
                                        "type": "number",
                                        "format": "float"
                                      },
                                      "fatorTarifario": {
                                        "type": "number",
                                        "format": "float"
                                      }
                                    }
                                  }
                                },
                                "required": [
                                  "codigo",
                                  "nome"
                                ],
                                "type": "object"
                              }
                            },
                            "assistencias": {
                              "type": "array",
                              "items": {
                                "properties": {
                                  "fornecedor": {
                                    "type": "string",
                                    "default": "rede credenciada"
                                  },
                                  "nome": {
                                    "type": "string"
                                  },
                                  "codigo": {
                                    "type": "string"
                                  },
                                  "valor_assistencia": {
                                    "type": "number",
                                    "format": "float"
                                  },
                                  "importanciasegurada": {
                                    "type": "number",
                                    "format": "float"
                                  }
                                },
                                "required": [
                                  "fornecedor",
                                  "nome",
                                  "codigo",
                                  "valor_assistencia",
                                  "importanciasegurada"
                                ],
                                "type": "object"
                              }
                            }
                          },
                          "required": [
                            "identificacao",
                            "descricao"
                          ],
                          "type": "object"
                        }
                      },
                      "cobranca": {
                        "type": "object",
                        "required": [
                          "tipocobranca",
                          "cliente_id",
                          "token_card",
                          "pagamento_id",
                          "fatura_id",
                          "url_fatura",
                          "assinatura_id"
                        ],
                        "properties": {
                          "tipocobranca": {
                            "type": "string",
                            "default": "iugu"
                          },
                          "cliente_id": {
                            "type": "string"
                          },
                          "token_card": {
                            "type": "string"
                          },
                          "pagamento_id": {
                            "type": "string"
                          },
                          "fatura_id": {
                            "type": "string"
                          },
                          "url_fatura": {
                            "type": "string"
                          },
                          "assinatura_id": {
                            "type": "string"
                          },
                          "qtparcelas": {
                            "type": "integer",
                            "default": 1,
                            "format": "int32"
                          },
                          "operadora_cobranca": {
                            "type": "object",
                            "properties": {}
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "651aed84590fcf0024ff913f:661400a0c9d707001903027b"
}
```