Listar Cobranças Agendadas
curl --request GET \
--url https://garu.com.br/api/v1/scheduled-charges \
--header 'Authorization: Bearer <token>'import requests
url = "https://garu.com.br/api/v1/scheduled-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/v1/scheduled-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/v1/scheduled-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/v1/scheduled-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/v1/scheduled-charges")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://garu.com.br/api/v1/scheduled-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_bodyCobranças Agendadas
Listar Cobranças Agendadas
Liste e filtre cobranças agendadas com paginação e busca por cliente
GET
/
api
/
v1
/
scheduled-charges
Listar Cobranças Agendadas
curl --request GET \
--url https://garu.com.br/api/v1/scheduled-charges \
--header 'Authorization: Bearer <token>'import requests
url = "https://garu.com.br/api/v1/scheduled-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/v1/scheduled-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/v1/scheduled-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/v1/scheduled-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/v1/scheduled-charges")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://garu.com.br/api/v1/scheduled-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
Retorna uma lista paginada das cobranças agendadas do seller autenticado. Use os filtros para construir as abas do dashboard (Próximas / Vencidas / Pausadas / Concluídas).Exemplo de Requisição
# Próximas (scheduled + due_today)
curl -X GET "https://garu.com.br/api/v1/scheduled-charges?status=scheduled&status=due_today" \
-H "Authorization: Bearer sk_test_sua_chave"
# Em atraso de um cliente específico
curl -X GET "https://garu.com.br/api/v1/scheduled-charges?status=overdue&customerId=42" \
-H "Authorization: Bearer sk_test_sua_chave"
import { Garu } from '@garuhq/node';
const garu = new Garu({ apiKey: process.env.GARU_API_KEY });
// Múltiplos status como array
const upcoming = await garu.scheduledCharges.list({
status: ['scheduled', 'due_today'],
limit: 50
});
// Em atraso de um cliente
const overdueForCustomer = await garu.scheduledCharges.list({
status: 'overdue',
customerId: 42
});
import requests
import os
response = requests.get(
"https://garu.com.br/api/v1/scheduled-charges",
headers={"Authorization": f"Bearer {os.environ['GARU_API_KEY']}"},
params=[("status", "scheduled"), ("status", "due_today"), ("limit", 50)]
)
for charge in response.json()["data"]:
print(charge["id"], charge["dueDate"], charge["status"])
Parâmetros de Query
string | string[]
Filtra por status. Pode ser repetido (
?status=scheduled&status=due_today).
Valores: scheduled, due_today, overdue, paid, paused, canceled,
trial, pending_tokenization, recurrence_canceled.number
Restringe a um cliente específico.
string
Filtra por tipo:
one_time (avulsa) ou recurring (recorrente).string
Limite inferior de
dueDate (YYYY-MM-DD).string
Limite superior de
dueDate (YYYY-MM-DD).string
Busca livre no nome / e-mail / CPF do cliente vinculado à cobrança.
number
default:"1"
Página da paginação.
number
default:"20"
Itens por página (máx. 100).
Resposta
{
"data": [
{
"id": "sch_abc123",
"customerId": 42,
"amount": 297.5,
"dueDate": "2026-06-15",
"methods": ["pix", "boleto"],
"status": "scheduled",
"customer": { "id": 42, "name": "Maria Silva", "email": "maria@exemplo.com.br", "document": "12345678901" },
"product": null,
"createdAt": "2026-05-01T12:00:00Z"
}
],
"count": 1,
"totalCount": 1,
"totalPages": 1
}
customer e product vêm carregados (com os dados essenciais para listagem) para evitar uma segunda chamada por cobrança.Was this page helpful?