Create a subscription
event_type: one of the events below, or*for all.callback_url: HTTPS required; localhost and private IPs are rejected — for local development use an HTTPS tunnel.secret: at least 16 characters; used to sign every delivery. Stored encrypted and cannot be retrieved. The subscription receives your account’s events. You can list active subscriptions at any time:
Disabling and reactivating a subscription
When a callback is no longer used, disable it instead of deleting it (subscriptions are never deleted: they staydisabled and you can
reactivate them at any time):
{ "status": "active" }.
- The toggle governs future events: a
disabledsubscription stops receiving new events, but deliveries already queued are still sent. - It is idempotent: repeating the current status answers
200with no change. - You can only touch your account’s subscriptions: a subscription of
another account answers
404(it is indistinguishable from an inexistent one). | HTTP |error| Fix | |---|---|---| | 400 |invalid_status| Status must beactiveordisabled| | 404 |not_found| The subscription does not exist or belongs to another account |
Events
RWA payloads use exact decimal strings and include the operation identifier:
X-Webhook-Event-ID. A delivery is a notification, not a command: use the corresponding GET endpoint to reconcile.
| crypto_deposit_credited | An on-chain deposit was confirmed and credited |
| crypto_deposit_held | An incoming deposit was held due to sender risk (screening) |
| crypto_deposit_alert | A deposit was credited but the sender shows high risk (informational) |
| crypto_deposit_under_review | A deposit entered compliance review (held or credited); redacted mirror without the risk verdict — subscribe to operate held deposits |
| crypto_withdrawal_status_changed | An on-chain withdrawal changed state |
| banking_customer_status_changed | A banking profile verification changed (your own or a registered third party’s — customer_kind tells them apart) |
| banking_operation_status_changed | A bank payment changed state |
| card_transaction | A card purchase was authorized, annulled or adjusted |
| card_status_changed | A card changed state (including automatic freezes) |
| card_stored | A payer’s card was tokenized and saved with consent (stored cards) |
| stored_card_revoked | A stored card credential was revoked (merchant-initiated charges stop working) |
| subscription_status_changed | A subscription on a stored card changed state (active / paused / past_due / canceled) |
| kyc_verification_status_changed / kyb_verification_status_changed | An identity verification changed state (including your own onboarding, with self_onboarding: true) |
| kyc_link_completed / kyb_link_completed | A hosted verification link was completed |
| kyc_document_validated / kyb_document_validated | OCR finished for a document uploaded through the API |
| kyc_liveness_completed | A liveness check was completed from a liveness link |
| aml_screening_updated | AML/CFT screening updates (result, cases, risk, reviewed transaction) |
| risk_report_ready | A Qscore credit report finished generating (it carries the score and band) |
| risk_score_changed | The score of a monitored subject moved (re-evaluation after new bureau data) |
| risk_monitoring_alert | A monitored Qscore subject triggered an alert: the score dropped below your threshold, new bureau records appeared, or records were removed |
| risk_batch_completed | A batch of Qscore reports finished processing (exactly one webhook per batch, with item counts — never per subject) |
| risk_consent_granted | A consent link was authorized by the holder — positive banking facts flow into the subject’s credit file |
| risk_consent_revoked | A consent link was declined by the holder or revoked by your account |
| wallet_deposit_received | An on-chain deposit arrived at a segregated wallet (does not touch the ledger) |
| wallet_send_status_changed | A send from a segregated wallet changed status |
| wallet_key_exported | A segregated wallet’s private key was exported (security alert) |
| wallet_external_movement | On-chain movement of a segregated wallet that did not go through the platform (expected under client custody) |
| wallet_key_compromise_suspected | Critical alarm: external outflow from a cbpay-custody wallet — possible key compromise |
| wallet_signature_created | A signature proof was created with a segregated wallet (EIP-191 / TIP-191 message signing) |
| wallet_linked | An external wallet (custody=client) was linked to the account by a signed nonce challenge |
| txn_review_status_changed | An operation held by the transactional firewall changed review state (in_review / info_requested / released / rejected) — neutral payload, internal reasons never travel; a rejection can also come from the automatic deadline sweep (auto-rejection) |
| review_dispatch_failed | A card or banking application was approved but activation dispatch failed; the payload includes event, review_id, kind, title and path. Retry the original approve operation idempotently; do not create a new application |
| corridor_status_changed | A payment corridor changed availability (operational / degraded / down) — broadcast, see the service status guide |
| balance_adjusted | An administrator applied a manual credit or debit to a balance |
| account_status_changed | The account’s administrative status changed (active / blocked / closed) |
| member_security_event | A security event of one of the account’s users (sign-in, credential change, new factor, revoked session) |
| admin_announcement | A named organization administrator approved a localized plain-text announcement for this account |
| warroom_outreach | A named platform god sent a plain-text security notice to this account |
Payload of each event
ip and user_agent are intentionally
redacted. Organization-wide security views retain the forensic user_agent
and the resolved actor IP fields (actor_ip, actor_ip_source) for admin
audit; those admin-only fields are not part of the public webhook contract.
In payout_status_changed, a technical-screening update can be pending
before any debit. Final updates are completed or failed (with failed,
the debit has already been refunded by the time you receive the event).
crypto_withdrawal_status_changed uses completed or failed.
For payout_status_changed, status_code and status_message are the
normalized outcome reported by the core. status_message may be empty when
the rail provides no additional detail; it is scrubbed before delivery and
never contains an upstream provider identity.
Pre-debit terminal failures
If screening fails before the debit path, the event can be terminalstatus: "failed" with predebit_failure: true and
funds_debited: false; receipt_url is omitted. A post-debit failure is
different: its exact debit is refunded before the terminal event. The platform
can also persist non-terminal transition revisions, so one payout may produce
more than one payout_status_changed delivery; deduplicate by
X-Webhook-Event-ID and do not create a second payout.
Delivery format
Every delivery is a JSONPOST with these headers:
Verify the signatures
CBPay sends both signature headers on every platform webhook delivery. V1 remains valid and continues to be sent, so adopting V2 is not a breaking change. New integrations should verify V2 first and keep the V1 fallback while migrating existing receivers.Retries and idempotency
- Your endpoint must respond 2xx within the timeout; anything else is retried.
- Up to 5 attempts with incremental backoff: | Attempt | 1 | 2 | 3 | 4 | 5 | |---|---|---|---|---|---| | Approx. wait | immediate | ~5s | ~20s | ~45s | ~80s |
- Use
X-Webhook-Event-IDto deduplicate: the same event can arrive more than once (at-least-once delivery). - If all 5 attempts fail the event is not resent — recover the state with
the resource’s
GET(which is why no flow should depend ONLY on the webhook).
Your idempotency key comes back in the payload
When the event comes from an operation you created with anidempotency_key (a payout, a card payin, a crypto withdrawal, a
segregated-wallet send, a refund…), the payload carries it back as
idempotency_key — reconcile the notification against your own reference
without an extra GET.
- It is optional: present only when the original request carried a non-empty key, and omitted otherwise. Operations created by the platform itself never expose an internal key.
- Covered events:
payout_status_changed,payin_credited,payin_settlement_scheduled,payin_expired,payin_refunded,crypto_withdrawal_status_changedandwallet_send_status_changed.transfer_receiveddoes not carry it. - The payin resource also returns it on
GET /v1/payins/{id}.
Best practices
- Respond
200immediately and process in the background. - Log the
X-Webhook-Delivery-IDfor traceability. - Don’t rely solely on webhooks for critical states: you can always query
the object by API (
GET /v1/payouts/{id}, etc.).
banking_virtual_iban_inbound
This event reports an inbound EUR transfer received by an owned virtual IBAN.
The event is normalized before delivery; consumers should deduplicate by the
event ID and fetch the banking operation or virtual account when they need the
latest state. The event does not expose an upstream provider identity.
admin_announcement
This account-scoped event is emitted when an organization administrator’s
approved broadcast reaches the account notification channel. It is plain
localized text, never HTML:
X-Webhook-Event-ID.
dispute_status_changed
See the disputes guide for the signed payload and transitions.
Local-fiat payins use the existing webhook family: payin_credited carries credit_asset/fiat_credited; payin_refunded carries debited_asset/debited_amount.
Support ticket events
The following events are delivered to both account and organization audiences. Payloads contain identifiers and state only; message bodies, internal notes and attachment bytes never travel in an event. Verify the signature and deduplicate by event ID.warroom_outreach payload
This account-scoped event is a plain-text security notice sent by a named platform god. It contains the subject, the body after the fixed anti-phishing warning, the sender label and the UTC emission time:
X-Webhook-Event-ID.