Cota planos de seguro viagem
curl --request GET \
--url https://homolog.clubfix.com.br/webservice/payperuse/quote \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"maxima": 20000,
"starts_at": "2025-12-17",
"ends_at": "2025-12-30"
}
'import requests
url = "https://homolog.clubfix.com.br/webservice/payperuse/quote"
payload = {
"maxima": 20000,
"starts_at": "2025-12-17",
"ends_at": "2025-12-30"
}
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({maxima: 20000, starts_at: '2025-12-17', ends_at: '2025-12-30'})
};
fetch('https://homolog.clubfix.com.br/webservice/payperuse/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://homolog.clubfix.com.br/webservice/payperuse/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'maxima' => 20000,
'starts_at' => '2025-12-17',
'ends_at' => '2025-12-30'
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://homolog.clubfix.com.br/webservice/payperuse/quote"
payload := strings.NewReader("{\n \"maxima\": 20000,\n \"starts_at\": \"2025-12-17\",\n \"ends_at\": \"2025-12-30\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://homolog.clubfix.com.br/webservice/payperuse/quote")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"maxima\": 20000,\n \"starts_at\": \"2025-12-17\",\n \"ends_at\": \"2025-12-30\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://homolog.clubfix.com.br/webservice/payperuse/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"maxima\": 20000,\n \"starts_at\": \"2025-12-17\",\n \"ends_at\": \"2025-12-30\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "Lua de Mel iCasei",
"premium": 90,
"kind": "travel",
"maximum_term": 15,
"franchise_percent": 12,
"lmi": 10000,
"reference": "ICASEI_LUA_DE_MEL"
}
]{
"message": "Unauthenticated."
}{
"message": "The given data was invalid.",
"errors": {
"credit_card": [
"validation.required_if"
],
"credit_card.number": [
"validation.required_if"
],
"credit_card.expirate_at": [
"validation.required_if"
],
"credit_card.cvv": [
"validation.required_if"
]
}
}{
"message": "Internal server error."
}Visão Geral
Cota planos do PayPerUse
Para cotar um seguro viagem para dispositivos móveis, se faz necessário enviar os dados compostos no payload a seguir.
| Campos | Tipo | Descrição |
|---|---|---|
maxima | integer | Corresponde à importância máxima segurada, correspondente ao dispositivo que está sendo segurado. |
starts_at | date:Y-m-d | Corresponde ao início da vigência, marcando assim quando a viagem se iniciará. |
ends_at | date:Y-m-d | Corresponde ao fim da vigência, marcando assim quando a viagem terminará. |
GET
/
payperuse
/
quote
Cota planos de seguro viagem
curl --request GET \
--url https://homolog.clubfix.com.br/webservice/payperuse/quote \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"maxima": 20000,
"starts_at": "2025-12-17",
"ends_at": "2025-12-30"
}
'import requests
url = "https://homolog.clubfix.com.br/webservice/payperuse/quote"
payload = {
"maxima": 20000,
"starts_at": "2025-12-17",
"ends_at": "2025-12-30"
}
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({maxima: 20000, starts_at: '2025-12-17', ends_at: '2025-12-30'})
};
fetch('https://homolog.clubfix.com.br/webservice/payperuse/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://homolog.clubfix.com.br/webservice/payperuse/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'maxima' => 20000,
'starts_at' => '2025-12-17',
'ends_at' => '2025-12-30'
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://homolog.clubfix.com.br/webservice/payperuse/quote"
payload := strings.NewReader("{\n \"maxima\": 20000,\n \"starts_at\": \"2025-12-17\",\n \"ends_at\": \"2025-12-30\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://homolog.clubfix.com.br/webservice/payperuse/quote")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"maxima\": 20000,\n \"starts_at\": \"2025-12-17\",\n \"ends_at\": \"2025-12-30\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://homolog.clubfix.com.br/webservice/payperuse/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"maxima\": 20000,\n \"starts_at\": \"2025-12-17\",\n \"ends_at\": \"2025-12-30\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "Lua de Mel iCasei",
"premium": 90,
"kind": "travel",
"maximum_term": 15,
"franchise_percent": 12,
"lmi": 10000,
"reference": "ICASEI_LUA_DE_MEL"
}
]{
"message": "Unauthenticated."
}{
"message": "The given data was invalid.",
"errors": {
"credit_card": [
"validation.required_if"
],
"credit_card.number": [
"validation.required_if"
],
"credit_card.expirate_at": [
"validation.required_if"
],
"credit_card.cvv": [
"validation.required_if"
]
}
}{
"message": "Internal server error."
}string
required
Cabeçalho que indica o tipo de conteúdo aceito na resposta. Deve ser sempre
application/json.string
Corresponde ao filtro pela natureza do Plano. Use
travel para seguros viagem.string
Corresponde à referência criada para o plano que se deseja cotar. Este campo é opcional e serve para identificar o plano na sua base de dados.
integer
Corresponde à importância máxima segurada. Este valor pode ser passado como parâmetro de query ou no corpo da requisição.
Authorizations
Token de autenticação obtido através do endpoint de autenticação
Headers
Query Parameters
Corresponde ao filtro pela natureza do Plano
Example:
"travel"
Corresponde à referência criada para o plano que se deseja cotar.
Example:
"MINHA_REF_PLANO_CLUBFIX"
Corresponde à importância máxima segurada
Example:
20000
Body
application/json
Corresponde à importância máxima segurada, correspondente ao dispositivo que está sendo segurado.
Example:
20000
Corresponde ao início da vigência, marcando assim quando a viagem se iniciará.
Example:
"2025-12-17"
Corresponde ao fim da vigência, marcando assim quando a viagem terminará.
Example:
"2025-12-30"
ID do modelo do dispositivo (opcional)
Example:
1
Response
Cotação de Planos realizada com sucesso
Was this page helpful?
