ClientCasa
API

Webhook Events

All webhook event types, payloads, and signature verification for ClientCasa integrations.

Webhooks send real-time HTTP POST notifications to your server when events occur in ClientCasa. Use them to trigger workflows, sync data, and build custom integrations.

Configuration

Configure webhooks in your dashboard at Settings > Webhooks. For each endpoint you can:

  • Set a destination URL that receives POST requests
  • Choose which events to subscribe to
  • Add a signing secret for HMAC-SHA256 signature verification
  • Enable or disable the endpoint without deleting it

Signature Verification

When you configure a signing secret, ClientCasa includes two headers on every delivery for verification:

HeaderDescription
X-SignatureHMAC-SHA256 signature in the format sha256=hex_digest
X-Webhook-TimestampUnix timestamp (seconds) for replay protection

The signature is computed over {timestamp}.{body}. Verify it like this:

const crypto = require('crypto')

function verifyWebhookSignature(body, timestamp, signature, secret) {
  // Reject old timestamps (> 5 minutes) to prevent replay attacks
  const now = Math.floor(Date.now() / 1000)
  if (Math.abs(now - parseInt(timestamp)) > 300) {
    throw new Error('Timestamp too old')
  }

  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${timestamp}.${body}`)
    .digest('hex')

  const received = signature.replace('sha256=', '')

  if (
    !crypto.timingSafeEqual(
      Buffer.from(expected, 'hex'),
      Buffer.from(received, 'hex'),
    )
  ) {
    throw new Error('Invalid signature')
  }
}

Always verify signatures

If you configure a signing secret, always verify the signature before processing the payload. Use timingSafeEqual to prevent timing attacks.

Event Types

Each table names the time field already included with the event. For most events, timestamp tells you when ClientCasa prepared the webhook. For events that carry a recorded action time, the notes below explain what it means.

Proposal & Document Events

A proposal is one client-facing page assembled from blocks. These events track it through its lifecycle. (The smart_file_ prefix is ClientCasa's internal name for these documents — subscribe to the literal event strings below.)

EventDescriptionTime field
smart_file_sentA proposal has been sent to a clienttimestamp
smart_file_email_requestedA proposal was queued to be sent by emailtimestamp
smart_file_viewedA client has opened a proposal for the first timetimestamp
smart_file_acceptedA client has accepted (and signed, if applicable) a proposaltimestamp
smart_file_completedA proposal's required actions are all completetimestamp
smart_file_expiredA proposal has passed its expiration datetimestamp
client_revision_requestedA client has asked for changes to a proposaltimestamp
smart_file_billing_reviewedA proposal's billing review has been resolvedtimestamp
proposal_payment_terms_savedA proposal's payment terms were savedtimestamp (save time)

Proposal lifecycle events use the recorded action time in timestamp when available.

Contract Events

These track standalone contracts (sent for e-signature) through their lifecycle.

EventDescriptionTime field
contract_sentA contract has been sent to its signerstimestamp
contract_viewedA signer has opened the contract for the first timetimestamp
contract_signedThe contract has been signedtimestamp
contract_recipient_signedAn individual signer has completed their signaturetimestamp
contract_countersignedThe contract has been countersigned by your sidetimestamp
contract_completedAll required signatures are completetimestamp
contract_expiredA contract has passed its expiration date without being signedtimestamp
contract_voidedA contract has been voidedtimestamp
contract_amendedAn amendment to a contract has been sent for signing, or has been fully signedtimestamp

Invoice & Payment Events

Invoice payloads, including invoice_revised, include taxMode: inclusive means prices already include tax; exclusive means tax is added on top. Net revenue is total - taxAmount in either mode.

EventDescriptionTime field
invoice_sentAn invoice has been sent to a clienttimestamp
invoice_revisedA sent invoice has been revised, and the new version replaces the one the client hastimestamp (revision time)
invoice_viewedA client has opened an invoice for the first timetimestamp
invoice_due_soonAn invoice is approaching its due datetimestamp
invoice_overdueAn invoice has passed its due datetimestamp
invoice_payment_reminderA payment reminder has been sent for an outstanding invoicetimestamp
invoice_paidA client has paid an invoicetimestamp
invoice_refundedA payment on an invoice has been refundedtimestamp
invoice_payment_failedA payment attempt has failedtimestamp
invoice_disputedA payment has been disputedtimestamp
invoice_closed_payment_receivedA payment arrived on an invoice that was already closed — voided, written off, or the deposit of an offer that had ended. The payment is recorded and nothing is refunded automatically; you decide whether to refund it or re-open the offer. data.closedPayment carries paymentId, amount and closedAs (void, written_off or offer_ended)timestamp
payment_processingA client started a bank (ACH) payment that is still clearingtimestamp
payment_receivedA payment was recorded (any method — card, ACH, cash, check, transfer)timestamp
payment_appliedA payment was applied to an invoicetimestamp
payment_unappliedA payment was removed from the invoice it was applied totimestamp
payment_refundedA payment of any type was refundedtimestamp
payment_chargebackA payment was charged back (Stripe dispute funds withdrawn)timestamp
payment_deletedA recorded payment was deletedtimestamp
subscription_payment_failedAn automatic recurring-billing charge failedtimestamp
recurring_billing_restartedAn open invoice's automatic charge changed — billing restarted on a card, resumed, moved to a new billing contact's card, or a promised charge was held. Read data.cause and data.billingStatus (below)timestamp

recurring_billing_restarted carries why it fired and the billing status it left the client in (as written, never guessed), so an automation never reports a restart that did not happen:

data.causeWhat happeneddata.billingStatus
new_cardA suspended client's billing contact saved a new card; the open invoice is tried at the next billing runactive
new_card_after_declineThe billing contact saved a card — a new one, or through the setup link — for an invoice declined on an earlier card; it is charged once at the next billing runactive
new_card_while_pausedA new card arrived while you had billing paused — nothing restarted yet; the invoice is tried when billing resumespaused
resume_after_new_cardThat paused client resumed (your Resume, or the date you set); the re-armed invoice is chargedactive or past_due
owner_resumeYou resumed a suspended client on its card on file; the retry is scheduled a few days out and the client is told firstactive
handoffYou made a contact with a card on file the billing contact; the open invoices are charged on that card a few days out, after the contact is emailed the dateactive or paused
card_supersededA charge you were told about was not made: its card is no longer the billing contact's. It is moved to the card on file (the contact is emailed the date) or waits for a new cardthe client's status
resumedBilling resumed with declined invoices still open; they are named, and not chargedactive or past_due

data also includes client (id, name), contact (the billing contact), retriedInvoices (id, invoiceNumber — what is charged), and the title and message the owner sees.

Sample payload

recurring_billing_restarted names why it fired (cause), the status it left the client in, the client, the billing contact, and the open invoices it charges (invoiceNumber is null for an invoice that has no number yet). title and message are the same words you see in your notifications. retriedInvoices can be empty.

{
  "event": "recurring_billing_restarted",
  "timestamp": "2026-09-24T14:30:00.000Z",
  "dedupeKey": "example-recurring_billing_restarted",
  "data": {
    "cause": "new_card",
    "billingStatus": "active",
    "client": {
      "id": "client_abc123",
      "name": "Rivera Studio"
    },
    "contact": {
      "id": "contact_def456",
      "name": "Jordan Rivera"
    },
    "retriedInvoices": [
      { "id": "inv_ghi789", "invoiceNumber": "INV-0042" }
    ],
    "title": "Automatic billing restarted for Rivera Studio",
    "message": "Jordan Rivera saved a new card, so automatic billing is back on. We’ll try INV-0042 once more on the new card. If it doesn’t go through, billing is suspended — and if the card is declined outright, it waits for a new card."
  }
}

Credit note events

A credit note lowers what a client owes. You can apply its credit to one or more of the client's invoices, or refund it. Every credit note event carries the credit note's documentId, documentNumber, clientId, businessId, currency and amount. The top-level id identifies the event and stays the same when a delivery is retried.

EventDescriptionTime field
credit_note_issuedA credit note has been issued. amount is the credit note's totaltimestamp (issue time)
credit_note_appliedCredit from a credit note was applied to an invoice. amount is the amount appliedtimestamp (time the credit was applied)
credit_note_unappliedApplied credit was removed from an invoice, so the invoice owes that amount again. amount is the amount removedtimestamp (time the credit was removed)
credit_note_voidedA credit note has been voided. amount is the credit note's totaltimestamp (void time)

credit_note_applied and credit_note_unapplied also carry applicationId, invoiceId and invoiceNumber. Use applicationId to match an unapply to the application it removes. invoiceNumber can be null.

Sample payloads

credit_note_issued and credit_note_voided share the same shape:

{
  "id": "6f1d2c3b-8a4e-4b7f-9c21-5d0e7a9b3f10",
  "event": "credit_note_issued",
  "timestamp": "2026-11-27T12:00:00.000Z",
  "dedupeKey": "example-credit_note_issued",
  "data": {
    "documentType": "credit-note",
    "documentId": "cn_abc123",
    "documentNumber": "CN-2026-001",
    "clientId": "client_xyz",
    "businessId": "biz_456",
    "currency": "USD",
    "amount": 55.00
  }
}

credit_note_applied and credit_note_unapplied add the invoice and the application:

{
  "id": "9a7e4d21-3c5b-4f8e-8d10-2b6c1e0f4a77",
  "event": "credit_note_applied",
  "timestamp": "2026-11-27T12:05:00.000Z",
  "dedupeKey": "example-credit_note_applied",
  "data": {
    "documentType": "credit-note",
    "documentId": "cn_abc123",
    "documentNumber": "CN-2026-001",
    "clientId": "client_xyz",
    "businessId": "biz_456",
    "currency": "USD",
    "amount": 40.00,
    "applicationId": "cna_def789",
    "invoiceId": "inv_ghi012",
    "invoiceNumber": "INV-2026-014"
  }
}

Automatic charge events

EventDescriptionTime field
auto_charge_skippedA scheduled automatic charge was skippedtimestamp (skip time)

Payout Events (bank deposits)

EventDescriptionTime field
payout_paidA Stripe payout has successfully deposited to your bank account. Payload includes deposit amount, bank last 4, and reconciliation totals (grossTotal, feeTotal, refundTotal, paymentCount) — all four are OMITTED on a deposit that has not been reconciled yet, rather than sent as 0. lastReconciledAt says which case you have: present, the totals beside it were measured, and it is when; absent, nobody has matched this deposit to your payments yet and those totals are unknown rather than zero. It is often absent on this event even for a deposit that reconciles moments later — the notification is queued the instant the deposit is recorded, before it is walked.timestamp
payout_failedA Stripe payout failed to deposit. Payload includes the failure code and human-readable failure message.timestamp

Receipt Events

EventDescriptionTime field
receipt_sentA receipt has been sent to a clienttimestamp
receipt_viewedA client has opened a receipt for the first timetimestamp

Sale Events

A sale is money you took without an invoice first — at a market, a walk-up, or through a connected store. Sale events carry the same fields as invoice events, plus the sale's channel, external ID, tax, and refund details. The buyer is optional, so client and contact are absent on an anonymous sale.

EventDescriptionTime field
sale_completedA sale has been recordedtimestamp
sale_receipt_sentA sale receipt has been sent to the buyertimestamp
sale_viewedThe buyer has opened their sale receipt for the first timetimestamp
sale_refundedA payment on a sale has been refundedtimestamp
sale_voidedA sale has been voidedtimestamp

Payment Schedule Events

EventDescriptionTime field
schedule_deposit_readyA deposit invoice is readytimestamp
schedule_installment_dueAn installment payment is duetimestamp
schedule_installment_paidAn installment payment has been receivedtimestamp
schedule_completedAll payments in a schedule are completetimestamp
payment_plan_invoice_preparedAn invoice was prepared for a payment plantimestamp
payment_plan_reopenedA payment plan was reopened for reviewtimestamp
payment_plan_sending_pausedSending was paused for a payment plantimestamp

Payment plan receipts use their recorded time in timestamp.

Document Intelligence Events

EventDescriptionTime field
document_processedA document has finished AI processingtimestamp
document_needs_reviewA document has actions requiring manual reviewtimestamp
document_failedDocument processing has failedtimestamp
document_action_createdAn AI-proposed action is awaiting approvaltimestamp
document_action_approvedAn AI-proposed action has been approvedtimestamp

Entity Events

EventDescriptionTime field
client_createdA new client has been createdtimestamp
contact_createdA new contact has been createdtimestamp
project_createdA new project has been createdtimestamp
time_entry_createdA new time entry has been loggedtimestamp

Project & Other Events

EventDescriptionTime field
form_submission_completedA form (e.g. a questionnaire) was filled out and submittedtimestamp
milestone_approachingA project milestone is approaching its due datetimestamp
timer_running_reminderA time-tracking timer has been left runningtimestamp

Booking events

EventDescriptionTime field
booking_createdA booking was createdtimestamp (creation time)
booking_rescheduledA booking was moved to a different timetimestamp (reschedule time)
booking_cancelledA booking was cancelledtimestamp (cancellation time)
booking_completedA confirmed booking endedtimestamp (booking end time)
booking_no_showA booking was marked as a no-showtimestamp (time it was marked)

Booking payloads also carry the same action time in data.occurredAt.

Messaging Events

EventDescriptionTime field
client_replyA client has replied to one of your emails or messagestimestamp
email_delivery_failedAn email to a client could not be delivered (it bounced or was rejected)timestamp

Run of Show Events

These track event days (the minute-by-minute schedules behind Run of Show) and their timeline items through the run-up and the day itself.

EventDescriptionTime field
event_day_createdA new event day (schedule) has been createdtimestamp
event_day_publishedAn event day has been published to its read-only client portaltimestamp
event_day_archivedAn event day has been archivedtimestamp
timeline_item_completedAn item was marked done in the day-of Run Day viewtimestamp (recorded time), occurredAt or occurredOn (when known)
timeline_reminder_sentA day-of SMS reminder was sent for a timeline item (when SMS reminders are configured)timestamp

Sample payloads

event_day_created, event_day_published, and event_day_archived share the same event-day shape:

{
  "event": "event_day_published",
  "timestamp": "2026-03-14T15:30:00.000Z",
  "dedupeKey": "example-event_day_published",
  "data": {
    "id": "evd_abc123",
    "name": "Smith Wedding",
    "date": "2026-09-19",
    "status": "published",
    "projectId": "proj_xyz789"
  }
}

timeline_item_completed and timeline_reminder_sent are shaped around the timeline item:

{
  "event": "timeline_item_completed",
  "timestamp": "2026-09-19T21:42:00.000Z",
  "dedupeKey": "example-timeline_item_completed",
  "data": {
    "id": "tli_def456",
    "name": "Reception entrance",
    "eventDayId": "evd_abc123",
    "status": "completed"
  }
}

Lead & lifecycle events

A lead is a client at an early lifecycle stage, so the whole lead-to-customer journey is covered by these events (they replaced the older inquiry events).

EventDescriptionTime field
lead_createdA new lead has been captured (e.g. an inquiry form submission)timestamp
lead_status_changedA lead moved between lifecycle stages (new → contacted → qualified)timestamp
client_wonA lead became an active clienttimestamp
client_lostA lead was marked declined or losttimestamp
follow_up_dueA follow-up you set on a client or lead is duetimestamp

Payload Format

All webhook deliveries include a top-level dedupeKey. Skip a payload whose dedupeKey you already processed. Retries use the same key for that subscription. Two subscriptions to the same event receive different keys.

A delivery looks like this:

{
  "event": "invoice_paid",
  "timestamp": "2026-03-14T15:30:00.000Z",
  "dedupeKey": "example-invoice_paid",
  "data": {
    "documentType": "invoice",
    "documentId": "inv_abc123",
    "documentNumber": "INV-0042",
    "amount": 2500.00,
    "client": {
      "id": "client_xyz",
      "name": "Acme Corp"
    },
    "contact": {
      "id": "contact_123",
      "name": "Jane Smith",
      "email": "jane@acme.com"
    }
  }
}

The data object varies by event type but always includes identifiers for the relevant resources. Payment-related events include additional fields:

{
  "event": "invoice_paid",
  "timestamp": "2026-03-14T15:30:00.000Z",
  "dedupeKey": "example-invoice_paid",
  "data": {
    "documentType": "invoice",
    "documentId": "inv_abc123",
    "documentNumber": "INV-0042",
    "amount": 2500.00,
    "client": {
      "id": "client_xyz",
      "name": "Acme Corp"
    },
    "contact": {
      "id": "contact_123",
      "name": "Jane Smith",
      "email": "jane@acme.com"
    },
    "paymentMethod": "card",
    "last4": "4242",
    "brand": "visa"
  }
}

A payment on a closed invoice (invoice_closed_payment_received) adds the payment that arrived and how the invoice was closed, beside the invoice's own fields:

{
  "event": "invoice_closed_payment_received",
  "timestamp": "2026-09-24T18:05:00.000Z",
  "dedupeKey": "example-invoice_closed_payment_received",
  "data": {
    "documentType": "invoice",
    "documentId": "inv_abc123",
    "documentNumber": "INV-0042",
    "amount": 600.00,
    "status": "void",
    "client": { "id": "client_xyz", "name": "Acme Corp" },
    "closedPayment": {
      "paymentId": "pay_def456",
      "amount": 600.00,
      "closedAs": "void"
    }
  }
}

Retry Policy

Delivery retries

Your endpoint must respond with a 2xx status code within 10 seconds or the delivery is considered failed. Each event is attempted up to 5 times before being marked failed. Ensure your handler returns quickly --- offload heavy processing to a background job.

Auto-disable after repeated failures

If an endpoint returns 5 consecutive failures (non-2xx responses, timeouts, or connection errors), ClientCasa automatically disables it to stop wasting deliveries. A single successful delivery resets the failure counter. Once you have fixed your endpoint, re-enable it from Settings > Webhooks.

Delivery order

Any event delivered through the retry queue can arrive after a later event for the same record. This matters when an automation keeps the latest status or date for a booking, lead, proposal, contract, invoice, payment, payment plan, sale, credit note, payout, document, event day, To-do, or project. For example, booking_rescheduled can arrive after booking_cancelled, and todo_completed can arrive after todo_reopened. Use the time fields below and in the event tables when they give you the action time. If your automation needs the current status, look it up before applying an update.

Inbound webhooks

The events above are outbound — ClientCasa delivering notifications to your endpoints. ClientCasa also receives webhooks from the services that power its money, messaging, and signing features:

  • Stripe — payment and payout reconciliation (payment intent state changes, charges, disputes, payouts).
  • Resend — inbound email replies (routed into your message threads) and delivery feedback (bounces, complaints).
  • Firma — e-signature status updates for contracts and agreements.

These inbound integrations are platform-managed and not user-configurable — there is nothing to set up, and they are listed here only so you understand how data flows into your account.

Project work

Subscribe to todo_created, todo_updated, todo_scheduled, todo_started, todo_completed, todo_reopened, todo_cancelled, todo_restored, todo_merged, plan_template_applied, project_event_date_changed, project_act_recorded and project_stage_changed.

For every event in this list, eventId and deliveryId identify the original event. timestamp and recordedAt give the recorded time. occurredAt gives the actual time when known and can be null. occurredOn gives the date when only the day is known. precision describes which time details are available.

These events also carry the schema version, account and business IDs, project and work IDs, repeat schedule and occurrence IDs, actor category, and changed fields. Private notes, original migration snapshots, share links, and provider credentials are excluded.

Stage announcements come only from the existing worker when category, label identity or project lifecycle changes. Renaming the same label or refreshing processing state emits no new transition. Payloads include the folded label, category, state, lifecycle and evidence. timeline_item_completed remains a compatibility event for placed actionable work, with the same completion-event identity and both placement and To-do IDs.

GET /api/v1/plan-events?event=… samples actual announced safe envelopes under current parent access. Samples preserve retired or merged work identity. The response explicitly reports stopped sampling; it is not an event-history export. Verify the signature and use the delivered dedupeKey to skip repeats.

Placed completion compatibility

timeline_item_completed retains placement id, name, eventDayId and status: 'completed', at the top level and under data. Its id is the placement UUID; eventId and deliveryId retain the original To-do completion event UUID. The new envelope also carries data.todoId, data.placementId, precision, cause and account/business identity. These fields coexist so existing placement mappings keep working. Links in announced plan envelopes are absolute app URLs.

GET /api/v1/plan-events?event=… accepts only the announced plan event enum documented in OpenAPI, including this compatibility event. Samples come from the original sealed event, with current access checks.

On this page