Invoice NS-DISKD-1 is 8 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)

Night Owl Coffee Roasters sent invoice NS-DISKD-1 for $180.00 (a 5kg wholesale espresso blend) to Corner Cafe. The buyer has not paid and has not opened the invoice. The invoice record shows it was actually sent on October 22, three days after its October 19 due date, so the buyer may never have had a fair chance to pay on time. No reminder has been sent yet. Nothing is lost yet, but the money stays unpaid until the buyer gets a reminder.

Decisions

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

Send invoice reminder

INV2-EVE5-9BC5-83HP-WGLQPayPal OK

Agent proposed

The invoice is unpaid, has never been viewed by the buyer, and has had no reminder, so a reminder is the safe first step.

Note: Hi, this is a reminder that invoice NS-DISKD-1 for $180.00 is now past its due date. Please pay when you can. Thank you, Night Owl Coffee Roasters.

Policy said

Auto
  • Within the autopilot rules.

PayPal returned

HTTP 200

debug id ca51344295e24

Response body
{
  "id": "INV2-EVE5-9BC5-83HP-WGLQ"
}
Exact API call (PayPal-Request-Id ns-513752ae6429c913e5234a6e39486498)
POST /v2/invoicing/invoices/INV2-EVE5-9BC5-83HP-WGLQ/remind
{
  "subject": "Reminder: invoice NS-DISKD-1 is past due",
  "note": "Hi, this is a reminder that invoice NS-DISKD-1 for $180.00 is now past its due date. Please pay when you can. Thank you, Night Owl Coffee Roasters.",
  "send_to_invoicer": false,
  "send_to_recipient": true
}

Ask the owner

Waiting for you

Agent proposed

The due date was set before the invoice went out, so only the owner can decide whether the buyer is actually late or the date needs correcting.

Note: Invoice NS-DISKD-1 shows a due date of October 19 but was only sent on October 22. Should the due date be moved to a later date, or is the October 19 date correct and the buyer simply late?

Policy said

Needs approval
  • The agent asked for a human decision.

PayPal returned

No PayPal call for this action.

Evidence

Invoice NS-DISKD-1 (INV2-EVE5-9BC5-83HP-WGLQ) to orders@cafe.example.com was due 2026-10-19. Status SENT, $0.00 of $180.00 paid. No reminder sent yet.

invoice id
INV2-EVE5-9BC5-83HP-WGLQ
invoice number
NS-DISKD-1
status
SENT
recipient
orders@cafe.example.com
due date
2026-10-19
days overdue
8
total
$180.00
paid
$0.00
owed
$180.00
last reminder at
none
invoiceINV2-EVE5-9BC5-83HP-WGLQ

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-DISKD-1 is 8 day(s) overdue, $180.00 unpaid
Detector
Invoice NS-DISKD-1 (INV2-EVE5-9BC5-83HP-WGLQ) to orders@cafe.example.com was due 2026-10-19. Status SENT, $0.00 of $180.00 paid. No reminder sent yet.
Agent started triage
Agent
Agent read get_invoice
Agent
get_invoicevia PayPal Agent Toolkitok
args { "invoice_id": "INV2-EVE5-9BC5-83HP-WGLQ" }
Result
{"id":"INV2-EVE5-9BC5-83HP-WGLQ","status":"SENT","detail":{"currency_code":"USD","note":"Wholesale order from Night Owl Coffee Roasters. Thank you!","category_code":"SHIPPABLE","invoice_number":"NS-DISKD-1","invoice_date":"2026-10-05","payment_term":{"term_type":"DUE_ON_DATE_SPECIFIED","due_date":"2026-10-19"},"viewed_by_recipient":false,"group_draft":false,"metadata":{"create_time":"2026-10-22T10:03:52Z","last_update_time":"2026-10-22T10:03:52Z","first_sent_time":"2026-10-22T10:03:53Z","last_sent_time":"2026-10-22T10:03:53Z","created_by_flow":"REGULAR_SINGLE","recipient_view_url":"https://www.sandbox.paypal.com/invoice/p/#EVE59BC583HPWGLQ","invoicer_view_url":"https://www.sandbox.paypal.com/invoice/details/INV2-EVE5-9BC5-83HP-WGLQ","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-5RK14787VS1360309","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-EVE5-9BC5-83HP-WGLQ","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-EVE5-9BC5-83HP-WGLQ","rel":"replace","method":"PUT"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-EVE5-9BC5-83HP-WGLQ/cancel","rel":"cancel","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-EVE5-9BC5-83HP-WGLQ/remind","rel":"remind","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-EVE5-9BC5-83HP-WGLQ/payments","rel":"record-payment","method":"POST"},{"href":"https://api.sandbox.p
Agent read ledger_lookup
Agent
ledger_lookupNightshift ledgererror
args { "order_id": "INV2-EVE5-9BC5-83HP-WGLQ" }
Result
{"error":"Order INV2-EVE5-9BC5-83HP-WGLQ is not in the ledger"}
Agent diagnosis
Agent
Night Owl Coffee Roasters sent invoice NS-DISKD-1 for $180.00 (a 5kg wholesale espresso blend) to Corner Cafe. The buyer has not paid and has not opened the invoice. The invoice record shows it was actually sent on October 22, three days after its October 19 due date, so the buyer may never have had a fair chance to pay on time. No reminder has been sent yet. Nothing is lost yet, but the money stays unpaid until the buyer gets a reminder.
Agent proposed: Send invoice reminder
Agent
The invoice is unpaid, has never been viewed by the buyer, and has had no reminder, so a reminder is the safe first step.
Policy said: auto-execute
Policy gate
  • Within the autopilot rules.
Agent proposed: Ask the owner
Agent
The due date was set before the invoice went out, so only the owner can decide whether the buyer is actually late or the date needs correcting.
Policy said: needs the owner's approval
Policy gate
  • The agent asked for a human decision.
POST /v2/invoicing/invoices/INV2-EVE5-9BC5-83HP-WGLQ/remind
Executor
PayPal-Request-Id: ns-513752ae6429c913e5234a6e39486498
{
  "subject": "Reminder: invoice NS-DISKD-1 is past due",
  "note": "Hi, this is a reminder that invoice NS-DISKD-1 for $180.00 is now past its due date. Please pay when you can. Thank you, Night Owl Coffee Roasters.",
  "send_to_invoicer": false,
  "send_to_recipient": true
}
PayPal returned 200
PayPal
HTTP 200, debug id ca51344295e24, 501 ms
{
  "id": "INV2-EVE5-9BC5-83HP-WGLQ"
}
Invoice reminder sent by PayPal
Executor