reconcile-payout

reconcile-payout is a command for Claude Code from WYRE-AI/msp-claude-plugins. It costs 17 tokens per session (1,249 once invoked), scanned A, original, Apache-2.0.

A read-only command for checking one Alternative Payments payout, a payment-provider disbursement, against the transactions, invoices, and customers connected to it.

In plain words
What is it for?
Use it to retrieve a payout, list its settled transactions, add their amounts, confirm the total, and trace each transaction to an invoice and customer.
Why use it?
It helps find differences between the payout amount and the transactions it contains, without changing payment data.

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 retrieve a payout, list its settled transactions, add their amounts, confirm the total, and trace each transaction to an invoice and customer.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wyre-ai/msp-claude-plugins/reconcile-payout
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 reconcile-payout

README.md
[![agentmods](https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/reconcile-payout/github.svg)](https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/reconcile-payout)
Your own site
<a href="https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/reconcile-payout"><img src="https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/reconcile-payout/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 reconcile-payout

Your own site · 80×15
<a href="https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/reconcile-payout"><img src="https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/reconcile-payout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 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,249 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.00017 $0.01249
Opus 5 $0.00009 $0.00624
Sonnet 5 $0.00003 $0.00250
Haiku 4.5 $0.00002 $0.00125

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

Security

Grade A, and why

reconcile-payout 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 10d 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/reconcile-payout.md · 181 lines

How it starts

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

Reconcile Payout

Reconcile a single Alternative Payments payout: retrieve the payout, list every transaction it settled, sum those transactions, confirm the total matches the payout amount, and trace each transaction back to its invoice and customer. This command is entirely read-only.

Prerequisites

  • Valid Alternative Payments OAuth2 credentials configured (AP_CLIENT_ID, AP_CLIENT_SECRET)
  • Environment selected (AP_ENVIRONMENT = production or demo)
  • Scope payments:read

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. Retrieve the payout

    curl -s "${BASE}/payouts/${PAYOUT_ID}" \
      -H "Authorization: Bearer ${TOKEN}"
    
  3. List the payout's transactions (cursor-paginated)

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

    Loop on has_more / next_cursor, passing cursor=<next_cursor> per page.

  4. Sum and compare — total the transaction amount values and compare to the payout's amount. Agreement within rounding = reconciled; otherwise flag a discrepancy.

  5. Trace each transaction — for each transaction, resolve its invoice_id and customer_id so the deposit can be tied to specific receivables. Optionally fetch the customer name:

    curl -s "${BASE}/customers/${CUSTOMER_ID}" \
      -H "Authorization: Bearer ${TOKEN}"
    
  6. Format and return the reconciliation report

Parameters

Parameter Type Required Default Description
payout_id string Yes - Payout id to reconcile
show_transactions boolean No true Include the line-by-line list

Read the full file on GitHub · 181 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. 10d ago First seen · 181 lines · 17 tokens per session scan A 8df9663881c1

Subscribe to this mod's changes

reconcile-payout is a command published in the GitHub repository WYRE-AI/msp-claude-plugins (45 stars, last pushed 7d ago), licensed Apache-2.0. It adds 17 tokens to every session and 1,249 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.