Subscribe Pro offers a feature called Webhook Endpoints that enables to you to provide Endpoint URLs that can be notified of the following, specific subscription customer activities. This feature is useful if you want to be notified of specific subscription customer activity at a particular URL.
- Customer subscribed
- Customer cancelled
- Payment profile created
- Payment profile updated
- Payment profile redacted
- Subscription created
- Subscription updated
- Subscription status change
- Subscription cancelled
- Subscription trial converted
- Subscription email
As an example, below are the steps to follow for creating a webhook endpoint to be notified of subscription cancellations, using RequestBin for demonstration purposes to obtain a test URL that will collect requests made to it.
Go to RequestBin and select the button "Create a RequestBin"
Copy the URLs in the URL Address Bar and the "Bin URL" field for later use when creating the Subscribe Pro Webhook Endpoint
Access the Subscribe Pro Webhook Endpoints feature via the "System" section > "Webhook Endpoints".
Create a new Webhook Endpoint by selecting the "+New" button
Paste the RequestBin URL that you copied from Step #2 in the "Endpoint URL" field
Un-check the boxes for "Subscribe to All Event Types" and all of the other event types with the exception of the "subscription.cancelled" event type, followed by selecting the "Save" button
You'll receive confirmation that a new endpoint was created and will now need to enable it by selecting the "Enable" button.
You'll receive confirmation that the endpoint was enabled and can test the connection to your new endpoint by selecting the "Test Connection - Ping Endpoint" button.
Now that the new endpoint is active, you can test it by changing a Subscribe Pro subscription with an "Active" status to a "Cancelled" status and then going to back to the RequestBin page that provided you with the "Bin URL" from Step #2 and refreshing it. You'll see the "subscription.cancelled" event type that was generated, along with the customer details associated with that particular subscription.