Invoice NS-XK52M-1 is 3 day(s) overdue, $180.00 unpaid
- Status
- Needs you
- At risk
- $180.00
- Detected (detector clock)
- 2026-10-27 17:01
Diagnosis
AI agent (anthropic/claude-haiku-5.5)Invoice NS-XK52M-1 for $180.00 (Wholesale espresso blend, 5kg) to Corner Cafe shows as 3 days overdue, but the invoice was created and sent today at 16:59 UTC, minutes before this alert. Its due date was set to 2026-10-24, a date already in the past when it was sent, so the "overdue" status looks like a date-entry mistake rather than a late payment. Nothing is lost yet; the buyer has not opened the invoice. If nobody acts, the buyer may get a confusing "overdue" notice for a bill they have only just received.
Decisions
The agent proposes, the policy gate decides, the executor calls PayPal.
Ask the owner
Waiting for youAgent proposed
The due date looks wrong for a brand-new invoice, and only the owner knows the agreed payment terms, so no reminder should go out until they confirm.
Note: Invoice NS-XK52M-1 ($180.00 to orders@cafe.example.com) was sent today but has a due date of 2026-10-24, which is already past. Was that date intended? Should we keep it, or do you want to change the due date (for example, to 30 days from today) before an
Policy said
Needs approval- The agent asked for a human decision.
PayPal returned
No PayPal call for this action.
Evidence
Invoice NS-XK52M-1 (INV2-ZU5Z-VJ25-M5KL-TBDU) to orders@cafe.example.com was due 2026-10-24. Status SENT, $0.00 of $180.00 paid. No reminder sent yet.
- invoice id
- INV2-ZU5Z-VJ25-M5KL-TBDU
- invoice number
- NS-XK52M-1
- status
- SENT
- recipient
- orders@cafe.example.com
- due date
- 2026-10-24
- days overdue
- 3
- total
- $180.00
- paid
- $0.00
- owed
- $180.00
- last reminder at
- none
INV2-ZU5Z-VJ25-M5KL-TBDUAll ids are real PayPal sandbox objects; GET them with your sandbox credentials to check.
Audit trail
Detected, diagnosed, decided, executed. Live.
get_invoicevia PayPal Agent ToolkitokResult
{"id":"INV2-ZU5Z-VJ25-M5KL-TBDU","status":"SENT","detail":{"currency_code":"USD","note":"Wholesale order from Night Owl Coffee Roasters. Thank you!","category_code":"SHIPPABLE","invoice_number":"NS-XK52M-1","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:10Z","last_update_time":"2026-10-27T16:59:10Z","first_sent_time":"2026-10-27T16:59:11Z","last_sent_time":"2026-10-27T16:59:11Z","created_by_flow":"REGULAR_SINGLE","recipient_view_url":"https://www.sandbox.paypal.com/invoice/p/#ZU5ZVJ25M5KLTBDU","invoicer_view_url":"https://www.sandbox.paypal.com/invoice/details/INV2-ZU5Z-VJ25-M5KL-TBDU","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-5P054442EN4726053","name":"Wholesale espresso blend, 5kg","quantity":"1","unit_amount":{"currency_code":"USD","value":"180.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":"180.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":"180.00"},"due_amount":{"currency_code":"USD","value":"180.00"},"links":[{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-ZU5Z-VJ25-M5KL-TBDU","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-ZU5Z-VJ25-M5KL-TBDU","rel":"replace","method":"PUT"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-ZU5Z-VJ25-M5KL-TBDU/cancel","rel":"cancel","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-ZU5Z-VJ25-M5KL-TBDU/remind","rel":"remind","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-ZU5Z-VJ25-M5KL-TBDU/payments","rel":"record-payment","method":"POST"},{"href":"https://api.sandbox.pledger_lookupNightshift ledgererrorResult
{"error":"Order INV2-ZU5Z-VJ25-M5KL-TBDU is not in the ledger"}- The agent asked for a human decision.