curl -X POST 'https://verification.didit.me/v3/bank/connections/5e1d2a70-3b94-4c1f-8a6e-d2f07b9c1e35/refresh/' \
-H 'x-api-key: YOUR_API_KEY'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.bank.refresh_connection(
"11111111-2222-3333-4444-555555555555",
wait=True,
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.bank.refreshConnection("11111111-2222-3333-4444-555555555555", {
wait: true,
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Bank.RefreshConnection(ctx, "11111111-2222-3333-4444-555555555555", didit.BankRefreshConnectionParams{
Body: didit.BankRefreshRequest{
Wait: didit.Bool(true),
},
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
import me.didit.types.BankRefreshConnectionParams;
import me.didit.types.BankRefreshRequest;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.bank().refreshConnection("11111111-2222-3333-4444-555555555555", BankRefreshConnectionParams.builder()
.wait_(true)
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->bank->refreshConnection('11111111-2222-3333-4444-555555555555', [
'wait' => true,
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.bank.refresh_connection(
"11111111-2222-3333-4444-555555555555",
wait: true
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Bank.RefreshConnectionAsync("11111111-2222-3333-4444-555555555555", new BankRefreshRequest
{
Wait = true,
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"id": "d4a9e7b2-1c58-4f03-96ab-5e2d8c7f0b14",
"connection_id": "5e1d2a70-6b3c-4f8e-a1d9-0c7b2e4f8a36",
"trigger": "requested",
"status": "succeeded",
"started_at": "2026-11-21T12:30:02Z",
"finished_at": "2026-11-21T12:30:09Z",
"results": [
{
"account_id": "a71f0c2e-4d85-4b1a-9e63-2f8c0d5b7a14",
"resource": "transactions",
"outcome": "succeeded",
"added": 3,
"modified": 0,
"removed": 1,
"error": null
}
],
"outcome": "succeeded",
"balances_changed": true,
"error": null
}Refresh a Bank Connection API: Sync Now
Didit’s Refresh a Bank Connection endpoint syncs now: 202 with the sync_id, or 200 with the finished sync when you wait up to 25 seconds.
curl -X POST 'https://verification.didit.me/v3/bank/connections/5e1d2a70-3b94-4c1f-8a6e-d2f07b9c1e35/refresh/' \
-H 'x-api-key: YOUR_API_KEY'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.bank.refresh_connection(
"11111111-2222-3333-4444-555555555555",
wait=True,
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.bank.refreshConnection("11111111-2222-3333-4444-555555555555", {
wait: true,
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Bank.RefreshConnection(ctx, "11111111-2222-3333-4444-555555555555", didit.BankRefreshConnectionParams{
Body: didit.BankRefreshRequest{
Wait: didit.Bool(true),
},
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
import me.didit.types.BankRefreshConnectionParams;
import me.didit.types.BankRefreshRequest;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.bank().refreshConnection("11111111-2222-3333-4444-555555555555", BankRefreshConnectionParams.builder()
.wait_(true)
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->bank->refreshConnection('11111111-2222-3333-4444-555555555555', [
'wait' => true,
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.bank.refresh_connection(
"11111111-2222-3333-4444-555555555555",
wait: true
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Bank.RefreshConnectionAsync("11111111-2222-3333-4444-555555555555", new BankRefreshRequest
{
Wait = true,
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"id": "d4a9e7b2-1c58-4f03-96ab-5e2d8c7f0b14",
"connection_id": "5e1d2a70-6b3c-4f8e-a1d9-0c7b2e4f8a36",
"trigger": "requested",
"status": "succeeded",
"started_at": "2026-11-21T12:30:02Z",
"finished_at": "2026-11-21T12:30:09Z",
"results": [
{
"account_id": "a71f0c2e-4d85-4b1a-9e63-2f8c0d5b7a14",
"resource": "transactions",
"outcome": "succeeded",
"added": 3,
"modified": 0,
"removed": 1,
"error": null
}
],
"outcome": "succeeded",
"balances_changed": true,
"error": null
}202 with the sync_id.
Send "wait": true to hold up to 25 seconds and get the finished sync in one call, at no extra charge.
The bank limits unattended access, so the call can answer 429 refresh_limit_reached with Retry-After.
See Refresh bank data on demand.Authorizations
Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.
Headers
Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.
1 - 255Body
Optional body of a refresh.
true holds the call for up to 25 seconds and answers 200 with the finished sync, so one request returns fresh data. If the bank has not answered in that time the call answers 202: read the sync with get_sync_run using the sync_id, or subscribe to bank.sync.completed. bank.data.updated follows only when the sync stores changes. The header Prefer: wait=<seconds> (up to 25) does the same.
Response
The sync finished within 25 seconds.
A finished sync returned by a refresh with wait: the sync run with its outcome, the per-account counts in results and balances_changed.