Lista as tabelas de taxas configuradas para a loja, ou para a filial do usuário
curl --request GET \
--url https://api.example.com/api/services/app/Tabelas/Listarimport requests
url = "https://api.example.com/api/services/app/Tabelas/Listar"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/services/app/Tabelas/Listar', 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://api.example.com/api/services/app/Tabelas/Listar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/services/app/Tabelas/Listar"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/services/app/Tabelas/Listar")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/services/app/Tabelas/Listar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": 123,
"name": "<string>",
"product": 123,
"default": true,
"type": 123,
"minValue": 123,
"maxValue": 123,
"minTerm": 123,
"maxTerm": 123
}
]Tabelas
Lista as tabelas da loja
GET
/
api
/
services
/
app
/
Tabelas
/
Listar
Lista as tabelas de taxas configuradas para a loja, ou para a filial do usuário
curl --request GET \
--url https://api.example.com/api/services/app/Tabelas/Listarimport requests
url = "https://api.example.com/api/services/app/Tabelas/Listar"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/services/app/Tabelas/Listar', 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://api.example.com/api/services/app/Tabelas/Listar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/services/app/Tabelas/Listar"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/services/app/Tabelas/Listar")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/services/app/Tabelas/Listar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": 123,
"name": "<string>",
"product": 123,
"default": true,
"type": 123,
"minValue": 123,
"maxValue": 123,
"minTerm": 123,
"maxTerm": 123
}
]Lista as tabelas de taxas configuradas para a sua loja, ou para a sua filial quando o usuário
do token pertence a uma. O
A tabela marcada com
id de cada tabela é o número que as rotas de simulação e contratação
recebem como rebateId ou feeId. Use product (o código numérico do produto) para filtrar; sem
ele, a lista traz todos os produtos cujas rotas aceitam o id.
Autentique-se antes (Autenticação). Os campos abaixo são o conteúdo de
result do envelope.| Produto | product | Onde o id é usado |
|---|---|---|
| Empréstimo FGTS (PF e PJ) | 1, 2 | Contratar e Validar rebate, como rebateId |
| Empréstimo Pessoal | 8 | Simular, como rebateId |
| Consignado CLT | 10 | Simular, como rebateId, e Obter períodos de parcelas, como feeId |
| CDC Hub | 12 | Simular, como rebateId |
| Operação de Crédito | 7 | Simular, como rebateId |
| CDC Celular | 14 | Simular, como feeId |
default: true é a que a simulação usa quando o id é omitido. type diz a
periodicidade (0 mensal, 1 semanal, com os prazos em semanas), e minValue/maxValue e
minTerm/maxTerm dizem a faixa de valor e de prazo que as faixas da tabela cobrem (nulos numa
tabela sem faixas). A lista não traz taxas: a taxa aplicada vem no resultado da simulação.
Um produto fora da tabela acima é recusado com mensagem. Uma loja sem tabela para o produto recebe
uma lista vazia.
curl "https://gateway.hubcred.com.br/external/v1/api/services/app/Tabelas/Listar?product=12" \
-H "Authorization: Bearer SEU_TOKEN"
Query Parameters
Código do produto (opcional). Quando omitido, retorna todos os produtos.
Response
OK
Id da tabela: é o valor enviado como rebateId ou feeId nas rotas de simulação.
Nome da tabela.
Código do produto da tabela.
Indica a tabela usada quando o id é omitido na simulação.
Periodicidade: 0 = mensal, 1 = semanal (prazos em semanas).
Menor valor coberto pelas faixas da tabela; nulo quando a tabela não tem faixas.
Maior valor coberto pelas faixas da tabela; nulo quando a tabela não tem faixas.
Menor prazo coberto, na unidade da periodicidade; nulo quando a tabela não tem faixas.
Maior prazo coberto, na unidade da periodicidade; nulo quando a tabela não tem faixas.