Marcar como Paga
curl --request POST \
--url https://garu.com.br/api/scheduled-charges/{id}/mark-paid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paymentDate": "<string>",
"externalReference": "<string>"
}
'import requests
url = "https://garu.com.br/api/scheduled-charges/{id}/mark-paid"
payload = {
"paymentDate": "<string>",
"externalReference": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({paymentDate: '<string>', externalReference: '<string>'})
};
fetch('https://garu.com.br/api/scheduled-charges/{id}/mark-paid', 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/scheduled-charges/{id}/mark-paid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'paymentDate' => '<string>',
'externalReference' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://garu.com.br/api/scheduled-charges/{id}/mark-paid"
payload := strings.NewReader("{\n \"paymentDate\": \"<string>\",\n \"externalReference\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://garu.com.br/api/scheduled-charges/{id}/mark-paid")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"paymentDate\": \"<string>\",\n \"externalReference\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://garu.com.br/api/scheduled-charges/{id}/mark-paid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentDate\": \"<string>\",\n \"externalReference\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyCobranças Agendadas
Marcar como Paga
Registre um pagamento feito fora do Garu (transferência, dinheiro, etc.)
POST
/
api
/
scheduled-charges
/
{id}
/
mark-paid
Marcar como Paga
curl --request POST \
--url https://garu.com.br/api/scheduled-charges/{id}/mark-paid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paymentDate": "<string>",
"externalReference": "<string>"
}
'import requests
url = "https://garu.com.br/api/scheduled-charges/{id}/mark-paid"
payload = {
"paymentDate": "<string>",
"externalReference": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({paymentDate: '<string>', externalReference: '<string>'})
};
fetch('https://garu.com.br/api/scheduled-charges/{id}/mark-paid', 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/scheduled-charges/{id}/mark-paid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'paymentDate' => '<string>',
'externalReference' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://garu.com.br/api/scheduled-charges/{id}/mark-paid"
payload := strings.NewReader("{\n \"paymentDate\": \"<string>\",\n \"externalReference\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://garu.com.br/api/scheduled-charges/{id}/mark-paid")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"paymentDate\": \"<string>\",\n \"externalReference\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://garu.com.br/api/scheduled-charges/{id}/mark-paid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentDate\": \"<string>\",\n \"externalReference\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyVisão Geral
Use quando o cliente pagou por um canal externo (TED, dinheiro, outro PSP). A cobrança vai parapaid sem gerar uma transação no gateway, e os lembretes param.
Permitido a partir de: due_today / overdue.
Exemplo de Requisição
curl -X POST https://garu.com.br/api/scheduled-charges/sch_abc123/mark-paid \
-H "Authorization: Bearer sk_test_sua_chave" \
-H "Content-Type: application/json" \
-d '{
"paymentDate": "2026-06-20",
"externalReference": "TED 4472881"
}'
import { Garu } from '@garuhq/node';
const garu = new Garu({ apiKey: process.env.GARU_API_KEY });
await garu.scheduledCharges.markPaid('sch_abc123', {
paymentDate: '2026-06-20',
externalReference: 'TED 4472881'
});
import requests
import os
requests.post(
"https://garu.com.br/api/scheduled-charges/sch_abc123/mark-paid",
headers={"Authorization": f"Bearer {os.environ['GARU_API_KEY']}"},
json={
"paymentDate": "2026-06-20",
"externalReference": "TED 4472881"
}
)
Parâmetros
string
required
ID da cobrança (
sch_…).string
required
Data do pagamento em
YYYY-MM-DD, fuso de São Paulo. Deve ser hoje ou passada.string
Referência bancária, ID interno ou qualquer string estável para reconciliação. Até 255 caracteres.
Resposta
A cobrança atualizada comstatus: "paid". Um evento manually_marked_paid é apendado e o webhook scheduled_charge.paid é disparado.
Diferente de
paid automático, esta ação não gera uma Transaction no
Garu — o pagamento aconteceu fora do gateway. O array transactions em
GET /:id continua vazio.Was this page helpful?
⌘I