Invoice NS-E641J-1 is 30 days overdue, $180.00 unpaid
- Status
- Resolved
- At risk
- $180.00
- Detected (detector clock)
- 2026-12-01 17:29
Diagnosis
AI agent (anthropic/claude-haiku-5.5)Night Owl Coffee Roasters sent invoice NS-E641J-1 for $180.00 (a 5kg wholesale espresso blend) to Corner Cafe, due November 1. Nothing has been paid, and PayPal shows the invoice as not yet viewed by the buyer, and no reminder has been sent. If nobody acts, the $180.00 stays unpaid; a reminder is the simple next step. The invoice's creation timestamp is later than its invoice date, which is unusual, but it does not change the recommendation.
Decisions
The agent proposes, the policy gate decides, the executor calls PayPal.
Send invoice reminder
INV2-UZGJ-V56Y-PJ2G-BHRRPayPal OKAgent proposed
The invoice is 30 days overdue with no payment and no reminder yet, so a reminder is the low-risk way to get paid.
Note: Friendly reminder: invoice NS-E641J-1 for $180.00 was due November 1. Please pay at your earliest convenience. Thank you, Night Owl Coffee Roasters.
Policy said
Auto- Within the autopilot rules.
PayPal returned
HTTP 200
debug id f457511feb56a
Response body
{
"id": "INV2-UZGJ-V56Y-PJ2G-BHRR"
}Exact API call (PayPal-Request-Id ns-167d9fea6fcc76ddd2fde86c87501b6f)
{
"subject": "Reminder: invoice NS-E641J-1 is past due",
"note": "Friendly reminder: invoice NS-E641J-1 for $180.00 was due November 1. Please pay at your earliest convenience. Thank you, Night Owl Coffee Roasters.",
"send_to_invoicer": false,
"send_to_recipient": true
}Evidence
Invoice NS-E641J-1 (INV2-UZGJ-V56Y-PJ2G-BHRR) to orders@cafe.example.com was due 2026-11-01. Status SENT, $0.00 of $180.00 paid. No reminder sent yet.
- invoice id
- INV2-UZGJ-V56Y-PJ2G-BHRR
- invoice number
- NS-E641J-1
- status
- SENT
- recipient
- orders@cafe.example.com
- due date
- 2026-11-01
- days overdue
- 30
- total
- $180.00
- paid
- $0.00
- owed
- $180.00
- last reminder at
- none
INV2-UZGJ-V56Y-PJ2G-BHRRAll 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-UZGJ-V56Y-PJ2G-BHRR","status":"SENT","detail":{"currency_code":"USD","note":"Wholesale order from Night Owl Coffee Roasters. Thank you!","category_code":"SHIPPABLE","invoice_number":"NS-E641J-1","invoice_date":"2026-10-18","payment_term":{"term_type":"DUE_ON_DATE_SPECIFIED","due_date":"2026-11-01"},"viewed_by_recipient":false,"group_draft":false,"metadata":{"create_time":"2026-11-04T17:29:37Z","last_update_time":"2026-11-04T17:29:37Z","first_sent_time":"2026-11-04T17:29:38Z","last_sent_time":"2026-11-04T17:29:38Z","created_by_flow":"REGULAR_SINGLE","recipient_view_url":"https://www.sandbox.paypal.com/invoice/p/#UZGJV56YPJ2GBHRR","invoicer_view_url":"https://www.sandbox.paypal.com/invoice/details/INV2-UZGJ-V56Y-PJ2G-BHRR","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-7BD54426N23460946","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-UZGJ-V56Y-PJ2G-BHRR","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-UZGJ-V56Y-PJ2G-BHRR","rel":"replace","method":"PUT"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-UZGJ-V56Y-PJ2G-BHRR/cancel","rel":"cancel","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-UZGJ-V56Y-PJ2G-BHRR/remind","rel":"remind","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-UZGJ-V56Y-PJ2G-BHRR/payments","rel":"record-payment","method":"POST"},{"href":"https://api.sandbox.pledger_lookupNightshift ledgererrorResult
{"error":"Order INV2-UZGJ-V56Y-PJ2G-BHRR is not in the ledger"}- Within the autopilot rules.
{
"subject": "Reminder: invoice NS-E641J-1 is past due",
"note": "Friendly reminder: invoice NS-E641J-1 for $180.00 was due November 1. Please pay at your earliest convenience. Thank you, Night Owl Coffee Roasters.",
"send_to_invoicer": false,
"send_to_recipient": true
}HTTP 200, debug id f457511feb56a, 918 ms
{
"id": "INV2-UZGJ-V56Y-PJ2G-BHRR"
}