$42.00 authorization expires in 2 days

Status
Resolved
At risk
$42.00
Protected
$42.00
Deadline, UTC
2026-12-03 17:28
Detected (detector clock)
2026-12-01 17:28

Diagnosis

AI agent (anthropic/claude-haiku-5.5)

The $42.00 payment for the Ethiopia Guji coffee was approved but never collected. The order shipped on Nov 4, and the payment approval expires Dec 3, 2026, so the money will be lost if nobody collects it before then. The ledger and PayPal both show the approval is still open and valid, and the full $42.00 is still uncaptured.

Decisions

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

Capture authorization

$42.003DM65722HT320921XPayPal OK

Agent proposed

The order has shipped, the authorization is still open, and this is the full authorized amount, well under the auto-capture limit, so collecting it now secures the $42.00.

Policy said

Auto
  • Within the autopilot rules.

PayPal returned

HTTP 201

debug id f313396a7ebcb

Response body
{
  "id": "9N535488SD577881J",
  "amount": {
    "currency_code": "USD",
    "value": "42.00"
  },
  "final_capture": true,
  "seller_protection": {
    "status": "NOT_ELIGIBLE"
  },
  "seller_receivable_breakdown": {
    "gross_amount": {
      "currency_code": "USD",
      "value": "42.00"
    },
    "paypal_fee": {
      "currency_code": "USD",
      "value": "1.94"
    },
    "net_amount": {
      "currency_code": "USD",
      "value": "40.06"
    },
    "exchange_rate": {}
  },
  "custom_id": "cart-17776",
  "status": "COMPLETED",
  "create_time": "2026-11-04T17:28:15Z",
  "update_time": "2026-11-04T17:28:15Z",
  "links": [
    {
      "href": "https://api.sandbox.paypal.com/v2/payments/captures/9N535488SD577881J",
      "rel": "self",
      "method": "GET"
    },
    {
      "href": "https://api.sandbox.paypal.com/v2/payments/captures/9N535488SD577881J/refund",
      "rel": "refund",
      "method": "POST"
    },
    {
      "href": "https://api.sandbox.paypal.com/v2/payments/authorizations/3DM65722HT320921X",
      "rel": "up",
      "method": "GET"
    }
  ]
}
Exact API call (PayPal-Request-Id ns-fdd0c07b175070dbb6fc498e40d9cc31)
POST /v2/payments/authorizations/3DM65722HT320921X/capture
{
  "amount": {
    "currency_code": "USD",
    "value": "42.00"
  },
  "final_capture": true
}

Evidence

Authorization 3DM65722HT320921X for order 3P143941YR785163S is 27 days old with $42.00 uncaptured. PayPal authorizations expire after 29 days and cannot be reauthorized after that.

authorization id
3DM65722HT320921X
authorization status
CREATED
order id
3P143941YR785163S
fulfillment
shipped
shipped at
2026-11-04T17:27:38.976Z
authorized
$42.00
uncaptured
$42.00
age days
27
honor period ends
2026-11-07T17:28:01.000Z
expires at
2026-12-03T17:28:01.000Z
expired by detector clock
false
order3P143941YR785163Sauthorization3DM65722HT320921X

All ids are real PayPal sandbox objects; GET them with your sandbox credentials to check.

Audit trail

Detected, diagnosed, decided, executed. Live.

Detected: $42.00 authorization expires in 2 days
Detector
Authorization 3DM65722HT320921X for order 3P143941YR785163S is 27 days old with $42.00 uncaptured. PayPal authorizations expire after 29 days and cannot be reauthorized after that.
Agent started triage
Agent
Agent read ledger_lookup
Agent
ledger_lookupNightshift ledgerok
args { "order_id": "3P143941YR785163S" }
Result
{"order":{"id":"3P143941YR785163S","intent":"AUTHORIZE","status":"COMPLETED","amountCents":4200,"currency":"USD","payer":"night-owl-mw2e3my0629@example.com","cartRef":"cart-17776","description":"Ethiopia Guji, 1kg whole bean","fulfillment":"shipped","shippedAt":"2026-11-04T17:27:38.976Z","createdAt":"2026-11-04T17:28:01.000Z","updatedAt":"2026-11-04T17:28:05.147Z","source":"scenario","scenario":"lab_mw2e3kyb"},"buyer_note_untrusted":null,"authorizations":[{"id":"3DM65722HT320921X","orderId":"3P143941YR785163S","status":"CREATED","amountCents":4200,"currency":"USD","createdAt":"2026-11-04T17:28:01.000Z","expiresAt":"2026-12-03T17:28:01.000Z","updatedAt":"2026-11-04T17:28:05.151Z"}],"captures":[],"refunds":[],"failed_capture_attempts":[]}
Agent read get_authorization
Agent
get_authorizationvia Nightshift REST clientok
args { "authorization_id": "3DM65722HT320921X" }
Result
{"id":"3DM65722HT320921X","status":"CREATED","amount":{"currency_code":"USD","value":"42.00"},"custom_id":"cart-17776","seller_protection":{"status":"NOT_ELIGIBLE"},"supplementary_data":{"related_ids":{"order_id":"3P143941YR785163S"}},"payee":{"email_address":"sb-djk8i53501233@business.example.com","merchant_id":"D8M8MT98DPNNG"},"expiration_time":"2026-12-03T17:28:01Z","create_time":"2026-11-04T17:28:01Z","update_time":"2026-11-04T17:28:01Z","links":[{"href":"https://api.sandbox.paypal.com/v2/payments/authorizations/3DM65722HT320921X","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v2/payments/authorizations/3DM65722HT320921X/capture","rel":"capture","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/payments/authorizations/3DM65722HT320921X/void","rel":"void","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/payments/authorizations/3DM65722HT320921X/reauthorize","rel":"reauthorize","method":"POST"},{"href":"https://api.sandbox.paypal.com/v2/checkout/orders/3P143941YR785163S","rel":"up","method":"GET"}]}
Agent diagnosis
Agent
The $42.00 payment for the Ethiopia Guji coffee was approved but never collected. The order shipped on Nov 4, and the payment approval expires Dec 3, 2026, so the money will be lost if nobody collects it before then. The ledger and PayPal both show the approval is still open and valid, and the full $42.00 is still uncaptured.
Agent proposed: Capture authorization $42.00
Agent
The order has shipped, the authorization is still open, and this is the full authorized amount, well under the auto-capture limit, so collecting it now secures the $42.00.
Policy said: auto-execute
Policy gate
  • Within the autopilot rules.
POST /v2/payments/authorizations/3DM65722HT320921X/capture
Executor
PayPal-Request-Id: ns-fdd0c07b175070dbb6fc498e40d9cc31
{
  "amount": {
    "currency_code": "USD",
    "value": "42.00"
  },
  "final_capture": true
}
PayPal returned 201 (COMPLETED)
PayPal
HTTP 201, debug id f313396a7ebcb, 1891 ms
{
  "id": "9N535488SD577881J",
  "amount": {
    "currency_code": "USD",
    "value": "42.00"
  },
  "final_capture": true,
  "seller_protection": {
    "status": "NOT_ELIGIBLE"
  },
  "seller_receivable_breakdown": {
    "gross_amount": {
      "currency_code": "USD",
      "value": "42.00"
    },
    "paypal_fee": {
      "currency_code": "USD",
      "value": "1.94"
    },
    "net_amount": {
      "currency_code": "USD",
      "value": "40.06"
    },
    "exchange_rate": {}
  },
  "custom_id": "cart-17776",
  "status": "COMPLETED",
  "create_time": "2026-11-04T17:28:15Z",
  "update_time": "2026-11-04T17:28:15Z",
  "links": [
    {
      "href": "https://api.sandbox.paypal.com/v2/payments/captures/9N535488SD577881J",
      "rel": "self",
      "method": "GET"
    },
    {
      "href": "https://api.sandbox.paypal.com/v2/payments/captures/9N535488SD577881J/refund",
      "rel": "refund",
      "method": "POST"
    },
    {
      "href": "https://api.sandbox.paypal.com/v2/payments/authorizations/3DM65722HT320921X",
      "rel": "up",
      "method": "GET"
    }
  ]
}
$42.00 protected (captured)
Executor