Invoice NS-XK52M-2 is 3 day(s) overdue, $140.00 still owed after a partial payment

Status
Needs you
At risk
$140.00
Detected (detector clock)
2026-10-27 17:01

Diagnosis

AI agent (anthropic/claude-haiku-5.5)

Corner Cafe (orders@cafe.example.com) owes $140.00 of the $240.00 wholesale invoice NS-XK52M-2 for 5kg of espresso blend. They paid $100.00 by bank transfer today. The invoice was created and emailed at 16:59 UTC today, but its due date was set to 2026-10-24, which had already passed. That is why it shows as 3 days overdue, and the buyer has not yet opened it. Nothing is lost if nobody acts, but the $140.00 stays unpaid until you decide how to handle it.

Decisions

The agent proposes, the policy gate decides, the executor calls PayPal.

Ask the owner

Waiting for you

Agent proposed

The invoice was sent minutes before this alert and the due date was already in the past, so an 'overdue' reminder may confuse a buyer who has not seen the invoice yet. This needs the owner's judgment.

Note: Invoice NS-XK52M-2 was created and emailed to Corner Cafe today, but its due date is 2026-10-24, which is already past. Was that date intended? Should I send a payment reminder for the $140.00 balance now, or would you rather correct the due date first an

Policy said

Needs approval
  • The agent asked for a human decision.

PayPal returned

No PayPal call for this action.

Evidence

Invoice NS-XK52M-2 (INV2-M6Z9-2V92-D7KU-SJP4) to orders@cafe.example.com was due 2026-10-24. Status PARTIALLY_PAID, $100.00 of $240.00 paid. No reminder sent yet.

invoice id
INV2-M6Z9-2V92-D7KU-SJP4
invoice number
NS-XK52M-2
status
PARTIALLY_PAID
recipient
orders@cafe.example.com
due date
2026-10-24
days overdue
3
total
$240.00
paid
$100.00
owed
$140.00
last reminder at
none
invoiceINV2-M6Z9-2V92-D7KU-SJP4

All ids are real PayPal sandbox objects; GET them with your sandbox credentials to check.

Audit trail

Detected, diagnosed, decided, executed. Live.

Detected: Invoice NS-XK52M-2 is 3 day(s) overdue, $140.00 still owed after a partial payment
Detector
Invoice NS-XK52M-2 (INV2-M6Z9-2V92-D7KU-SJP4) to orders@cafe.example.com was due 2026-10-24. Status PARTIALLY_PAID, $100.00 of $240.00 paid. No reminder sent yet.
Agent started triage
Agent
Agent read get_invoice
Agent
get_invoicevia PayPal Agent Toolkitok
args { "invoice_id": "INV2-M6Z9-2V92-D7KU-SJP4" }
Result
{"id":"INV2-M6Z9-2V92-D7KU-SJP4","status":"PARTIALLY_PAID","detail":{"currency_code":"USD","note":"Wholesale order from Night Owl Coffee Roasters. Thank you!","category_code":"SHIPPABLE","invoice_number":"NS-XK52M-2","invoice_date":"2026-10-10","payment_term":{"term_type":"DUE_ON_DATE_SPECIFIED","due_date":"2026-10-24"},"viewed_by_recipient":false,"group_draft":false,"metadata":{"create_time":"2026-10-27T16:59:12Z","last_update_time":"2026-10-27T16:59:15Z","first_sent_time":"2026-10-27T16:59:14Z","last_sent_time":"2026-10-27T16:59:14Z","created_by_flow":"REGULAR_SINGLE","recipient_view_url":"https://www.sandbox.paypal.com/invoice/p/#M6Z92V92D7KUSJP4","invoicer_view_url":"https://www.sandbox.paypal.com/invoice/details/INV2-M6Z9-2V92-D7KU-SJP4","caller_type":"API_V2_INVOICE","spam_info":{}},"archived":false},"invoicer":{"business_name":"Night Owl Coffee Roasters"},"primary_recipients":[{"billing_info":{"name":{"given_name":"Corner","surname":"Cafe","full_name":"Corner Cafe"},"email_address":"orders@cafe.example.com"}}],"items":[{"id":"ITEM-7HD114032Y2940005","name":"Wholesale espresso blend, 5kg","quantity":"1","unit_amount":{"currency_code":"USD","value":"240.00"},"unit_of_measure":"QUANTITY"}],"configuration":{"tax_calculated_after_discount":false,"tax_inclusive":false,"allow_tip":false,"partial_payment":{"allow_partial_payment":true},"allow_only_pay_by_bank":false,"allow_vba_payments":false,"save_item_for_future":true,"template_id":"TEMP-64X047134N4806103"},"amount":{"breakdown":{"item_total":{"currency_code":"USD","value":"240.00"},"discount":{"invoice_discount":{"amount":{"currency_code":"USD","value":"0.00"}},"item_discount":{"currency_code":"USD","value":"0.00"}},"tax_total":{"currency_code":"USD","value":"0.00"}},"currency_code":"USD","value":"240.00"},"due_amount":{"currency_code":"USD","value":"140.00"},"payments":{"paid_amount":{"currency_code":"USD","value":"100.00"},"transactions":[{"type":"EXTERNAL","payment_id":"EXTR-18H41266V0222645F","payment_date":"2026-10-27","payment_date_time":"2026-10-27T00:00:00Z","method":"BANK_TRANSFER","note":"Part payment by bank transfer","amount":{"currency_code":"USD","value":"100.00"}}]},"links":[{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-M6Z9-2V92-D7KU-SJP4","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-M6Z9-2V92-D7KU-SJP4/payments","rel":"record-payment","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2
Agent read ledger_lookup
Agent
ledger_lookupNightshift ledgererror
args { "order_id": "NS-XK52M-2" }
Result
{"error":"Order NS-XK52M-2 is not in the ledger"}
Agent diagnosis
Agent
Corner Cafe (orders@cafe.example.com) owes $140.00 of the $240.00 wholesale invoice NS-XK52M-2 for 5kg of espresso blend. They paid $100.00 by bank transfer today. The invoice was created and emailed at 16:59 UTC today, but its due date was set to 2026-10-24, which had already passed. That is why it shows as 3 days overdue, and the buyer has not yet opened it. Nothing is lost if nobody acts, but the $140.00 stays unpaid until you decide how to handle it.
Agent proposed: Ask the owner
Agent
The invoice was sent minutes before this alert and the due date was already in the past, so an 'overdue' reminder may confuse a buyer who has not seen the invoice yet. This needs the owner's judgment.
Policy said: needs the owner's approval
Policy gate
  • The agent asked for a human decision.