Resend all webhooks for a reference
curl --request POST \
--url https://api.breet.io/v1/transactions/webhooks/resend/{reference} \
--header 'X-Breet-Env: <api-key>' \
--header 'x-app-id: <api-key>' \
--header 'x-app-secret: <api-key>'import requests
url = "https://api.breet.io/v1/transactions/webhooks/resend/{reference}"
headers = {
"x-app-id": "<api-key>",
"x-app-secret": "<api-key>",
"X-Breet-Env": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-app-id': '<api-key>',
'x-app-secret': '<api-key>',
'X-Breet-Env': '<api-key>'
}
};
fetch('https://api.breet.io/v1/transactions/webhooks/resend/{reference}', 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.breet.io/v1/transactions/webhooks/resend/{reference}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Breet-Env: <api-key>",
"x-app-id: <api-key>",
"x-app-secret: <api-key>"
],
]);
$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.breet.io/v1/transactions/webhooks/resend/{reference}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-app-id", "<api-key>")
req.Header.Add("x-app-secret", "<api-key>")
req.Header.Add("X-Breet-Env", "<api-key>")
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.breet.io/v1/transactions/webhooks/resend/{reference}")
.header("x-app-id", "<api-key>")
.header("x-app-secret", "<api-key>")
.header("X-Breet-Env", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breet.io/v1/transactions/webhooks/resend/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-app-id"] = '<api-key>'
request["x-app-secret"] = '<api-key>'
request["X-Breet-Env"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "webhook resend attempted",
"data": [
{
"id": "67a1b2c3d4e5f67890123456",
"status": "delivered"
},
{
"id": "67a1b2c3d4e5f67890123457",
"status": "failed",
"error": "webhook delivery failed"
}
],
"meta": {},
"summary": {},
"stats": {}
}Webhooks
Resend all webhooks for a reference
Triggers an immediate redelivery attempt for every stored webhook event that matches the given reference (the trade or withdrawal reference). Webhooks are persisted for a fixed retention period of 7days.
POST
/
transactions
/
webhooks
/
resend
/
{reference}
Resend all webhooks for a reference
curl --request POST \
--url https://api.breet.io/v1/transactions/webhooks/resend/{reference} \
--header 'X-Breet-Env: <api-key>' \
--header 'x-app-id: <api-key>' \
--header 'x-app-secret: <api-key>'import requests
url = "https://api.breet.io/v1/transactions/webhooks/resend/{reference}"
headers = {
"x-app-id": "<api-key>",
"x-app-secret": "<api-key>",
"X-Breet-Env": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-app-id': '<api-key>',
'x-app-secret': '<api-key>',
'X-Breet-Env': '<api-key>'
}
};
fetch('https://api.breet.io/v1/transactions/webhooks/resend/{reference}', 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.breet.io/v1/transactions/webhooks/resend/{reference}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Breet-Env: <api-key>",
"x-app-id: <api-key>",
"x-app-secret: <api-key>"
],
]);
$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.breet.io/v1/transactions/webhooks/resend/{reference}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-app-id", "<api-key>")
req.Header.Add("x-app-secret", "<api-key>")
req.Header.Add("X-Breet-Env", "<api-key>")
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.breet.io/v1/transactions/webhooks/resend/{reference}")
.header("x-app-id", "<api-key>")
.header("x-app-secret", "<api-key>")
.header("X-Breet-Env", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breet.io/v1/transactions/webhooks/resend/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-app-id"] = '<api-key>'
request["x-app-secret"] = '<api-key>'
request["X-Breet-Env"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "webhook resend attempted",
"data": [
{
"id": "67a1b2c3d4e5f67890123456",
"status": "delivered"
},
{
"id": "67a1b2c3d4e5f67890123457",
"status": "failed",
"error": "webhook delivery failed"
}
],
"meta": {},
"summary": {},
"stats": {}
}Authorizations
Your application ID from the Breet dashboard
Your application secret from the Breet dashboard
Environment selector: development or production
Path Parameters
Trade or withdrawal document ID (same value as reference on webhook payloads).
Required string length:
1 - 32Response
Resend attempts completed (per-event results may show delivered or failed)
Was this page helpful?
⌘I