list-overdue-invoices

list-overdue-invoices is a command for Claude Code from WYRE-AI/msp-claude-plugins. It costs 15 tokens per session (1,305 once invoked), scanned A, original, Apache-2.0.

A command that lists open and overdue invoices in Alternative Payments, a payment service, and can create hosted payment links. It does not charge customers.

In plain words
What is it for?
Use it to group invoices by how late they are, filter by customer, and optionally generate a payment link for each invoice.
Why use it?
It gives you a current view of late invoices and helps you send customers a page where they can choose to pay.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the alternative-payments plugin — 3 skills, 2 commands, 1 agent shipped together

Good fit Use it to group invoices by how late they are, filter by customer, and optionally generate a payment link for each invoice.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wyre-ai/msp-claude-plugins/list-overdue-invoices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/WYRE-AI/msp-claude-plugins

Made for: Claude Code.

Or install alternative-payments, the plugin that ships this one along with the rest of its 3 skills, 2 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for list-overdue-invoices

README.md
[![agentmods](https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/list-overdue-invoices/github.svg)](https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/list-overdue-invoices)
Your own site
<a href="https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/list-overdue-invoices"><img src="https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/list-overdue-invoices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for list-overdue-invoices

Your own site · 80×15
<a href="https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/list-overdue-invoices"><img src="https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/list-overdue-invoices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,305 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.01305
Opus 5 $0.00008 $0.00652
Sonnet 5 $0.00003 $0.00261
Haiku 4.5 $0.00002 $0.00130

Measured 11d ago against content hash 97021e6e7fa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

list-overdue-invoices scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

TOKEN=$(curl -s -X POST "${BASE}/oauth/token" \
msp-claude-plugins/alternative-payments/alternative-payments/commands/list-overdue-invoices.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

List Overdue Invoices

List open and overdue invoices in Alternative Payments, segment them by how far past due they are, and optionally generate a hosted payment link for each so the customer can choose to pay. This command never charges a customer — it only reads invoices and, when asked, produces hosted payment-link URLs.

Prerequisites

  • Valid Alternative Payments OAuth2 credentials configured (AP_CLIENT_ID, AP_CLIENT_SECRET)
  • Environment selected (AP_ENVIRONMENT = production or demo)
  • Scope payments:read (plus payments:write only if with_links is used)

Steps

  1. Authenticate with Alternative Payments

    BASE=https://public-api.alternativepayments.io
    TOKEN=$(curl -s -X POST "${BASE}/oauth/token" \
      -u "${AP_CLIENT_ID}:${AP_CLIENT_SECRET}" \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -d "grant_type=client_credentials" \
      | jq -r '.access_token')
    
  2. List invoices (cursor-paginated)

    curl -s "${BASE}/invoices?limit=100" \
      -H "Authorization: Bearer ${TOKEN}"
    

    Loop on has_more / next_cursor, passing after=<cursor> for each page. If customer_id is supplied, filter the results to that customer.

  3. Separate overdue from open

    • Keep invoices with status of overdue (and open when include_open is true)
    • Compute days past due_date for each overdue invoice
  4. Segment by aging — current, 1–30, 31–60, 61–90, 90+ days past due

  5. (Optional) Generate hosted payment links when with_links is true

    curl -s "${BASE}/invoices/${INVOICE_ID}/payment-link" \
      -H "Authorization: Bearer ${TOKEN}"
    

    This returns a URL the customer visits to pay. No money moves until the customer completes payment.

  6. Format and return the summary

Parameters

Parameter Type Required Default Description
customer_id string No - Limit to one customer
include_open boolean No false Include not-yet-overdue invoices
with_links boolean No false Generate a hosted payment link per invoice

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 167 lines · 15 tokens per session scan A 97021e6e7fa9

Subscribe to this mod's changes

list-overdue-invoices is a command published in the GitHub repository WYRE-AI/msp-claude-plugins (45 stars, last pushed 8d ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,305 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.