Advanced Charge Failure Workflows via GraphQL
When charges fail, Notis uses GraphQL to orchestrate complex Linear actions—linking to customer issues, creating related tasks, and triggering team workflows—all in one automation.
Trigger
Charge Failed Trigger
Triggered when a direct charge fails in Stripe's legacy Charges API
Action
Run Query or Mutation
Wildcard action that executes any graphql query or mutation against the linear api. use this as a fallback when no specific action exists for your use case, or when you need to perform complex operations not covered by other linear actions. supports full graphql capabilities including custom queries, mutations, and advanced filtering.
Why this helps
When a charge fails, you need to coordinate multiple actions in Linear (link to customer, add to sprint, notify team) but Notis doesn't have a simple action for that. You end up doing it manually.
- Automate complex, multi-step Linear workflows that simple actions can't handle
- Create relationships between charge failures and customer profiles automatically
- Perform custom GraphQL mutations specific to your Linear workflow
- Combine multiple actions into one sophisticated automation
Setup
Build it in a few focused steps.
- 1Connect Stripe and Linear to Notis.
- 2Create an automation: 'Charge Failure GraphQL Mutation'.
- 3Prompt: 'When a Stripe charge fails, use GraphQL to: 1) Create a Linear issue with the failure details, 2) Link it to the customer's profile issue if it exists, 3) Add it to the Revenue team's current cycle, 4) Notify the team via a comment. Perform all of this in one mutation.'
- 4Set the trigger to 'Charge Failed Trigger'.
- 5Test with a failed charge and verify all actions complete.
Questions about this workflow
Do I need to write GraphQL?
No—describe what you want to happen in your prompt. Notis translates it to GraphQL and runs the mutation.
What if the GraphQL mutation fails?
Notis will notify you of the failure and log it. You can adjust the prompt and retry.
Can I use custom Linear fields in the mutation?
Yes—mention them in your prompt and Notis will include them in the mutation.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Stripe to Linear. A trigger fires from one place; an action lands in another.
Stripe triggers
Linear actions
Charge Failed Trigger
Triggered when a direct charge fails in Stripe's legacy Charges API
Create linear attachment
Creates a new attachment and associates it with a specific, existing linear issue.
Checkout Session Completed Trigger
Triggered when a checkout session is completed in Stripe
Create a comment
Creates a new comment on a specified linear issue.
Invoice Payment Succeeded Trigger
Triggered when an invoice payment is successful in Stripe
Create linear issue
Creates a new issue in a specified linear project and team, requiring a title and description, and allowing for optional properties like assignee, state, priority, cycle, and due date.
Payment Intent Failed Trigger
Triggered when a payment intent fails in Stripe
Get create issue default params
Fetches a linear team's default issue estimate and state, useful for pre-filling new issue forms.
Product Created Trigger
Triggered when a product is created in Stripe
Create a label
Creates a new label in linear for a specified team, used to categorize and organize issues.
Subscription Added Trigger
Triggered when a subscription is added in Stripe
Delete issue
Archives an existing linear issue by its id, which is linear's standard way of deleting issues; the operation is idempotent.
Subscription Deleted Trigger
Triggered when a subscription is deleted in Stripe
Get all teams
Retrieves all teams from the linear workspace without requiring any parameters.
Download issue attachments
Downloads a specific attachment from a linear issue; the `file name` must include the correct file extension.
Connect any two apps with Notis in the middle.
Not just Stripe and Linear. Any combination from 985+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7 days free trial with 20$ free usage included.
No card. Works with personal or business Linear.
