Accounting
Get Sync Status
Retrieve the current sync status for your accounting integrations.
GET
/
v1
/
accounting
/
sync
/
status
Recent accounting sync log
curl --request GET \
--url https://billing.example.com/v1/accounting/sync/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/accounting/sync/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/accounting/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://billing.example.com/v1/accounting/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 => [
"Authorization: Bearer <token>"
],
]);
$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://billing.example.com/v1/accounting/sync/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/accounting/sync/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/accounting/sync/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entity_type": "invoice",
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"action": "<string>",
"status": "<string>",
"error_message": "<string>",
"synced_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}Example Request
curl -X GET "https://api.recurso.dev/v1/accounting/sync/status" \
-H "Authorization: Bearer rsk_live_9f8a7b6c5d4e3f2a1b0c"
Response
{
"connection_id": "aconn_3pRs6tUv9wXy",
"provider": "quickbooks",
"sync_status": "completed",
"last_sync_at": "2026-06-23T06:00:00Z",
"last_error": null,
"entities_synced": {
"invoices": 42,
"payments": 38,
"customers": 15
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
connection_id | string | The unique identifier of the accounting connection. |
provider | string | The accounting provider name (quickbooks or xero). |
sync_status | string | Current status: idle, syncing, completed, or failed. |
last_sync_at | string | ISO 8601 timestamp of the last completed sync. null if never synced. |
last_error | string | Description of the last sync error. null if the last sync was successful. |
entities_synced | object | Breakdown of entity counts pushed during the last sync. |
entities_synced.invoices | integer | Number of invoices synced. |
entities_synced.payments | integer | Number of payments synced. |
entities_synced.customers | integer | Number of customers synced. |
Notes
- When
sync_statusisfailed, check thelast_errorfield for details on what went wrong. - Entity counts in
entities_syncedreflect the most recent sync only, not cumulative totals. - To trigger a new sync, use the Trigger Accounting Sync endpoint.
Poll this endpoint after triggering a sync to track progress. Alternatively, subscribe to the
accounting.sync.completed webhook event for real-time notifications.Authorizations
Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.
Query Parameters
Only rows for this integration.
Available options:
success, error Substring match on the provider-side or internal record id.
Required range:
x <= 200Response
Sync log entries.
Show child attributes
Show child attributes
⌘I
Recent accounting sync log
curl --request GET \
--url https://billing.example.com/v1/accounting/sync/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/accounting/sync/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/accounting/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://billing.example.com/v1/accounting/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 => [
"Authorization: Bearer <token>"
],
]);
$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://billing.example.com/v1/accounting/sync/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/accounting/sync/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/accounting/sync/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entity_type": "invoice",
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"action": "<string>",
"status": "<string>",
"error_message": "<string>",
"synced_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}