# Billing Agent

> The Billing Agent finds the charge, issues the refund, cancels the subscription or applies the code, inside the limits you set.

Canonical: https://www.decimal.app/agents/billing-agent · Last reviewed: 2026-09-23

## What happens before money moves.

- **Finds the payment**: Matches the customer by email and the charge by amount and date.
- **Asks when it’s unclear**: If two payments could match, it asks which.
- **Reads your policy**: Your refund policy decides what’s allowed.
- **Checks who’s asking**: The requester has to be the payer.
- **Proposes the action**: A refund, a cancellation, a promo code, or all three.
- **Replies when it’s done**: The customer hears back after Stripe confirms.

## What it can do in Stripe.

- **Look anything up**: Customers, charges, subscriptions and invoices. Read only.
- **Refund**: Full or partial.
- **Cancel a subscription**: At period end or right away.
- **Void open invoices**: Clears unpaid invoices on cancellation.
- **Apply a promo code**: Checks the code is active and meant for this customer.
- **Several at once**: Refund, cancel and discount on one ticket.

## Off. Recommend. Issue. You set the pace.

- **Three modes**: Look up only, recommend for approval, or issue.
- **A ceiling per refund**: Above your maximum, a person decides.
- **A ceiling per day**: After the daily limit, it only recommends.
- **Admins only, if you like**: Choose who can approve and who can see payments.
- **Your cancellation rules**: End access now or at period end. Void invoices or not.
- **The key decides**: It can only do what your restricted Stripe key allows.

## Money moves once, to the right person.

- **Requester must be the payer**: On an email mismatch, it won’t act alone.
- **No duplicate refunds**: Every write is idempotent.
- **No reply before the action**: No “refund on its way” until it is.
- **No stacked discounts**: It won’t apply a code over an existing discount.
- **Edits are caught**: Change the amount and you’re warned the reply says otherwise.
- **Stale approvals are refused**: If the recommendation changed, you review it again.

## Every action, accounted for.

- **One queue to approve from**: Every pending action, with amount and reason.
- **An audit trail**: Each action, with who approved it.
- **Straight to Stripe**: Every payment on the ticket links to Stripe.
- **Done, waiting, declined**: Refunds, cancellations and codes by outcome.
- **Limits in view**: Your daily peak against the cap.
- **Beyond Stripe**: Wrap your own billing API as a custom tool.

## FAQ

### Can it issue a refund on its own?

Only if you switch it to Issue, and only below the amount and daily limits you set. Everything else waits for a person.

### What stops someone asking for another account’s refund?

The agent matches the requester to the paying account by email. On a mismatch it will not act on its own.

### What does it need from Stripe?

A restricted key. Read access is enough for lookups. Refunds, cancellations and promo codes each need their own write permission.

### Can it refund the same charge twice?

No. Writes are idempotent, and a retry is only allowed with the original amount.

### We don’t use Stripe. Can we still use it?

Yes. Define a custom tool against your billing system’s API and the agent can look things up there.

---

Decimal · Book a demo: https://cal.com/decimal-demo/30m · Markdown index: https://www.decimal.app/llms.txt
