---
title: "Webhooks: receive SaaSify events"
---

Have SaaSify call your own HTTPS endpoint when something happens — a subscription activates, a private offer is accepted, a usage post fails — instead of polling for it.

:::note[Before you start]
- **Role:** Publisher Admin, to configure notifications.
- **You need:** a publicly reachable HTTPS endpoint that accepts `POST` requests and returns quickly.
:::

:::warning[Read this first]
SaaSify's outbound webhook is a **configurable notification channel today, not yet a hardened webhook contract.** In particular, requests are **unsigned**, there is **no automatic retry**, and recovery from a failed delivery is a **manual Reprocess**. See [Current limits](#current-limits) before you build anything that depends on it. This page describes how to set it up as it works today.
:::

## How it works

SaaSify can notify you on several channels when a tenant event fires. The channels are:

| Channel | What it does |
|---|---|
| Email | Sends an email. |
| Slack | Posts to a Slack channel. |
| Teams | Posts to a Microsoft Teams channel. |
| Webhook (custom endpoint) | `POST`s a JSON body to a URL you provide. |

For a code integration, use the **Webhook** channel (called "CustomEndpoint" internally): SaaSify `POST`s to your URL when a subscribed event fires.

## Set up a custom endpoint

:::steps
### Go to the notification center

Open **Settings → Notifications → Notification**. The table has one row per event and provider (AWS, Microsoft, Google Cloud).

### Choose the event and the Webhook channel

Find the event you want to receive, select the **Webhook** channel for it, and paste your endpoint URL. The URL must be `http(s)` with no embedded user info.

### Optionally scope it

You can restrict a notification to a specific **Offer** and **Plan**, so you only receive events for the products you care about.

### Save and test

Save the row, then trigger the event (for example, a test purchase on the demo environment) and confirm your endpoint receives the `POST`.
:::

:::note
A channel only appears for an event if your tenant has an active template for that event and channel. If the Webhook channel isn't available for an event you need, ask SaaSify to enable it for your tenant.
:::

## What your endpoint receives

SaaSify sends:

- An HTTP `POST` with `Content-Type: application/json; charset=utf-8`.
- A JSON body rendered from a **per-tenant template** for that event. Because the payload is a template, the exact fields depend on your tenant and the event; subscription events generally include an `event` value (such as `PurchaseCompleted`, `CancellationPending` or `CancellationCompleted`), the `provider`, a SaaSify subscription ID, and `product`, `offer` and `customer` blocks, plus a cloud-specific block.

:::warning[The body is double-encoded]
The current payload is double JSON-encoded — the body is a JSON string that itself contains the JSON object. Your handler must decode it twice to get the object. This is one of the things that will change when the webhook contract is finalized.
:::

Your endpoint should respond with:

```json
{ "Status": "Success", "Message": "..." }
```

SaaSify treats `Status: "Success"` (or `"QueuedForProcessing"`) as acknowledged. Return promptly: the delivery times out at about 100 seconds.


## Which events you can receive

Events are grouped into Subscription, Lead, Co-sell, Deals / Offer set, Funding, Tenant and Application / User categories. Examples:

- **Subscriptions:** `ActivationSuccess`, `PendingActivationSuccess`, `RenewSuccess`, `UnsubscribeSuccess`, `PurchaseRegisteredByCustomer`, `AutoRenewModified`, `UsagePostingFailed`.
- **Private offers / deals:** `PrivateOfferAcceptedByTheCustomer`, `PrivateOfferExpired`.
- **Co-sell:** `CoSellPartnerReferralSubmitted`.
- **Funding / CRM:** `CPPONewResaleAuthorizationReceived`, `PushToCRMFailure`.

The full set is per tenant; the available rows in **Settings → Notifications** are the authoritative list for your tenant.

## Current limits {#current-limits}

Build defensively — the outbound webhook does not yet give you these guarantees:

- **No signature.** Requests are not signed and carry no secret or signature header. The endpoint URL is the only thing that proves the call came from SaaSify, so keep it secret and, if you can, restrict your endpoint to SaaSify's egress.
- **No automatic retry.** A failed delivery is not retried automatically. A delivery can also, in some cases, be logged as a success even when your endpoint errored.
- **No event ID or idempotency key, and no ordering guarantee.** Make your handler tolerant of missing or duplicate deliveries.
- **Manual recovery.** To re-send a delivery, use **Reprocess** from the subscription's activity log.

:::tip
Because deliveries can be missed, don't treat the webhook as your only source of truth. Reconcile periodically by reading the [Subscriptions API](/developers/api-reference), and use the webhook as a low-latency nudge rather than a guaranteed log.
:::


## Related

::::cards
:::card[Rate limits and best practices]{href="/developers/rate-limits"}
Reconcile instead of relying on delivery.
:::
:::card[Fulfillment]{href="/developers/fulfillment"}
Use events to drive provisioning.
:::
:::card[Notifications]{href="/notifications/notification-center"}
The notification center in the product.
:::
::::
