> For the complete documentation index, see [llms.txt](https://docs.licensespring.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.licensespring.com/integrations/subscription-integration.md).

# Subscription Integration

### Webhooks

{% tabs %}
{% tab title="Event-Driven Notifications" %}

* Webhooks are automated messages sent from apps when something happens.
  {% endtab %}

{% tab title="Real-Time Updates" %}

* They allow you to receive real-time updates about events in other services
* Webhook setup for subscription licenses
  {% endtab %}
  {% endtabs %}

### Webhooks Workflow Inside App

{% stepper %}
{% step %}

### Trigger event

When the specified event occurs in the third-party service, it makes an HTTP request to the webhook URL you provided (e.g., client buys a subscription product).
{% endstep %}

{% step %}

### Payload processing

Your server receives this request, parses the payload, and takes any necessary actions.
{% endstep %}
{% endstepper %}

### LicenseSpring Implementation

{% stepper %}
{% step %}

### New subscription

When a user buys a subscription product this action will trigger a webhook event which will send the payload to your server/application and [create an order](/management-api/order/create-order.md) (license of subscription type with a validity period).
{% endstep %}

{% step %}

### Subscription update

When a user successfully extends a subscription this will trigger an event that the subscription charge was successful which will [update the license](/management-api/license/update-license.md) expiration date.
{% endstep %}

{% step %}

### Subscription cancel

When a webhook triggers a subscription cancel event you should [deactivate the license](/license-api/license-activation-and-deactivation/deactivate-license-online-method.md).
{% endstep %}
{% endstepper %}

![](/files/e1c8a5e9eb649120ab12b7592c3074464f94c6ea)

### Integrations for LicenseSpring

Our platform now offers integrations with a variety of third-party services:

* [**FastSpring**](/integrations/fastspring.md)
* [**Stripe**](/integrations/stripe.md)
* [**Salesforce**](/integrations/salesforce.md)
* [**Shopify**](/integrations/shopify.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.licensespring.com/integrations/subscription-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
