Consulta de apólice
Consulta Apólice Única
GET {{url_ambiente}}/v1/policy/{registerNumber}/{policyNumber}
Retorna informações da apólice solicitada
Path Parameters
PolicyNumber*
string
Número da apólice
registerNumber
String
Número Susep
Headers
Ocp-Apim-Subscription-Key*
md5
Chave de acesso
{
"policy": {
"identifier": "ca523a8b-01d3-4927-a41d-75f1d1982894",
"number": "046692022100101710000820",
"status": "Emitida",
"insuredName": "nome do segurado",
"insuredIdentity": "66941973064",
"vigencyStartedAt": "2022-09-08T03:00:00Z",
"vigencyExpiredAt": "2023-09-08T03:00:00Z",
"modalityCode": "BIKE-MULTIPLE-PERIL",
"modalityText": "Bicicletas",
"createdAt": "2022-11-07T18:28:04.9078375Z",
"quotationIdentifier": "96582a46-2032-4acf-b7d2-a7a61160943d",
"quotationDocumentUrl": "http://127.0.0.1:10000/devstoreaccount1/document/policy/046692022100101710000820/apolice_046692022100101710000820_v01.00_j3oc.pdf",
"installments": [
{
"installmentNumber": 1,
"extraValue": 0.00,
"dueDate": "2022-09-23T00:00:00Z",
"valueIof": 82.23,
"tariffPremiumValue": 1114.29,
"premiumTotalValue": 1196.52,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-09-16T17:02:30.0584567Z"
},
{
"installmentNumber": 2,
"extraValue": 0.00,
"dueDate": "2022-09-27T00:00:00Z",
"valueIof": 16.68,
"tariffPremiumValue": 225.98,
"premiumTotalValue": 242.66,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-09-16T20:41:07.3162239Z"
},
{
"installmentNumber": 3,
"extraValue": 0.00,
"dueDate": "2022-09-27T00:00:00Z",
"valueIof": 18.74,
"tariffPremiumValue": 253.91,
"premiumTotalValue": 272.65,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-09-20T15:54:46.5951803Z"
},
{
"installmentNumber": 4,
"extraValue": 0.00,
"dueDate": "2022-10-19T00:00:00Z",
"valueIof": 85.64,
"tariffPremiumValue": 1160.48,
"premiumTotalValue": 1246.12,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-10-05T19:44:14.2735256Z"
},
{
"installmentNumber": 5,
"extraValue": 0.00,
"dueDate": "2022-11-14T00:00:00Z",
"valueIof": 52.32,
"tariffPremiumValue": 708.97,
"premiumTotalValue": 761.29,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-11-07T18:28:07.2086256Z"
}
],
"version": "01.00",
"totalClaims": 0
},
"success": true,
"executed": "2022-11-22T13:47:30.0768846Z"
}Listagem apólice
GET {{url_ambiente}}/v1/policy/{registerNumber}/all
Retorna lista de apólices.
Path Parameters
registerNumber
String
Número Susep
Query Parameters
page
string
Passar o número da chave
Headers
Ocp-Apim-Subscription-Key*
md5
Chave de acesso
{
"totalItems": 1,
"itemsPerPage": 10,
"list": [
{
"identifier": "ca523a8b-01d3-4927-a41d-75f1d1982894",
"number": "046692022100101710000820",
"policyNumber": "1007100000820",
"status": "Issued",
"insuredName": "nome do segurado",
"insuredIdentity": "66941973064",
"vigencyStartedAt": "2022-09-08T03:00:00Z",
"vigencyExpiredAt": "2023-09-08T03:00:00Z",
"createdAt": "2022-11-07T18:28:04.9078375Z",
"quotationIdentifier": "00000000-0000-0000-0000-000000000000",
"quotationDocumentUrl": "http://127.0.0.1:10000/devstoreaccount1/document/policy/046692022100101710000820/apolice_046692022100101710000820_v01.00_j3oc.pdf",
"installments": [
{
"installmentNumber": 1,
"extraValue": 0.00,
"dueDate": "2022-09-23T00:00:00Z",
"valueIof": 82.23,
"tariffPremiumValue": 1114.29,
"premiumTotalValue": 1196.52,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-09-16T17:02:30.0584567Z"
},
{
"installmentNumber": 2,
"extraValue": 0.00,
"dueDate": "2022-09-27T00:00:00Z",
"valueIof": 16.68,
"tariffPremiumValue": 225.98,
"premiumTotalValue": 242.66,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-09-16T20:41:07.3162239Z"
},
{
"installmentNumber": 3,
"extraValue": 0.00,
"dueDate": "2022-09-27T00:00:00Z",
"valueIof": 18.74,
"tariffPremiumValue": 253.91,
"premiumTotalValue": 272.65,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-09-20T15:54:46.5951803Z"
},
{
"installmentNumber": 4,
"extraValue": 0.00,
"dueDate": "2022-10-19T00:00:00Z",
"valueIof": 85.64,
"tariffPremiumValue": 1160.48,
"premiumTotalValue": 1246.12,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-10-05T19:44:14.2735256Z"
},
{
"installmentNumber": 5,
"extraValue": 0.00,
"dueDate": "2022-11-14T00:00:00Z",
"valueIof": 52.32,
"tariffPremiumValue": 708.97,
"premiumTotalValue": 761.29,
"status": "pendente",
"interestValue": 0.00,
"createdAt": "2022-11-07T18:28:07.2086256Z"
}
],
"version": "01.00",
"totalClaims": 0
}
],
"success": true,
"executed": "2022-11-22T13:49:41.0776542Z"
}Field: sort Type:
stringPossível ordernar pelo campo desejado. Os valores possíveis para esta query parameter são:
producttext = ordernar pelo produto.
modalitytext = ordernar pela modalidade.
createdat = ordernar pela data de criação.
status = ordernar pelo status
insuredname = ordernar pelo nome do segurado
insuredidentity = ordernar pela identificação do segurado.
Caso queira definir se a ordem sera crescente ou não, basta passar o operador
-quando for decrescente. Caso queria passar mais de um campo para ordenação, tambem é possivel, basta colocar os campos separados por,Exemplo:
{{url_ambiente}}/v1/policy/all?sort=-status,insurednameNo exemplo acima é passado dois campos para a ordenação, onde o status sera em ordem decrescente e o insuredName será em ordem crescente.
Field: search Type:
stringCampo para buscar pelo nome do segurado ou CPF/CNPJ.
Field: modality Type:
stringCampo para buscar pela modalidade.
Field: product Type:
stringCampo para buscar pelo produto.
Field: startDate Type:
stringCampo para buscar pela data de inicio de vigencia.
Field: endDate Type:
stringCampo para buscar pela data final de vigencia.
Field: status Type:
stringCampo para buscar pelo status. Os valores possíveis para esta query parameter são:
Issued = Emitida
Expired = Expirada
Canceled = Cancelada.
Explicando campos de response da apólice
Field: identifier Type:
guidIdentificação unica da apólice em formatdo de
guid.
Field: number Type:
textNúmero referente a apólice .
Field: policyNumber Type:
textNúmero referente a apólice .
Field: status Type:
textStatus da apólice .
Field: insuredName Type:
textNome do Segurado .
Field: insuredIdentity Type:
textIdentificação do segurado.
Field: modalityText Type:
textModalidade.
Field: modalityCode Type:
textCodigo da modalidade.
Field: productText Type:
textProduto.
Field: productCode Type:
textCodigo do produto.
Field: vigencyStartedAt Type:
dateInicio da vigencia.
Field: vigencyExpiredAt Type:
dateFinal da vigencia.
Field: createdAt Type:
dateData de criação.
Field: quotationIdentifier Type:
stringIdentificação refente a cotação.
Field: quotationDocumentUrl Type:
stringUrl do pdf da apólice.
Field: TicketUrl Type:
stringUrl do boleto.
Field: version Type:
stringVersão da apólice.
Field: installments Type:
arrayLista das informações de parcelas.
Field: installments[].installmentNumber Type:
integerNúmero da parcela.
Field: installments[].dueDate Type:
dateData de vencimento.
Field: installments[].valueIof Type:
decimalValor do IOF.
Field: installments[].tariffPremiumValue Type:
decimalValor do prêmio tarifário.
Field: installments[].premiumTotalValue Type:
decimalValor do prêmio total da cotação.
Field: installments[].status Type:
stringStatus de pagamento.
Field: installments[].interestValue Type:
decimalValor de juros de cada parcela.
Field: installments[].createdAt Type:
dateData de criação da parcela.
Last updated