// Integrations

Webhooks

Signed event notifications so your systems learn about charges, pre-authorizations, and card lifecycle changes the moment they happen -- no polling.

Event catalog

Transactions

When the payments API answers 202 (processing), the transaction event is sent once the outcome is final, not when the request returns.

Card lifecycle

Forms and card requests

Invoices (Invoices API)

Endpoints subscribe to specific event types -- configure which events each endpoint receives in the dashboard. An endpoint subscribed to all events may receive event types that are not listed here; acknowledge them with a 2xx and ignore any Type you do not handle.

Card data in webhooks

Webhooks never contain the full card number, the CVV, or track data. No PAN, no CVV/security code, no track or PIN data, and no network or processor tokens are ever sent. To let you identify and manage stored cards, card events do include the BIN (first six digits), the last four digits, the cardholder name and the expiry date, alongside the Card Vault card token. Treat webhook payloads as sensitive: the cardholder name is personal data, so protect stored payloads and request logs accordingly.

Envelope

Every delivery is a JSON envelope with a consistent outer shape; the event-specific payload rides in Data. Property names are PascalCase exactly as shown -- parse them case-insensitively if your serializer defaults to camelCase.

DELIVERY BODYJSON
{
  "Id":            "9b2f4c1e-...-d41a",   // unique event id -- your idempotency key
  "Type":          "card.expired",
  "Created":       "2026-07-09T18:30:00.1234567+00:00",   // ISO 8601, UTC
  "AccountId":     1234,
  "CorrelationId": "...",               // ties the event to the originating operation
  "Data":          { ... }               // event-specific payload, below
}

Card and transaction payload

For charge.*, preauth.*, card.*, tpa.completed and request.completed, Data is the same card/transaction result object. Every property below is always present; a property that does not apply to the event is null (strings and objects), false (flags) or 0 (numbers).

Card fields

Transaction fields

Additional reserved properties may appear in Data; ignore any property you do not recognise.

Which events carry which card fields

Example: card lifecycle event

EXAMPLE (TEST VALUES) - CARD.VAULTEDJSON
{
  "Id":            "9b2f4c1e-...-d41a",
  "Type":          "card.vaulted",
  "Created":       "2026-11-19T18:30:00.1234567+00:00",
  "AccountId":     1234,
  "CorrelationId": "...",
  "Data": {
    "Token":            "<card token>",
    "CardId":           "...",
    "Ref":              "CUST-0042",
    "Brand":            "Visa",
    "BrandId":          4,
    "Last4":            "1111",
    "CardHolder":       "JANE DOE",
    "Expiry":           "2028-12-31",
    "Bin":              "411111",
    "UsageType":        "Recurring",
    "UsageExpiry":      "2028-12-31",
    "RecurringBlocked": false,
    "Verification":     { "CardVerified": true, "CvvMatch": true, "StreetMatch": false, "PostalMatch": true },
    "LastVerified":     null,
    "CvvRefreshed":     false,
    "Charged":          false,
    "Approved":         false,
    "TxRef":            null,
    "AuthCode":         null,
    "DeclineReason":    null,
    "TxStatus":         null,
    "TxId":             null,
    "PreAuthId":        null,
    "AuthorizedAmount": 0.0,
    "TxProcessorId":    null,
    "Custom":           null,
    "CorrelationId":    "..."
  }
}

Example: charge event

EXAMPLE (TEST VALUES) - CHARGE.SUCCEEDED, CAPTURE PAGEJSON
{
  "Id":            "...",
  "Type":          "charge.succeeded",
  "Created":       "2026-11-19T18:31:02.5550000+00:00",
  "AccountId":     1234,
  "CorrelationId": "...",
  "Data": {
    "Token":            "<card token>",   // null when the card was not vaulted
    "CardId":           "...",
    "Ref":              "ORDER-1001",
    "Brand":            "Visa",
    "BrandId":          4,
    "Last4":            "1111",
    "CardHolder":       "JANE DOE",
    "Expiry":           "2028-12-31",
    "Bin":              "411111",
    "UsageType":        "SingleUse",
    "UsageExpiry":      "2026-12-19",
    "RecurringBlocked": false,
    "Verification":     { "CardVerified": false, "CvvMatch": false, "StreetMatch": false, "PostalMatch": false },
    "LastVerified":     null,
    "CvvRefreshed":     false,
    "Charged":          true,
    "Approved":         true,
    "TxRef":            "...",
    "AuthCode":         "...",
    "DeclineReason":    null,
    "TxStatus":         null,
    "TxId":             null,
    "PreAuthId":        null,
    "AuthorizedAmount": 0.0,
    "TxProcessorId":    "...",
    "Custom":           null,
    "CorrelationId":    "..."
  }
}

A charge on a stored token or from the Virtual Terminal has the same shape with the card fields left null (the Virtual Terminal keeps CardId).

Invoice event payloads

For invoice.paid, invoice.declined, invoice.failed and invoice.expired, Data is the invoice's result. Invoice events identify the card by brand and last four digits only:

EXAMPLE (TEST VALUES) - INVOICE RESULTJSON
{
  "InvoiceId":       "...",
  "BatchId":         "...",
  "ExternalRef":     "INV-10045",      // your reference
  "Amount":          149.00,
  "Currency":        "CAD",
  "PaymentType":     "Recurring",
  "ChargeDate":      "2026-11-15",
  "Status":          "Paid",
  "ResultCode":      "approved",
  "DeclineCategory": null,             // on declines: the decline category
  "AttemptCount":    1,
  "TxId":            "...",             // the Card Vault transaction
  "TxRef":           "...",             // the processor's reference
  "Brand":           "Visa",
  "Last4":           "1111",           // the card actually charged
  "OccurredUtc":     "2026-11-15T14:02:11Z"
}

OccurredUtc is an ISO 8601 UTC timestamp; depending on the event it may or may not carry fractional seconds or a Z suffix.

Signature verification

Every delivery carries an HMAC-SHA256 signature in the X-CardVault-Signature header, using a Stripe-compatible scheme:

HEADERHTTP
X-CardVault-Signature: t=1783017000,v1=5f8a2c...9e41

To verify:

VERIFYC#
// secretBytes: your endpoint's signing secret from the dashboard -- 64 hex characters;
// decode the hex to its 32 bytes (Convert.FromHexString) and use those as the HMAC key
var parts = header.Split(',');                // "t=...", "v1=..."
long t = /* parse t= */; string v1 = /* parse v1= */;

if (Math.Abs(DateTimeOffset.UtcNow.ToUnixTimeSeconds() - t) > 300) return false;

var input = Encoding.UTF8.GetBytes($"{t}.{rawBody}");
using var hmac = new HMACSHA256(secretBytes);
var expected = Convert.ToHexString(hmac.ComputeHash(input)).ToLowerInvariant();
return CryptographicOperations.FixedTimeEquals(
    Encoding.ASCII.GetBytes(expected), Encoding.ASCII.GetBytes(v1));
Always sign-check the raw body. Re-serializing the JSON before computing the HMAC is the most common cause of signature mismatches -- property order and whitespace matter. Read the body bytes before any model binding.

Delivery, retries, idempotency