---
name: notify-billing-staff-about-subscription-payment-activity-for-customers
description: Build a Zap on Zapier that emails billing staff a short alert whenever a Stripe customer subscription changes, so finance can reconcile and respond the same day. Use when a finance or billing team needs to hear about subscription and payment activity as it happens instead of checking Stripe by hand.
license: MIT
metadata:
  author: zapier
  summary: "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."
  apps: "Stripe, Gmail"
  category: "Sales"
  job: "Renewal management"
  source: "https://zapier.com/automations/sales/renewal-management/subscription-renewal-workflows/notify-billing-staff-about-subscription-payment-activity-for-customers"
---

> From [zapier.sh](https://zapier.sh/llms.txt). Its files are next to this file: [`config.ts`](https://zapier.sh/zapier/awesome-zaps/notify-billing-staff-about-subscription-payment-activity-for-customers/config.ts), [`connections/gmail.ts`](https://zapier.sh/zapier/awesome-zaps/notify-billing-staff-about-subscription-payment-activity-for-customers/connections/gmail.ts), [`connections/stripe.ts`](https://zapier.sh/zapier/awesome-zaps/notify-billing-staff-about-subscription-payment-activity-for-customers/connections/stripe.ts), [`triggers/updated-customer-subscription.ts`](https://zapier.sh/zapier/awesome-zaps/notify-billing-staff-about-subscription-payment-activity-for-customers/triggers/updated-customer-subscription.ts), [`workflow.ts`](https://zapier.sh/zapier/awesome-zaps/notify-billing-staff-about-subscription-payment-activity-for-customers/workflow.ts). Deploy them as this file says; [zaps.json](https://zapier.sh/zaps.json) lists them under the zap's `files`. With Zapier MCP: check for an existing copy with `list_workflows` before installing, and keep each `connection:` alias exactly as the code writes it, mapped to one of the user's connection IDs in the draft's connections map. Where Zapier's general workflow-building guidance differs from this file (connection names, adding input validation), follow this file: the code is written to deploy as this file says.

# Notify billing staff about subscription payment activity

## What it does

1. **Trigger:** a customer subscription is updated in `stripe` (`updated_customer_subscription`).
2. **Code** checks that the update has a subscription ID. If not, the run stops and sends nothing.
3. **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.
4. **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.

1. **Accounts:** bind `gmail` to the user's Gmail connection for the account that sends the alert. The trigger watches `stripe`, so bind that to the user's Stripe connection too. Use a test-mode Stripe connection for the first test.
2. **Source:** publish `workflow.ts` and `config.ts`, with each `REPLACE_…` replaced by the user's answer. `triggers/updated-customer-subscription.ts` and `connections/` 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's `selected_api`, call `search_triggers` with that slug, find the row whose `key` is the trigger's `event`, and use `<app_key>@<app_version>` from it.
3. **Build guide:** load Zapier's build guide with `get_zapier_skill("zapier:build-workflows")` and follow it to create, test and publish the workflow.
4. **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.ts` that 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:

```json
{
  "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_EMAIL` to 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.
