> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FastSpring Webhook Setup Guide

> Configure FastSpring to deliver events to StackOne.

## Prerequisites

The connector should already be set up, with a Connector Profile and a Linked Account. See [Getting Started](https://docs.stackone.com/connectors/fastspring.md#getting-started) on the FastSpring connector page.

## Retrieve the StackOne Native Webhook URL

The **Native Webhook URL** is generated once a FastSpring account has been linked in StackOne. Each linked account has its own URL.

<ul>
  <li>Open the linked account in StackOne.</li>
  <li>Copy the value from **Native Webhook URL**.</li>
</ul>

## Create a FastSpring webhook

Add a webhook for StackOne in the FastSpring app and point a URL endpoint at the Native Webhook URL so FastSpring posts events to StackOne.

**1. Open the Webhooks page**

Sign in to your [FastSpring account](https://app.fastspring.com).

<ul>
  <li>In the left sidebar, click **Developer Tools**, then select **Webhooks**.</li>
</ul>

![The FastSpring sidebar with Developer Tools expanded and Webhooks highlighted](https://mintcdn.com/stackone-60/yXlVTLcD6Q2JasB6/connectors/fastspring/images/events-developer-tools-webhooks.png?fit=max\&auto=format\&n=yXlVTLcD6Q2JasB6\&q=85\&s=72aa2a7c10329af45a8f5919b9b99ea7)

**2. Open the Configuration tab**

The **Webhooks** page opens on the **Log** tab. Click **Configuration** to manage webhooks.

![The Webhooks page with the Configuration tab highlighted](https://mintcdn.com/stackone-60/yXlVTLcD6Q2JasB6/connectors/fastspring/images/events-configuration-tab.png?fit=max\&auto=format\&n=yXlVTLcD6Q2JasB6\&q=85\&s=9f765e7319c4bda0727caaaca24d222f)

**3. Add a webhook**

Click **Add Webhook** in the top right corner.

<ul>
  <li>Any webhooks that already exist in the store are listed on this tab. Leave them unchanged.</li>
</ul>

![The Configuration tab with the Add Webhook button highlighted](https://mintcdn.com/stackone-60/yXlVTLcD6Q2JasB6/connectors/fastspring/images/events-add-webhook-button.png?fit=max\&auto=format\&n=yXlVTLcD6Q2JasB6\&q=85\&s=cafcc4a40cbb251c2716239ff502d598)

**4. Fill in the webhook details**

In the **Add Webhook** dialog, complete the form and click **Add**:

<ul>
  <li>**Title** — enter a name for the webhook (for example, `StackOne Integration`).</li>
  <li>**Get webhooks from:** — choose **Live and Test Orders**, **Live Orders** or **Test Orders**, depending on which orders StackOne should receive events for.</li>
  <li>Select **Enable webhook expansion** so events carry full nested objects (account, product, subscription) instead of bare IDs.</li>
</ul>

![The Add Webhook dialog with the Title, Get webhooks from and Enable webhook expansion fields highlighted](https://mintcdn.com/stackone-60/yXlVTLcD6Q2JasB6/connectors/fastspring/images/events-add-webhook-dialog.png?fit=max\&auto=format\&n=yXlVTLcD6Q2JasB6\&q=85\&s=ec75021d9355e8a6c2ecb51157efb68b)

**5. Add a URL endpoint**

The new webhook appears on the **Configuration** tab. On that webhook, click **Add URL Endpoint**.

![The new StackOne Integration webhook with its Add URL Endpoint button highlighted](https://mintcdn.com/stackone-60/yXlVTLcD6Q2JasB6/connectors/fastspring/images/events-add-url-endpoint.png?fit=max\&auto=format\&n=yXlVTLcD6Q2JasB6\&q=85\&s=d6372d468724413cf7891fb8380b563e)

**6. Paste the Native Webhook URL**

In the **Add Webhook URL Endpoint** dialog:

<ul>
  <li>**URL** — paste the Native Webhook URL you copied from StackOne.</li>
  <li>**HMAC SHA256 Secret** is optional. StackOne does not need it, so it can be left empty.</li>
</ul>

![The Add Webhook URL Endpoint dialog with the URL and HMAC SHA256 Secret fields highlighted](https://mintcdn.com/stackone-60/7ZQSeSQo1RxZCE9Q/connectors/fastspring/images/events-url-endpoint-form.png?fit=max\&auto=format\&n=7ZQSeSQo1RxZCE9Q\&q=85\&s=1c99bfd5b87df556884fbf0492820aec)

**7. Select the events**

Under **Events**, tick every event you want StackOne to receive. The events StackOne supports are listed in **Available webhook events** below.

![The Events list in the Add Webhook URL Endpoint dialog with events ticked](https://mintcdn.com/stackone-60/7ZQSeSQo1RxZCE9Q/connectors/fastspring/images/events-select-events.png?fit=max\&auto=format\&n=7ZQSeSQo1RxZCE9Q\&q=85\&s=01b06fbb7037eeb73784340a1d61cb40)

**8. Save the endpoint**

Scroll to the bottom of the dialog and click **Add**.

![The bottom of the Add Webhook URL Endpoint dialog with the Add button highlighted](https://mintcdn.com/stackone-60/7ZQSeSQo1RxZCE9Q/connectors/fastspring/images/events-save-endpoint.png?fit=max\&auto=format\&n=7ZQSeSQo1RxZCE9Q\&q=85\&s=d59def9b4305f972df7027ac92bbf272)

**9. Confirm the endpoint**

The endpoint is listed on the **StackOne Integration** webhook with a tag for every selected event. FastSpring starts sending those events to StackOne straight away.

<ul>
  <li>Use **Edit Endpoint** to change the selected events later.</li>
  <li>Deliveries are listed on the **Log** tab of the **Webhooks** page.</li>
</ul>

![The saved URL endpoint on the StackOne Integration webhook with its event tags, the URL hidden](https://mintcdn.com/stackone-60/yXlVTLcD6Q2JasB6/connectors/fastspring/images/events-endpoint-saved.png?fit=max\&auto=format\&n=yXlVTLcD6Q2JasB6\&q=85\&s=4062d1c72ad4618aa3149b4343a76ae9)

## Available webhook events

The following FastSpring events can be enabled. FastSpring only delivers the events ticked on the URL endpoint, and StackOne only forwards the events enabled for this connector.

**1. Order and payment events**

Events related to orders, payments, fulfillment, chargebacks and PayPal disputes.

<ul>
  <li>**Order Completed** (`order.completed`) — Fired when an order is paid and all of its fulfillments have completed (not fired for failed payments, pending approvals or subscription rebills)</li>
  <li>**Order Failed** (`order.failed`) — Fired when a payment attempt at checkout is declined</li>
  <li>**Order Canceled** (`order.canceled`) — Fired when an order is canceled by the merchant or the customer</li>
  <li>**Order Approval Pending** (`order.approval.pending`) — Fired when an order needs manual or purchase-order approval before it can complete</li>
  <li>**Order Payment Pending** (`order.payment.pending`) — Fired when an order is placed with a delayed payment method such as wire transfer or purchase order</li>
  <li>**Chargeback Created** (`chargeback.created`) — Fired when the buyer's bank or card issuer opens a chargeback against an order</li>
  <li>**Chargeback Won** (`chargeback.won`) — Fired when a chargeback is resolved in the merchant's favor</li>
  <li>**PayPal Dispute Action Required** (`paypal_dispute.action_required`) — Fired when a PayPal dispute opened by the buyer needs a response</li>
  <li>**PayPal Dispute Accepted** (`paypal_dispute.accepted`) — Fired when a PayPal dispute is accepted and the buyer is refunded</li>
  <li>**PayPal Dispute Lost** (`paypal_dispute.lost`) — Fired when a PayPal dispute is decided in the buyer's favor</li>
  <li>**Fulfillment Failed** (`fulfillment.failed`) — Fired when one or more fulfillment steps fail after a successful payment</li>
</ul>

**2. Return and payout events**

Events related to returns, refunds and payouts.

<ul>
  <li>**Payout Entry Created** (`payoutEntry.created`) — Fired when a payout entry is generated for a completed order or for a return</li>
  <li>**Return Created** (`return.created`) — Fired when a return or refund is issued on an order, manually or automatically</li>
</ul>

**3. Subscription events**

Events related to individual subscriptions.

<ul>
  <li>**Subscription Activated** (`subscription.activated`) — Fired when a new subscription is created and activated</li>
  <li>**Subscription Charge Completed** (`subscription.charge.completed`) — Fired when a subscription rebill or proration charge succeeds</li>
  <li>**Subscription Charge Failed** (`subscription.charge.failed`) — Fired when a subscription rebill charge fails, for example because the card expired</li>
  <li>**Subscription Updated** (`subscription.updated`) — Fired when a subscription, its account or its payment method is edited</li>
  <li>**Subscription Canceled** (`subscription.canceled`) — Fired when a subscription is canceled and set to deactivate at the end of the current period</li>
  <li>**Subscription Uncanceled** (`subscription.uncanceled`) — Fired when a scheduled subscription cancellation is removed before the next rebill date</li>
  <li>**Subscription Deactivated** (`subscription.deactivated`) — Fired when a subscription deactivates, either immediately or at the end of the billing period after a cancellation</li>
  <li>**Subscription Payment Overdue** (`subscription.payment.overdue`) — Fired when a subscription payment becomes overdue according to the configured grace-period schedule</li>
  <li>**Subscription Payment Reminder** (`subscription.payment.reminder`) — Fired when a rebill payment reminder is due according to the configured reminder schedule</li>
  <li>**Subscription Trial Reminder** (`subscription.trial.reminder`) — Fired when a trial-ending reminder is due according to the configured schedule (never fires if no trial reminder is configured)</li>
  <li>**Subscription Paused** (`subscription.paused`) — Fired when a subscription enters the paused state on its next scheduled rebill date</li>
  <li>**Subscription Resumed** (`subscription.resumed`) — Fired when a paused subscription is resumed manually or reactivates on its configured resume date</li>
</ul>

**4. Co-term subscription group events**

Events related to co-term subscription groups, which bill several subscriptions together.

<ul>
  <li>**Subscription Group Created** (`subscription.group.created`) — Fired when a co-term subscription group is created</li>
  <li>**Subscription Group Prorated** (`subscription.group.prorated`) — Fired when a co-term group's billing is adjusted through proration, for example after a plan change or a new member</li>
  <li>**Subscription Group Updated** (`subscription.group.updated`) — Fired when a co-term subscription group is modified</li>
  <li>**Subscription Group Payment Charge Completed** (`subscription.group.charge.completed`) — Fired when a payment charge for a co-term group succeeds</li>
  <li>**Subscription Group Payment Charge Failed** (`subscription.group.payment.charge.failed`) — Fired when a payment charge for a co-term group fails</li>
  <li>**Subscription Group Payment Overdue** (`subscription.group.payment.overdue`) — Fired when a co-term group's payment becomes overdue</li>
  <li>**Subscription Group Payment Reminder** (`subscription.group.payment.reminder`) — Fired when a renewal payment reminder is due for a co-term group</li>
  <li>**Subscription Group Deactivated** (`subscription.group.deactivated`) — Fired when a co-term subscription group is deactivated</li>
</ul>

**5. Account events**

Events related to buyer accounts.

<ul>
  <li>**Account Created** (`account.created`) — Fired when a new buyer account is created, typically when an order is placed with an email address FastSpring has not seen before</li>
  <li>**Account Updated** (`account.updated`) — Fired when a buyer account's contact, address or preference details change, from a manual edit or a new order</li>
</ul>

**6. Quote events**

Events related to quotes.

<ul>
  <li>**Quote Created** (`quote.created`) — Fired when a new quote is created</li>
  <li>**Quote Updated** (`quote.updated`) — Fired when a quote's status or content changes in the app or through the API</li>
</ul>

**7. Mailing list events**

Events related to mailing list entries captured at checkout.

<ul>
  <li>**Mailing List Entry Updated** (`mailingListEntry.updated`) — Fired when an email address is added to the mailing list or an entry changes status (subscribed, unsubscribed, abandoned)</li>
  <li>**Mailing List Entry Removed** (`mailingListEntry.removed`) — Fired when an email address is removed from the mailing list, for example when the customer unsubscribes</li>
  <li>**Mailing List Entry Abandoned** (`mailingListEntry.abandoned`) — Fired when a customer entered an email address at checkout but did not complete the purchase within 30 minutes</li>
</ul>

**8. Invoice events**

Events related to invoice-based purchases.

<ul>
  <li>**Invoice Reminder Email** (`invoice.reminder.email`) — Fired when a reminder email is sent ahead of the payment due date of an invoice-based purchase</li>
</ul>

## Delivery format

Details of how FastSpring delivers events to StackOne.

**1. Batched payloads**

Each request body is `{"events": [...]}` — a **list of events**. FastSpring may batch several events into one request. StackOne splits the batch and routes each event to its own handler.

**2. Retries**

FastSpring retries a delivery that does not receive a 2xx response. Automatic retries keep the same event ID, while events resent manually from the **Log** tab get a new ID.

**3. Webhook expansion**

With **Enable webhook expansion** selected, nested objects such as the account, product or subscription are included in full. Without it they arrive as IDs. StackOne handles both.

## Verify

Your Connector should now be able to receive and process events. Try triggering an event and you should see an Event appear in the Connector logs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.