AGENT SKILL
invoice-housekeeping
Clean up Fawaterak invoices — list, cancel stale unpaid ones, refund paid ones
适用职业财务
- License 许可
- MIT
- 所属仓库
- theYahia/WWmcp
- 最近更新
- 2026-09-26
- Stars
- ★ 38
- Forks
- 5
01 前言 Front Matter
- name
- invoice-housekeeping
- description
- Clean up Fawaterak invoices — list, cancel stale unpaid ones, refund paid ones
- argument-hint
- [status paid|unpaid|expired|cancelled]
03 SKILL.md 正文
/invoice-housekeeping — Invoice cleanup and refunds
Algorithm
- Call
list_invoiceswith page, per_page and status (paid | unpaid | expired | cancelled). Start with unpaid to find stale checkouts. - Page through until the list is exhausted. Do not report a total you have not paged to.
- For anything ambiguous, call
get_invoice_datawith its invoice_id for the full record (amount, method, transaction_id, customer). - To cancel:
cancel_invoicewith invoice_id. This only works on unpaid invoices — check status first, and confirm with the user before cancelling anything. - To refund:
refund_paymentwith invoice_id, optional amount (omit for full refund) and optional reason. Refund support depends on the rail — a Fawry cash payment may not be refundable through the API. Report the error as-is rather than retrying blindly. - Call
get_balanceat the end so the user sees the account position after the cleanup.
Response format
## Fawaterak housekeeping
**Balance**: 18,420 EGP
### Unpaid over 48 h — 6 invoices, 3,100 EGP
| Invoice | Amount | Created | Action |
|---------|--------|---------|--------|
| 88101 | 450 EGP | 2026-08-30 | cancelled |
### Refunds issued
| Invoice | Amount | Reason | Status |
|---------|--------|--------|--------|
| 88044 | 200 EGP | partial return | success |
Notes
- Always confirm before
cancel_invoiceorrefund_payment— neither is reversible. - Partial refund = pass amount. Full refund = omit amount entirely.
get_balancereflects settled money; a just-issued refund may not be deducted yet.
Examples
/invoice-housekeeping unpaid
/invoice-housekeeping refund 88044 200 "partial return"
04 同仓库更多 Skills
refund-payment
Возврат по платежу — полный или частичный. Проверяет статус перед возвратом
★ 38
daily-report
Отчёт по платежам за сегодня — суммы, статусы, итого. Использует list_payments
★ 38
create-and-track
Создать платёж в ЮKassa и показать ссылку для оплаты. Использует create_payment и get_payment
★ 38
check-account
Проверка статуса магазина ЮKassa — тестовый/боевой, фискализация, ID
★ 38
semantic-core
Сбор семантического ядра под русский рынок — частотность, расширение, сезонность
★ 38
geo-priority
Где спрос по фразе выше среднего — регионы РФ по объёму и affinity для геотаргетинга
★ 38