Review AI query history when a subscription ends
A cancellation is a useful moment to review related AI usage, latency, and costs while the operational context is fresh.
Trigger
Subscription Deleted Trigger
Triggered when a subscription is deleted in Stripe
Action
Get query history
Tool to retrieve historic api usage logs including latency, token counts, costs, and source ip. use after authenticating to analyze past queries for cost management, performance monitoring, or auditing.
Why this helps
When a customer leaves, teams can miss the chance to review usage patterns and operational costs before context fades.
- Prompt a usage review at the point a subscription ends.
- Bring latency, token counts, costs, and source IP logs into a review.
- Use supplied customer or time-window context to guide investigation.
Setup
Build it in a few focused steps.
- 1Connect Stripe and Apipie AI once in the Notis portal.
- 2Create an automation in Automations, New Automation, and give it a name.
- 3In one instruction, ask Notis to retrieve Apipie AI query history and summarize usage signals for a review, using any customer identifier or time window you provide.
- 4Pick the Stripe Subscription Deleted trigger and choose where run reports go.
- 5Test with one real subscription deletion and review the history summary.
Questions about this workflow
Can query history be matched to a Stripe customer automatically?
The listed history action provides API usage logs, but the event and action do not specify a shared customer identifier. Provide suitable context if you want a focused review.
Does this cancel or restore anything?
No. The Stripe event is the trigger; the Apipie AI action retrieves history for review.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Stripe to Apipie ai. A trigger fires from one place; an action lands in another.
Stripe triggers
Apipie ai actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Delete Vectors
Tool to delete an entire vector collection or specific vectors. use when you need to remove vector data after identifying your target collection or vectors.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Fetch model restrictions
Tool to retrieve a list of country restrictions for models. use when you need to verify allowed deployment countries before final model selection.
Charge Failed Trigger
Triggered when a direct charge fails in Stripe's legacy Charges API
Get query history
Tool to retrieve historic api usage logs including latency, token counts, costs, and source ip. use after authenticating to analyze past queries for cost management, performance monitoring, or auditing.
Checkout Session Completed Trigger
Triggered when a checkout session is completed in Stripe
List AI Models
Tool to fetch a list of available ai models. use when you need up-to-date model listings and want to filter by. model type, subtype, provider, or retrieve specialized lists like voices or restrictions.
Invoice Payment Succeeded Trigger
Triggered when an invoice payment is successful in Stripe
Payment Intent Failed Trigger
Triggered when a payment intent fails in Stripe
Product Created Trigger
Triggered when a product is created in Stripe
Subscription Added Trigger
Triggered when a subscription is added in Stripe
Connect any two apps with Notis in the middle.
Stripe and Apipie ai, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Apipie ai.