curl --request POST \
--url https://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://meu-servidor.com/webhooks/firebanking"
}
'import requests
url = "https://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}"
payload = { "url": "https://meu-servidor.com/webhooks/firebanking" }
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({url: 'https://meu-servidor.com/webhooks/firebanking'})
};
fetch('https://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}', 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.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}",
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([
'url' => 'https://meu-servidor.com/webhooks/firebanking'
]),
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://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}"
payload := strings.NewReader("{\n \"url\": \"https://meu-servidor.com/webhooks/firebanking\"\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://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://meu-servidor.com/webhooks/firebanking\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}")
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 \"url\": \"https://meu-servidor.com/webhooks/firebanking\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Webhook resent successfully",
"webhookLogId": 12345,
"sentAt": "2024-01-15T10:30:00.000Z",
"statusCode": 200
}Reenviar webhook de transação
Requer token Bearer no header Authorization.
Reenvia o webhook de uma transação específica para a URL configurada ou para uma URL temporária (override).
O identificador da transação pode ser:
- ID numérico da transação: O ID retornado pela Fire Banking (campo
transactionIdnos webhooks) - Seu ID de referência: O identificador que você forneceu ao criar a transação (externalId)
- End-to-End ID do PIX: O e2eId retornado nos webhooks (formato: E/D + 32 chars)
Webhook por Tipo de Operação:
- Cada tipo de operação (cash_in, cash_out, refund_in, refund_out) pode ter uma URL de webhook diferente
- O sistema identifica automaticamente o tipo da transação e busca a URL correspondente
- Se não houver webhook configurado para o tipo específico, retorna erro 400
Comportamento de URL:
- Se
urlfor fornecido no body, usa essa URL temporariamente (não persiste) - Se
urlnão for fornecido, usa a URL configurada no webhook da conta para o tipo da operação - Se nenhuma URL estiver disponível, retorna erro 400
Rate Limiting: 60 requisições por minuto por conta.
curl --request POST \
--url https://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://meu-servidor.com/webhooks/firebanking"
}
'import requests
url = "https://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}"
payload = { "url": "https://meu-servidor.com/webhooks/firebanking" }
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({url: 'https://meu-servidor.com/webhooks/firebanking'})
};
fetch('https://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}', 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.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}",
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([
'url' => 'https://meu-servidor.com/webhooks/firebanking'
]),
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://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}"
payload := strings.NewReader("{\n \"url\": \"https://meu-servidor.com/webhooks/firebanking\"\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://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://meu-servidor.com/webhooks/firebanking\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.public.firebanking.com.br/api/resend-webhook/{transactionIdentifier}")
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 \"url\": \"https://meu-servidor.com/webhooks/firebanking\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Webhook resent successfully",
"webhookLogId": 12345,
"sentAt": "2024-01-15T10:30:00.000Z",
"statusCode": 200
}Autorizações
Enter JWT token
Parâmetros de caminho
Identificador da transação. Aceita: id numérico, externalId (seu código de referência) ou endToEndId (e2eId do PIX)
"abc123-def456-ghi789"
Corpo
URL temporária para este reenvio específico. Se não fornecida, usa a URL configurada no webhook da conta. A URL não é persistida.
"https://meu-servidor.com/webhooks/firebanking"
Resposta
Webhook reenviado com sucesso
Mensagem descritiva do resultado
"Webhook resent successfully"
ID do log de webhook gerado para auditoria
12345
Data/hora do envio do webhook (ISO 8601)
"2024-01-15T10:30:00.000Z"
Código de status HTTP retornado pela URL de destino
200