curl --request POST \
--url https://api.breezing.io/v1/wallets/{id}/sync \
--header 'Content-Type: application/json' \
--data '
{
"dateFrom": 1704067200,
"dateTo": 1735689599,
"toHash": "<string>"
}
'import requests
url = "https://api.breezing.io/v1/wallets/{id}/sync"
payload = {
"dateFrom": 1704067200,
"dateTo": 1735689599,
"toHash": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({dateFrom: 1704067200, dateTo: 1735689599, toHash: '<string>'})
};
fetch('https://api.breezing.io/v1/wallets/{id}/sync', 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.breezing.io/v1/wallets/{id}/sync",
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([
'dateFrom' => 1704067200,
'dateTo' => 1735689599,
'toHash' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.breezing.io/v1/wallets/{id}/sync"
payload := strings.NewReader("{\n \"dateFrom\": 1704067200,\n \"dateTo\": 1735689599,\n \"toHash\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.breezing.io/v1/wallets/{id}/sync")
.header("Content-Type", "application/json")
.body("{\n \"dateFrom\": 1704067200,\n \"dateTo\": 1735689599,\n \"toHash\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breezing.io/v1/wallets/{id}/sync")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"dateFrom\": 1704067200,\n \"dateTo\": 1735689599,\n \"toHash\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"walletId": 123,
"dateFrom": 123,
"dateTo": 123,
"status": "loading"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Sync Wallet API
Trigger an incremental or custom period Breezing wallet sync to pull blockchain or exchange transactions for accounting reconciliation.
curl --request POST \
--url https://api.breezing.io/v1/wallets/{id}/sync \
--header 'Content-Type: application/json' \
--data '
{
"dateFrom": 1704067200,
"dateTo": 1735689599,
"toHash": "<string>"
}
'import requests
url = "https://api.breezing.io/v1/wallets/{id}/sync"
payload = {
"dateFrom": 1704067200,
"dateTo": 1735689599,
"toHash": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({dateFrom: 1704067200, dateTo: 1735689599, toHash: '<string>'})
};
fetch('https://api.breezing.io/v1/wallets/{id}/sync', 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.breezing.io/v1/wallets/{id}/sync",
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([
'dateFrom' => 1704067200,
'dateTo' => 1735689599,
'toHash' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.breezing.io/v1/wallets/{id}/sync"
payload := strings.NewReader("{\n \"dateFrom\": 1704067200,\n \"dateTo\": 1735689599,\n \"toHash\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.breezing.io/v1/wallets/{id}/sync")
.header("Content-Type", "application/json")
.body("{\n \"dateFrom\": 1704067200,\n \"dateTo\": 1735689599,\n \"toHash\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breezing.io/v1/wallets/{id}/sync")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"dateFrom\": 1704067200,\n \"dateTo\": 1735689599,\n \"toHash\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"walletId": 123,
"dateFrom": 123,
"dateTo": 123,
"status": "loading"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Query Parameters
Body
End of a custom sync window (unix seconds). Requires dateFrom. Must be <= now for a backfill that avoids overlapping already-imported data. Not supported on Solana, Cardano, Bitcoin, or Tron wallets (their providers paginate from the chain tip); on Solana pass toHash instead.
x > 01735689599
Solana wallets only. A transaction signature used as the upper boundary: the sync starts at this transaction and walks BACKWARDS to dateFrom, so only transactions older than this hash are imported. Pass the signature of the oldest transaction already imported for this wallet so the backfill stops exactly where the existing data begins. Requires dateFrom.
1 - 120