Sending user events to Sprouted from your own site or app is easy and powerful using its API. But did you know you can even hook up Stripe to Sprouted?
In order to associate Stripe events to user data in Sprouted you need to tell Sprouted about the customer's Stripe ID. You can pass this ID to Sprouted when you create or update a customer.
Customer update example:
curl --request PUT \
--url https://app.sprouted.app/api/v1/customers/c-1001 \
--header 'authorization: Bearer sk_live_key' \
--header 'content-type: application/json' \
Stripe's customer ID
cus_PvVkgGi30r3446A is now associated with customer
Create a new Zap based on Stripe:
All you need is a Zapier account and access to your Stripe API key.
Choose the event you're interested in:
In this example we chose the
Invoice.Payment Failed event.
Choose Zapier's built-in Webhooks app, and select the "Custom Request" action event:
Fill in the Sprouted Customer Events API endpoint. Note how Stripe's customer ID is used to reference the customer. Zapier enables you to easily insert such variables using its variables picker user interface.
The JSON body is documented in Sprouted's API docs.
Don't forget to set the
Now when a payment failure occurs, you're immediately informed inside Sprouted:
You can email the user to offer assistance straight from the event details.
Comments or kudos? .