Subscriptions
In this guide, you'll learn how to get real-time alerts when a subscription is created or updated within your merchant's accounts.
Use Case Overview
If you're building a CRM or billing and invoicing software for merchants, you need to know when a new subscription has been created or updated in the third-party software the merchant uses.
With Alloy, you can receive real-time alerts allowing your app to react to changes in subscription data within a merchant's account.
Receiving Subscription Alerts
Let's build a simple workflow that notifies your server when a subscription is created or updated within a merchant's account.
Navigate to the Alloy workflow builder. Click New Integration and search for Stripe.
On the Workflows screen, click New Workflow.
Next, select a trigger for the workflow. Search for Stripe Trigger in the list of connectors. Drag the Stripe Trigger into the Workflow UI and select the Trigger workflow when new subscription action. Add this action to your workflow.
Next, use the Stream Data connector to stream the result from the Stripe trigger connector to your Webhook server.
Your completed workflow should look like this:
Wrapping Up
Alloy provides integrations with payment systems like Stripe, Square, and Recharge, allowing you to gain real-time access to events like Subscriptions created or updated.