Invoice NS-XPYT4-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:03

Diagnosis

AI agent (anthropic/claude-haiku-5.5)

Night Owl Coffee Roasters' invoice NS-XPYT4-2 to Corner Cafe ($240.00) shows $100.00 paid by bank transfer, leaving $140.00 owed. PayPal says it was due October 24, but its record shows it was created and emailed to the buyer just seconds before this alert, and the buyer has not opened it yet. Nothing in Nightshift's own ledger covers this invoice. Before anyone chases the cafe for $140, please confirm the invoice was meant to go out today with an October 24 due date, and that the $100 transfer really arrived.

Decisions

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

Ask the owner

Waiting for you

Agent proposed

The overdue status comes from a due date that was already past when the invoice was issued, and the buyer has not seen it, so a reminder could be unfair or wrong. Whether to chase or reissue depends on what the owner knows.

Note: Invoice NS-XPYT4-2 was created and emailed to orders@cafe.example.com today, but its invoice date is Oct 10 and its due date is Oct 24, so it already looks 3 days overdue. The cafe has not opened it yet. Did you mean to send it with that due date? Did the

Policy said

Needs approval
  • The agent asked for a human decision.

PayPal returned

No PayPal call for this action.

Evidence

Invoice NS-XPYT4-2 (INV2-H5P6-C75Z-UEQ6-4KS9) 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-H5P6-C75Z-UEQ6-4KS9
invoice number
NS-XPYT4-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-H5P6-C75Z-UEQ6-4KS9

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-XPYT4-2 is 3 day(s) overdue, $140.00 still owed after a partial payment
Detector
Invoice NS-XPYT4-2 (INV2-H5P6-C75Z-UEQ6-4KS9) 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-H5P6-C75Z-UEQ6-4KS9" }
Result
{"id":"INV2-H5P6-C75Z-UEQ6-4KS9","status":"PARTIALLY_PAID","detail":{"currency_code":"USD","note":"Wholesale order from Night Owl Coffee Roasters. Thank you!","category_code":"SHIPPABLE","invoice_number":"NS-XPYT4-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-27T17:03:43Z","last_update_time":"2026-10-27T17:03:44Z","first_sent_time":"2026-10-27T17:03:44Z","last_sent_time":"2026-10-27T17:03:44Z","created_by_flow":"REGULAR_SINGLE","recipient_view_url":"https://www.sandbox.paypal.com/invoice/p/#H5P6C75ZUEQ64KS9","invoicer_view_url":"https://www.sandbox.paypal.com/invoice/details/INV2-H5P6-C75Z-UEQ6-4KS9","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-3U791721N8007063T","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-4TE45968G4779894U","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-H5P6-C75Z-UEQ6-4KS9","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-H5P6-C75Z-UEQ6-4KS9/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": "INV2-H5P6-C75Z-UEQ6-4KS9" }
Result
{"error":"Order INV2-H5P6-C75Z-UEQ6-4KS9 is not in the ledger"}
Agent diagnosis
Agent
Night Owl Coffee Roasters' invoice NS-XPYT4-2 to Corner Cafe ($240.00) shows $100.00 paid by bank transfer, leaving $140.00 owed. PayPal says it was due October 24, but its record shows it was created and emailed to the buyer just seconds before this alert, and the buyer has not opened it yet. Nothing in Nightshift's own ledger covers this invoice. Before anyone chases the cafe for $140, please confirm the invoice was meant to go out today with an October 24 due date, and that the $100 transfer really arrived.
Agent proposed: Ask the owner
Agent
The overdue status comes from a due date that was already past when the invoice was issued, and the buyer has not seen it, so a reminder could be unfair or wrong. Whether to chase or reissue depends on what the owner knows.
Policy said: needs the owner's approval
Policy gate
  • The agent asked for a human decision.