curl --request GET \
--url https://api-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info', 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-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"merchant": {
"id": "2v2TGGb4NHTQWCiMmnelz2WVOZP",
"legalName": "ACME PAGAMENTOS DIGITAIS LTDA",
"companyTaxId": "12345678000190"
},
"fees": [
{
"feeType": "tx_spread",
"paymentMethod": "credit_card",
"currencyCode": "BRL",
"brand": "visa",
"definition": {
"fixed": 0.5,
"percentages": [
2.99,
3.49,
3.99,
4.49,
4.99,
5.49,
5.99,
6.49,
6.99,
7.49,
7.99,
8.49
]
}
}
]
}{
"statusCode": 401,
"message": "Não autorizado"
}{
"statusCode": 403,
"message": "Fast Connect não habilitado para esta conta"
}{
"statusCode": 404,
"message": "Subconta não encontrada"
}Get sub-account fees and registration info
Retorna as taxas (transacionais tx_spread e de antecipação
anticipation), a razão social e o CNPJ de uma subconta do Fast Connect.
O retorno depende de qual conta está autenticada — não apenas do :id:
- Conta master: usa o
:idinformado e retorna a subconta vinculada (parent_merchant_id = master). Id de outra master, inexistente, ou o próprio id do master retorna404. Exigeenable_fast_connecthabilitado na master (caso contrário,403). - Subconta: retorna sempre os próprios dados; o
:idé ignorado (não depende deenable_fast_connect).
As taxas vêm como lista plana: a rota não mescla overrides de bandeira
(brand: visa/mastercard/elo) com a taxa padrão (brand: null), nem faz
fallback para taxas default do gateway — calcular a taxa efetiva por
bandeira/parcela é responsabilidade do consumidor.
curl --request GET \
--url https://api-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info', 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-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-global.fastpaybrasil.com/v1/fast-connect/sub-accounts/{id}/fees-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"merchant": {
"id": "2v2TGGb4NHTQWCiMmnelz2WVOZP",
"legalName": "ACME PAGAMENTOS DIGITAIS LTDA",
"companyTaxId": "12345678000190"
},
"fees": [
{
"feeType": "tx_spread",
"paymentMethod": "credit_card",
"currencyCode": "BRL",
"brand": "visa",
"definition": {
"fixed": 0.5,
"percentages": [
2.99,
3.49,
3.99,
4.49,
4.99,
5.49,
5.99,
6.49,
6.99,
7.49,
7.99,
8.49
]
}
}
]
}{
"statusCode": 401,
"message": "Não autorizado"
}{
"statusCode": 403,
"message": "Fast Connect não habilitado para esta conta"
}{
"statusCode": 404,
"message": "Subconta não encontrada"
}Authorizations
HTTP Basic authentication. Use your secret key as the username and an empty string as password. The API key should be base64 encoded in the format 'username:' when sending the Authorization header.
Path Parameters
Id (KSUID) da subconta. Obrigatório quando autenticado como conta master; ignorado quando autenticado como subconta.
"2v2TGGb4NHTQWCiMmnelz2WVOZP"
Response
Taxas e dados cadastrais da subconta