# Disputes and cancellations

Every morning, new Stripe disputes (most urgent first, evidence due date) and cancellations (tenure, MRR lost) in one Slack post.

Requires Stripe, through Composio. Requires Slack, through Composio. Runs on a schedule.

## Install

No one has run this against real Stripe and Slack accounts through Composio yet. Its eval cases use stand-ins.

```sh
npx @parcha/agentrun template install github:Parcha-ai/agentrun-templates/templates/disputes-and-cancellations@9ed9ff98e3130d3dce065743e8c60bb13e84f646 --trust
```

Or open `<your AgentRun address>/#/templates/install?src=github%3AParcha-ai%2Fagentrun-templates%2Ftemplates%2Fdisputes-and-cancellations%409ed9ff98e3130d3dce065743e8c60bb13e84f646`. Pinned to commit 9ed9ff98e3130d3dce065743e8c60bb13e84f646.

### Install with your agent

Copy this prompt into your coding agent:

```text
Help me install the Disputes and cancellations template on my existing AgentRun.

Pinned template source: github:Parcha-ai/agentrun-templates/templates/disputes-and-cancellations@9ed9ff98e3130d3dce065743e8c60bb13e84f646
Read the template and its instructions: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/disputes-and-cancellations

Ask for my AgentRun address or local installation directory if you do not already know it. Confirm which instance to use before making changes.
Read https://agentrun.ai/SKILL.md and inspect the installed version's template install help. Use the installation workflow that version supports.
Review this template's setup, instructions and requested tools with me, then install the pinned version on that instance with the settings and permissions I approve. Do not start a second instance or redeploy my existing one.
If this version cannot install templates, explain what is missing and the supported next step. Verify the result and tell me how to run the installed agent.
```

## What it does

Once a day it posts the Stripe disputes and cancelled subscriptions that are new since its last run to one Slack channel. Each dispute shows the amount, the reason, its status and the day evidence is due with the days left, the most urgent first. Each cancellation shows who left, how long they were a customer, the monthly revenue lost and their last payment. Nothing is reported twice, and a quiet day posts nothing unless you ask it to. It only reads Stripe: it never answers a dispute, refunds or contacts a customer.

- Skill `stripe-losses`: Report the Stripe disputes and cancelled subscriptions that are new since the last run, in one Slack post. Disputes come most urgent first, with amount, reason, status and the evidence due date with days left; cancellations with who, tenure, monthly revenue lost and last payment. Reads Stripe only and never reports the same item twice across runs. Use for the daily schedule and for "what disputes and churn came in this week".

## What starts it

- On a schedule: every day at 08:00 (UTC), unless you pick another time when you install it.
- By hand, any time: from the console, the API or the CLI.

## Inputs

Each run takes a plain message (`content`).

### Setup, filled in once at install

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `channel` | string | yes | Where the report is posted, by id: a channel (C0123ABCD: in Slack, the channel's details, at the bottom) or your direct-message channel with the app (D0123ABCD). The only place it posts. |
| `first_run_days` | integer, 1 to 30 | no | How far back the first run looks, in days, 1 to 30: 7 unless you set it. Later runs look back to the run before. Default: `7`. |
| `post_when_empty` | boolean | no | Post a short "nothing new" line on a day with no new dispute or cancellation. Off: a quiet day posts nothing. Default: `false`. |
| `cron` | string, cron | no | When it runs, as a cron line (minute hour day-of-month month day-of-week): every day at 08:00 unless you set it. Default: `0 8 * * *`. |
| `timezone` | string, timezone | no | Your IANA time zone (Europe/Madrid, America/New\_York): the cron line and every date in the post are read in it. UTC unless you set it. Default: `UTC`. |

## What it needs

- Harness: pi, claude-agent, codex
- Model: balanced tier, medium effort
- Tools: read
- Composio Stripe tools: STRIPE_LIST_DISPUTES, STRIPE_RETRIEVE_CHARGE, STRIPE_RETRIEVE_CUSTOMER, STRIPE_SEARCH_SUBSCRIPTIONS, STRIPE_LIST_INVOICES, STRIPE_LIST_PRODUCTS. Lists new disputes and cancelled subscriptions, then reads the charge, customer, product and last paid invoice behind each one. It only reads: it can't answer a dispute, refund, or change a subscription or a customer.
- Composio Slack tools: SLACK_SEND_MESSAGE. Posts the day's disputes and cancellations to the one Slack channel you set, and nowhere else.
- Computer: Wherever your AgentRun puts a new agent
- Keys: A model key
- Learning: on

## Sample output

No sample output ships with this template yet.

## Tested

Passes 7 of 7 eval cases on pi, 7 of 7 on Claude Code and 7 of 7 on Codex.

7 eval cases: cancellations-mrr, disputes-most-urgent, injection-in-dispute, late-cancellation, no-repeats, quiet-day, yen-amounts.

## Source

- Package: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/disputes-and-cancellations
- Publisher: Parcha-ai
- Author: Parcha Labs
- Version: 0.1.0
- License: Apache-2.0
- Category: Finance
- Page: https://marketplace.agentrun.ai/templates/disputes-and-cancellations/
