Notify billing staff about subscription payment activity
Whenever a customer's subscription changes in Stripe, billing staff get an email with the customer, the new status and the latest invoice, so they can act the same day.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/notify-billing-staff-about-subscription-payment-activity-for-customers/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Sales · Renewal management
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/notify-billing-staff-about-subscription-payment-activity-for-customers
Set it up with the CLI
- Add it. Copies the folder into
zaps/notify-billing-staff-about-subscription-payment-activity-for-customers/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/notify-billing-staff-about-subscription-payment-activity-for-customers - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy notify-billing-staff-about-subscription-payment-activity-for-customers - Check it. Its recent runs, with status and errors.
npx zap-pack logs notify-billing-staff-about-subscription-payment-activity-for-customers
zaps/notify-billing-staff-about-subscription-payment-activity-for-customers/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 1 to fill in
- connections/gmail.tsThe
gmailaccount it uses - connections/stripe.tsThe
stripeaccount it uses - triggers/updated-customer-subscription.tsWhat starts it:
stripeupdated_customer_subscription - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a customer subscription is updated in
stripe(updated_customer_subscription). - Code checks that the update has a subscription ID. If not, the run stops and sends nothing.
- Code builds a one-line subject (customer name and subscription status) and a short body: the subscription ID, status, latest invoice, current period end, and a link to the subscription record.
- Gmail sends that email to the billing inbox.
The Zap only sends email. It never changes the subscription or the invoice.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
REPLACE_BILLING_EMAIL |
The billing inbox that receives the alert. It must be the address of the connected Gmail account. |
Also review the defaults with them: SUBSCRIPTION_LINK_BASE is the Stripe dashboard link to a subscription record. Change it if the team uses another page.
Questions to settle before building:
- Which inbox should receive the billing alert? It has to be the connected Gmail address.
- Which Stripe account should the trigger watch? Use a test-mode connection for the first test.
- Should the alert skip some updates, such as ones with no status change or no invoice? The trigger payload does not say what changed, so the Zap sends every update unless a filter is added.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/notify-billing-staff-about-subscription-payment-activity-for-customers, replace each REPLACE_… value as this file says, then run npx zap-pack deploy notify-billing-staff-about-subscription-payment-activity-for-customers, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
gmailto the user's Gmail connection for the account that sends the alert. The trigger watchesstripe, so bind that to the user's Stripe connection too. Use a test-mode Stripe connection for the first test. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/updated-customer-subscription.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections and sample the trigger before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test with a test-mode Stripe connection and a subscription that exists in that account:
{
"id": "sub_test_123",
"status": "past_due",
"latest_invoice": "in_test_456",
"current_period_end": "2026-11-29T00:00:00Z",
"customer": {
"id": "cus_test_789",
"name": "Test Customer",
"email": "customer@example.com"
}
}
Check that one email reached the billing inbox with the subject Test Customer: subscription past_due, that the body lists the subscription and invoice, and that the link opens the matching Stripe record. If run-status tools aren't available, check the billing inbox in Gmail directly. Then publish, confirm the trigger is active, and do the real thing once. The user deletes the test email and cancels the test subscription if it was not real data; the agent doesn't delete either.
Notes
- The email goes to one address. For more than one recipient, set
BILLING_EMAILto a Gmail group address. - Each subscription update sends one email, so a busy account sends many. Add a filter if the inbox fills up.
- The subject and body show the subscription ID and invoice ID, not the amount. To show the amount, look up the invoice in Stripe first, then format it with Formatter by Zapier or plain code.
- For urgent failed payments, add a Slack message in parallel so the on-call person sees them right away.
- Never commit a real billing email address or a Stripe connection ID to the workflow source.