Invoice NS-23OJX-1 is 30 day(s) overdue, $180.00 unpaid
- Status
- Needs you
- At risk
- $180.00
- Detected (detector clock)
- 2026-11-23 19:10
Diagnosis
AI agent (anthropic/claude-haiku-5.5)Night Owl Coffee Roasters sent Corner Cafe invoice NS-23OJX-1 for $180.00 (5kg wholesale espresso blend). The invoice has not been paid and the buyer has not opened it. The due date (Oct 24) was already past when the invoice was actually sent on Oct 27, so the buyer may not have had a fair chance to pay on time. Nothing is lost yet, but the money stays unpaid until the buyer is reminded.
Decisions
The agent proposes, the policy gate decides, the executor calls PayPal.
Send invoice reminder
INV2-ABSM-JC8R-PRPZ-PTPQPayPal OKAgent proposed
The invoice was sent but never viewed and has no reminder yet, so a reminder is the safe first step to get it paid.
Note: Friendly reminder: invoice NS-23OJX-1 for $180.00 from Night Owl Coffee Roasters is still open. Please let us know if you have any questions.
Policy said
Auto- Within the autopilot rules.
PayPal returned
HTTP 200
debug id f657104285d72
Response body
{
"id": "INV2-ABSM-JC8R-PRPZ-PTPQ"
}Exact API call (PayPal-Request-Id ns-ab477bc5c9887b66acc2a975360bf9b1)
{
"subject": "Reminder: invoice NS-23OJX-1 is past due",
"note": "Friendly reminder: invoice NS-23OJX-1 for $180.00 from Night Owl Coffee Roasters is still open. Please let us know if you have any questions.",
"send_to_invoicer": false,
"send_to_recipient": true
}Ask the owner
Waiting for youAgent proposed
Only the owner knows whether the due date should stand or be extended given the late send.
Note: Invoice NS-23OJX-1 was sent on Oct 27, after its Oct 24 due date. Do you want to keep the Oct 24 due date, or extend it so Corner Cafe has time to pay?
Policy said
Needs approval- The agent asked for a human decision.
PayPal returned
No PayPal call for this action.
Evidence
Invoice NS-23OJX-1 (INV2-ABSM-JC8R-PRPZ-PTPQ) 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-ABSM-JC8R-PRPZ-PTPQ
- invoice number
- NS-23OJX-1
- status
- SENT
- recipient
- orders@cafe.example.com
- due date
- 2026-10-24
- days overdue
- 30
- total
- $180.00
- paid
- $0.00
- owed
- $180.00
- last reminder at
- none
INV2-ABSM-JC8R-PRPZ-PTPQAll 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-ABSM-JC8R-PRPZ-PTPQ","status":"SENT","detail":{"currency_code":"USD","note":"Wholesale order from Night Owl Coffee Roasters. Thank you!","category_code":"SHIPPABLE","invoice_number":"NS-23OJX-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-27T19:06:20Z","last_update_time":"2026-10-27T19:06:20Z","first_sent_time":"2026-10-27T19:06:21Z","last_sent_time":"2026-10-27T19:06:21Z","created_by_flow":"REGULAR_SINGLE","recipient_view_url":"https://www.sandbox.paypal.com/invoice/p/#ABSMJC8RPRPZPTPQ","invoicer_view_url":"https://www.sandbox.paypal.com/invoice/details/INV2-ABSM-JC8R-PRPZ-PTPQ","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-42K61215MC7924134","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-ABSM-JC8R-PRPZ-PTPQ","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-ABSM-JC8R-PRPZ-PTPQ","rel":"replace","method":"PUT"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-ABSM-JC8R-PRPZ-PTPQ/cancel","rel":"cancel","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-ABSM-JC8R-PRPZ-PTPQ/remind","rel":"remind","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-ABSM-JC8R-PRPZ-PTPQ/payments","rel":"record-payment","method":"POST"},{"href":"https://api.sandbox.p- Within the autopilot rules.
- The agent asked for a human decision.
{
"subject": "Reminder: invoice NS-23OJX-1 is past due",
"note": "Friendly reminder: invoice NS-23OJX-1 for $180.00 from Night Owl Coffee Roasters is still open. Please let us know if you have any questions.",
"send_to_invoicer": false,
"send_to_recipient": true
}HTTP 200, debug id f657104285d72, 776 ms
{
"id": "INV2-ABSM-JC8R-PRPZ-PTPQ"
}