Events & webhooks

The cursor is the contract. Webhooks are the fast path. Every event is a row you can fetch from GET /v1/events, and a webhook is a delivery of that same row with the same id.

The cursor

GET /v1/events?after=0&limit=100
Authorization: Bearer <your key>
{
  "events": [
    {
      "id": 8412,
      "kind": "deposit.confirmed",
      "resource_id": "3f1c2a9e-...",
      "occurred_at": "2026-09-26T08:22:48Z",
      "data": {"...": "..."}
    }
  ],
  "next_after": 8412
}

Ids increase monotonically. Store the last id you processed and ask for what came after it. limit defaults to 100, maximum 500. next_after is null on an empty page. Scope: events:read.

Webhooks

Give us an HTTPS URL and we POST each event to it:

{
  "id": 8412,
  "type": "deposit.confirmed",
  "resource": {"type": "deposit", "id": "3f1c2a9e-..."},
  "occurred_at": "2026-09-26T08:22:48Z",
  "data": {"...": "..."}
}

The envelope differs from the cursor: type here is kind there, and resource.id here is resource_id there. Map both into one handler.

Header
X-Bankcore-Event-IdThe event id, the same as on the cursor. Deduplicate on it
X-Bankcore-TimestampUnix seconds
X-Bankcore-Signaturev1=<hex>: HMAC-SHA256 with the shared secret we give you, over <timestamp>.<raw body>

Verify before you trust the body: compare in constant time and reject a timestamp more than 300 seconds old.

import hashlib, hmac, time


def verified(secret: bytes, timestamp: str, body: bytes, signature: str) -> bool:
    if abs(time.time() - int(timestamp)) > 300:
        return False
    expected = hmac.new(secret, timestamp.encode() + b"." + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(f"v1={expected}", signature)

Delivery

Kinds

Events are outcomes you can act on, not every transition.

KindResource
deposit.detecteddepositAn arrival was recorded
deposit.confirmeddepositIt reached the asset's confirmation depth
deposit.reorgeddepositIts block was replaced; the coins are not there
deposit.screeningdepositAn enforced screening of the arrival was written or changed status
crypto_screening.updatedcrypto_screeningA screening you asked for (POST /v1/crypto-screenings) was written or changed status or reason
deposit_sweep.confirmeddeposit_sweepWe swept an address whose key we hold, and proved it landed in your destination
deposit_sweep.faileddeposit_sweepA sweep that provably moved nothing
deposit_sweep.unresolveddeposit_sweepNot yet known. Never read it as either; a confirmed or failed may follow
sweep_destination.changedsweep_destinationA sweep destination became REQUESTED, VERIFIED, LIVE or RETIRED
chain_payout.settledoperationA payout landed
chain_payout.failedoperationA payout will not land
chain_payout.unresolvedoperationNot yet known. Never read it as either
chain_payout_intent.updatedchain_payout_intentA payout intent was decided by our policy, or a review was decided by our reviewer
withdrawal.settled / .failed / .unresolvedoperationA withdrawal to your verified address
swap.settled / .failed / .unresolvedoperationA conversion
swap.on_hold / swap.resumedoperationA swap paid from outside waits for a check; it goes on
payout.*, transfer.*operationFiat payouts and transfers
deposit.settledoperationA deposit credited to your balance
account.active / .held / .closedaccountA bank account opened, waits, or closed
account.suspendedaccountThe provider suspended a bank account; do not show its details
account.details_changedaccountThe provider gave an open bank account new details; read it again
deposit.heldheld_creditA payment into a bank account held for screening, by the provider or by us; not in the balance
deposit.returnedheld_creditA payment into a bank account sent back to the payer; nothing was credited
deposit.held_creditedheld_creditA held payment found credited after its deposit.settled; nothing more is credited

A chain payout, a withdrawal and a fiat payout are different products with different events: subscribing to one does not deliver another.

On deposit events data carries deposit_id, network, address, reference, currency, amount, amount_units, tx_hash, transfer_index, block_number, confirmations, required_confirmations, status, historical and change_seq. Here amount is a bare decimal string, not an object. swap_ids is present only while a swap paid from outside is open into that address in that currency: the deposit may be its payout, so do not credit it by itself.

On deposit.screening data carries deposit_id, screening_id, status (pending, cleared, under_review, blocked, rejected, released, not_screened, void; see screening), reason (the coarse code, or null) and enforced (always true: a screening in shadow sends no event). One when the screening is written, then one on each change of status. The arrival's row on GET /v1/deposits has moved with it.

On crypto_screening.updated data carries screening_id, status (as on deposit.screening), reason (the coarse code, or null) and reference (yours). One when the screening is written, then one on each change of status or reason, in shadow too. GET /v1/crypto-screenings/{screening_id} reads it.

On chain_payout_intent.updated data is what GET /v1/chain-payout-intents/{intent_id} answers at that moment. One when the intent is written, then one when a review is decided.

On sweep events data is what GET /v1/deposit-sweeps/{sweep_id} answers at that moment: sweep_id, deposit_address_id, address, reference, network, currency, amount, amount_units, to_address, tx_hash, through_change_seq, landed_at, created_at, status and cost (trx, usd, energy_source, activation). On confirmed, cost.trx and cost.usd are often still null: read the sweep for them. Sweep events are sent only for sweeps paid with energy.

On destination events data carries id, network, address, state, live_from and requested_kid (null for a destination you named in writing).

On held payment events data carries held_credit_id, account_id, customer_id, status, amount, currency, rail, provider_reference, held_at and closed_at. A held payment that is credited ends with deposit.settled, whose data names it as held_credit_id; when the credit came first, with deposit.held_credited, whose data adds credit_id, credit_amount and credit_currency (the credit's operation, already announced by its own deposit.settled).

On account events data carries account_id, customer_id, status and currency; account.held adds pending_reason, account.closed reason and closed_reason, account.suspended adds reason (the provider's own word), account.details_changed adds details_version and changed (field names, never a value).

On swap events data carries operation_id, kind, status, amount, currency, provider_reference, to_currency, to_amount (what the conversion produced; null until settled), and your own partner_reference and customer_external_id as sent with the swap, null when not sent. amount and to_amount are bare decimal strings.

On the swap events of a swap paid from outside (Conversions) data also carries incoming true, deposit_address_id and deposit_address, and provider_reference is null. swap.settled adds to_amount (what arrived at the address), customer_fee and fee_currency, amount_net (to_amount less the fee), deposit_id (the deposit that is its arrival) and payout_tx_hash. swap.failed adds reason (refunded, failed or expired), refund_tx_hash and refund_amount. swap.on_hold carries reason (under_review or verification_required); swap.resumed follows when the swap goes on. A swap we declined ends with swap.failed and reason declined.

On payout events data carries operation_id, kind, status, amount, currency, provider_reference and tx_hash. Chain payout events also carry your reference and funding_id: the custodian funding the payout is, or null. treasury_withdrawal_id is set when the payout is a send from your wallet made by a Bank Core operator, else null; its reference is then treasury-<id>. Reconcile on operation_id. tx_hash is filled on chain_payout.settled; on unresolved, and on a failed payout that was already signed, the transaction is in provider_reference.

amount on an event may be written at full scale ("500.000000000000000000") where the API writes "500". Compare as decimals.