api-patterns
3CX's native PBX MCP server: the per-PBX endpoint shape (every PBX is its own FQDN and its own OAuth authorization server — there is no shared mcp.3cx.com),…
Alternative Payments invoices and hosted payment requests: invoice status and line-item fields, hosted payment links and signed PDF links, archiving, and payment-request creation and retrieval. Hosted links let the customer choose to pay; the integration never moves money on the
$ npx -y skills add wyre-technology/msp-claude-plugins --skill invoicing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/invoicingContext preview
The summary Claude sees to decide when to auto-load this skill.
Alternative Payments invoices and hosted payment requests: invoice status and line-item fields, hosted payment links and signed PDF links, archiving, and payment-request creation and retrieval. Hosted links let the customer choose to pay; the integration never moves money on the
name: "Alternative Payments Invoicing" description: > Alternative Payments invoices and hosted payment requests: invoice status and line-item fields, hosted payment links and signed PDF links, archiving, and payment-request creation and retrieval. Hosted links let the customer choose to pay; the integration never moves money on the customer's behalf. when_to_use: >- When creating, listing, retrieving, or archiving Alternative Payments invoices, or generating hosted payment links and payment requests. Use when: alternative payments invoice, create invoice, list invoices, archive invoice, payment link, payment request, hosted payment link, invoice pdf, line items, or alternativepayments invoice.
Invoices are the billing records in Alternative Payments. Each invoice belongs to a customer, carries one or more line items, and has a due date. Once an invoice exists you can fetch a **hosted payment link** (a URL the customer visits to pay) and a **PDF link** (a signed download of the invoice document).
Separately, **payment requests** are standalone hosted payment links that are not tied to a stored invoice — useful for ad-hoc charges and follow-ups.
The key posture: hosted payment links and payment requests let the **customer** choose to pay. Generating a link does **not** charge a card or move money — it simply produces a URL. This integration never executes a direct charge. See [Alternative Payments API Patterns](../api-patterns/SKILL.md) for why `POST /payments` (direct charge) is excluded by design.
artefacts with no GL coding, tax treatment, or aging; use `xero-invoices` or `qbo-invoices`.
`alternative-payments-payments`.
design; a hosted link is the only collection mechanism, and the reasoning is in `alternative-payments-api-patterns`.
| Status | Description | Payable | |--------|-------------|---------| | `open` | Issued and awaiting payment | Yes | | `paid` | Fully paid | No | | `overdue` | Past `due_date` and still unpaid | Yes | | `archived` | Removed from default lists (destructive) | No |
Archiving uses `DELETE /invoices/{id}` and is destructive — confirm before running.
| Mechanism | What it does | Money movement | |-----------|--------------|----------------| | Payment link (`GET /invoices/{id}/payment-link`) | URL for an existing invoice | Customer pays — not the integration | | Payment request (`POST /payments/request`) | Standalone hosted link | Customer pays — not the integration | | Direct charge (`POST /payments`) | Charges a card/bank | **Not exposed** |
| Field | Type | Required | Description | |-------|------|----------|-------------| | `id` | string | System | Auto-generated unique identifier | | `customer_id` | string | Yes | Customer the invoice belongs to | | `currency` | string | Yes | ISO currency code (e.g. `USD`) | | `due_date` | string | Yes | Payment due date (`YYYY-MM-DD`) | | `line_items` | array | Yes | One or more line items (see below) | | `reference` | string | No | Reference text (PO number, billing period) | | `status` | string | Read-only | `open`, `paid`, `overdue`, `archived` | | `amount_due` | number | Read-only | Remaining unpaid amount | | `created_at` | datetime | Read-only | Creation timestamp |
| Field | Type | Required | Description | |-------|------|----------|-------------| | `description` | string | Yes | Line item description | | `quantity` | number | Yes | Quantity | | `unit_amount` | number | Yes | Price per unit |
| Field | Type | Required | Description | |-------|------|----------|-------------| | `amount` | number | Yes | Amount to request | | `currency` | string | Yes | ISO currency code (e.g. `USD`) | | `redirect_url` | string | Yes | Where to send the customer after paying | | `reference_id` | string | No | Your reference for reconciliation |
All requests carry a bearer token (`Authorization: Bearer <token>`). See [Alternative Payments API Patterns](../api-patterns/SKILL.md) for the OAuth2 token flow, the 5 req/sec rate limit, and cursor pagination.
curl -s "https://public-api.alternativepayments.io/invoices?limit=100" \
-H "Authorization: Bearer ${TOKEN}"Responses are cursor-paginated — items in `data[]`, with `next_cursor` / `has_more`. Pass `after=<cursor>` for the next page.
curl -s "https://public-api.alternativepayments.io/invoices/${INVOICE_ID}" \
-H "Authorization: Bearer ${TOKEN}"Required: `customer_id`, `currency`, `due_date`, and a non-empty `line_items[]`.
curl -s -X POST "https://public-api.alternativepayments.io/invoices" \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "'${CUSTOMER_ID}'",
"currency": "USD",
"due_date": "2026-07-05",
"reference": "June 2026 Managed Services",
"line_items": [
{
"description": "Monthly Managed Services - Acme Corp (25 endpoints)",
"quantity": 1,
"unit_amount": 2500.00
},
{
"description": "Microsoft 365 Business Premium (25 users)",
"quantity": 25,
"unit_amount": 22.00
}
]
}'Returns a URL the customer visits to pay the invoice. No charge occurs until the customer completes payment.
curl -s "https://public-api.alternativepayments.io/invoices/${INVOICE_ID}/payment-link" \
-H "Authorization: Bearer ${TOKEN}"curl -s "https://public-api.al
One command to supercharge Claude Code for MSP workflows. Then restart Claude Code. That's it. Documentation: mcp.wyre.ai
Repo: wyre-technology/msp-claude-plugins
3CX's native PBX MCP server: the per-PBX endpoint shape (every PBX is its own FQDN and its own OAuth authorization server — there is no shared mcp.3cx.com),…
3CX's live-operations surface: read-only visibility into active calls, recordings, voicemail, department and queue membership, and forwarding/presence…
3CX's read-only directory surface: resolving a caller by email or by exact extension, searching the PBX's own phonebooks, searching contacts synced from an…
3CX's system-and-configuration surface: server time, PBX event log and application log search, service status, database schema and the read-only SELECT-only…
Abnormal Security abuse mailbox cases: user-reported email submissions, case statuses and judgments, the case lifecycle, bulk and remediation actions, and…
Abnormal Security message analysis: message retrieval, email header inspection, attachments, sender reputation, delivery context, and SPF/DKIM/DMARC…