**Produtos: Residencial e Auto
Objetivo
Esta API tem o objetivo de retornar dados (segunda via) de apólice dos produtos Auto e Residencial
O Resultado desta API trará a informação alinhada com o modelo de MarketPlace da HDI Seguros
Contrato de Serviço - Swagger
Download SwaggerCollection Test Postman
Download Collection Test
Dados Básicos
Nome do Serviço | /policies/details Detalhes da Apólice emitida |
Descrição Resumida | Consulta segunda via de apólice |
URL | Base Path: openapi.hdi.com.br/insurance/policy/v1 URI: /policies/details |
Status | Ativo |
Versão | 1.0 |
Exemplo de Payload
key={{KEY}}
limit=10
startIssueDate=2023-01-01
customerName=Joao
Content-Type=application/json
X-Company-Id=01
X-Application-Id=01
X-User-Id=7777777777
X-Trace-Id="Trace"
X-Susep-Code=0000020199999
X-Sucursal-Code=102
[
{
"id": 99164009,
"policyCode": "01.102.005.A.999999.000001",
"issueDate": "2023-01-02",
"period": {
"effectiveDate": "2022-12-05",
"expirationDate": "2023-09-23"
},
"customer": {
"name": "JOAO TESTE DO TESTE DA SILVA",
"documents": [
{
"number": "999999999",
"documentType": {
"id": 1,
"description": "CPF"
}
}
]
},
"properties": [
{
"numItem": "000001",
"address": {
"street": "Rua Borges de Medeiros, 27817",
"complement": " ",
"city": {
"name": "CIDADE",
"state": {
"code": "SP"
}
},
"postalCode": "99460000"
},
"assetCharacteristics": {
"construction": {
"description": "ALVENARIA (SUPERIOR)"
},
"designation": {
"description": "RESIDENCIA HABITUAL CASA"
},
"assetGrant": {
"description": "PREDIO E CONTEUDO"
}
}
}
],
"broker": {
"id": 500021202,
"type": {
"description": "C"
},
"code": "50099999",
"name": "CORRETORA DE SEGUROS TEST LTDA",
"sucursalCode": "102",
"susepCode": "0000020999999",
"document": {
"number": "02142562999",
"documentType": {
"id": 1,
"description": "CPF"
}
}
},
"totalPrice": {
"amount": 0.0,
"currency": "R$",
"amountFormatted": "R$ 0,00"
}
},
{
"id": 99999988,
"policyCode": "01.102.005.A.9999888.000000",
"issueDate": "2023-01-02",
"period": {
"effectiveDate": "2023-01-09",
"expirationDate": "2024-01-09"
},
"customer": {
"name": "JOAO XXXXXXX",
"documents": [
{
"number": "1234567898",
"documentType": {
"id": 1,
"description": "CPF"
}
}
]
},
"properties": [
{
"numItem": "000001",
"address": {
"street": "LINHA ALEGRE, 433540",
"complement": " ",
"city": {
"name": "VESPASIANO CORREA",
"state": {
"code": "RS"
}
},
"postalCode": "95972000"
},
"assetCharacteristics": {
"construction": {
"description": "ALVENARIA (SUPERIOR)"
},
"designation": {
"description": "RESIDENCIA HABITUAL CASA"
},
"assetGrant": {
"description": "PREDIO E CONTEUDO"
}
}
}
],
"broker": {
"id": 500021328032,
"type": {
"description": "C"
},
"code": "500021202",
"name": "CORRETORA DE SEGUROS TESTE LTDA",
"sucursalCode": "102",
"susepCode": "00000999999999",
"document": {
"number": "112345845485",
"documentType": {
"id": 1,
"description": "CPF"
}
}
},
"totalPrice": {
"amount": 329.77,
"currency": "R$",
"amountFormatted": "R$ 329,77"
}
},
{
"id": 551400002,
"policyCode": "01.102.133.A.9999999.000000",
"issueDate": "2023-01-02",
"period": {
"effectiveDate": "2023-01-06",
"expirationDate": "2023-01-08"
},
"customer": {
"name": "JOAO BATISTA TESTE DA SILVA",
"documents": [
{
"number": "99999999999999",
"documentType": {
"id": 1,
"description": "CPF"
}
}
]
},
"vehicles": [
{
"plateCode": "ITF4XXXX",
"chassiCode": "KL1JM5CXXXXXXXX089",
"model": {
"description": "SED. LTZ 1.6 16V FLEXPOWER 4P AUT",
"type": "SONIC"
},
"brand": {
"description": "CHEVROLET"
}
}
],
"broker": {
"id": 5000219999,
"type": {
"description": "C"
},
"code": "500029999",
"name": "CORRETORA DE SEGUROS TESTE LTDA",
"sucursalCode": "102",
"susepCode": "00000202068088",
"document": {
"number": "9999999999999",
"documentType": {
"id": 1,
"description": "CPF"
}
}
},
"totalPrice": {
"amount": 0.2,
"currency": "USD",
"amountFormatted": "USD 0,20"
}
}
]
Histórico de versões
Autor | Área ou Setor | Versão | Descrição da versão |
---|---|---|---|
OpenInsurance | Integração | V1.0 | Versão Inicial |