Listar Cobranças do Cliente
curl --request GET \
--url https://garu.com.br/api/public/minha-area/charges \
--header 'Authorization: Bearer <token>'import requests
url = "https://garu.com.br/api/public/minha-area/charges"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://garu.com.br/api/public/minha-area/charges', 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://garu.com.br/api/public/minha-area/charges",
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: Bearer <token>"
],
]);
$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://garu.com.br/api/public/minha-area/charges"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://garu.com.br/api/public/minha-area/charges")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://garu.com.br/api/public/minha-area/charges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyPortal do Cliente
Listar Cobranças do Cliente
Cross-seller: cobranças do cliente em todos os vendedores
GET
/
api
/
public
/
minha-area
/
charges
Listar Cobranças do Cliente
curl --request GET \
--url https://garu.com.br/api/public/minha-area/charges \
--header 'Authorization: Bearer <token>'import requests
url = "https://garu.com.br/api/public/minha-area/charges"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://garu.com.br/api/public/minha-area/charges', 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://garu.com.br/api/public/minha-area/charges",
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: Bearer <token>"
],
]);
$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://garu.com.br/api/public/minha-area/charges"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://garu.com.br/api/public/minha-area/charges")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://garu.com.br/api/public/minha-area/charges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyVisão Geral
Endpoint autenticado pelo link mágico emitido em/request. Retorna todas as cobranças agendadas em status acionáveis (scheduled, due_today, overdue, paused, paid, pending_tokenization) para o CPF associado ao token, em todos os vendedores Garu com os quais o cliente tem relacionamento.
Cada cobrança vem com customer, product (se associado) e seller carregados, prontos para exibir sem chamadas adicionais.
Autenticação
HeaderAuthorization: Bearer <jwt-do-link-mágico>. O JWT é o mesmo enviado no link https://garu.com.br/minha-area/<jwt>.
Exemplo de Requisição
curl -X GET https://garu.com.br/api/public/minha-area/charges \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI..."
const response = await fetch(
'https://garu.com.br/api/public/minha-area/charges',
{
headers: { Authorization: `Bearer ${magicLinkToken}` }
}
);
const { data } = await response.json();
data.forEach((charge) => {
console.log(charge.seller?.name, charge.amount, charge.status);
});
import requests
response = requests.get(
"https://garu.com.br/api/public/minha-area/charges",
headers={"Authorization": f"Bearer {magic_link_token}"}
)
for charge in response.json()["data"]:
print(charge["seller"]["name"], charge["amount"], charge["status"])
Resposta
{
"data": [
{
"id": "sch_abc123",
"sellerId": 10,
"amount": 297.5,
"description": "Mensalidade Junho",
"dueDate": "2026-06-15",
"methods": ["pix", "boleto"],
"status": "scheduled",
"customer": {
"id": 42,
"name": "Maria Silva",
"email": "maria@exemplo.com.br",
"document": "12345678901"
},
"product": null,
"seller": { "id": 10, "name": "Loja Garu" }
}
]
}
Erros
- 401 Unauthorized — header ausente, malformado ou JWT expirado/inválido. Solicite um novo link em
/request.
Was this page helpful?