curl --request GET \
--url https://api.range.org/v2/accounts/transfers/sync/status \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.range.org/v2/accounts/transfers/sync/status"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.range.org/v2/accounts/transfers/sync/status', 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.range.org/v2/accounts/transfers/sync/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <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.range.org/v2/accounts/transfers/sync/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.range.org/v2/accounts/transfers/sync/status")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v2/accounts/transfers/sync/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"running": 2,
"succeeded": 3,
"failed": 0,
"transactions_upserted": 12,
"pending": 1,
"complete": false
}Poll the progress of an account tx-sync batch
Returns aggregate progress for the batch_id returned by POST /accounts/transfers/sync. Poll complete: it turns true once no job for the batch is still in-flight, which stays correct even if an account is deleted mid-sync or a state write is lost. transactions_upserted sums the transactions ingested by the successfully-synced accounts. Per-account outcome also appears on AccountDto.sync_status / last_synced_at.
curl --request GET \
--url https://api.range.org/v2/accounts/transfers/sync/status \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.range.org/v2/accounts/transfers/sync/status"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.range.org/v2/accounts/transfers/sync/status', 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.range.org/v2/accounts/transfers/sync/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <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.range.org/v2/accounts/transfers/sync/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.range.org/v2/accounts/transfers/sync/status")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v2/accounts/transfers/sync/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"running": 2,
"succeeded": 3,
"failed": 0,
"transactions_upserted": 12,
"pending": 1,
"complete": false
}Authorizations
Authorization method required to allow user to access the api endpoints.
Query Parameters
Response
Accounts whose row is currently marked running.
2
Accounts that finished this batch successfully.
3
Accounts whose job for this batch failed (after retries).
0
Total transactions upserted across the successfully-synced accounts in this batch.
12
Jobs for this batch still in-flight in the queue (waiting, delayed or active). Independent of per-account rows.
1
True once no job for this batch remains in-flight (pending === 0). The authoritative "batch is done" signal to poll on.
false
Was this page helpful?