{"object":"doc","slug":"explain-payment","title":"Explain a stored payment","summary":"Read payment and reversal evidence with explicit uncertainty, without another processor request.","tags":["guide","payments","refunds","troubleshooting"],"body":"# Explain a stored payment\n\nCall `explain_payment(payment_id)` to understand the records behind a payment in your key's mode.\nYour key needs **all three** scopes: `payments:read`, `refunds:read`, and `events:read`.\nA `full` key also works. Both test and live keys can read matching owned records.\n\nThe response contains small payment, refund and event excerpts, fixed explanations,\nand references to the records supporting each explanation. It reads stored evidence;\nit does not contact the processor, retry a payment, send a refund, or change an order.\nThere is no matching REST explanation endpoint. Applications can use the existing\nREST payment, refund and event reads when they need those underlying records.\n\n## Interpret the evidence conservatively\n\n- A payment state is the state recorded by ZeroPoint. Even `failed` does not, by itself,\n  prove a processor decline or that no money moved. This tool does not prove settlement.\n- `amount_refunded_cents` can include a reservation for a reversal still in progress.\n  It is not a total of completed refunds and must not be used here to calculate a\n  spendable balance or another refund amount.\n- A succeeded refund/void row is a recorded success. A pending row is unresolved.\n  `processor_unverified` remains uncertain even when its row says failed and its\n  reservation has been released. Other failure details are deliberately not interpreted.\n- A `payment.needs_attention` event is historical. Later success does not establish\n  that it was resolved. Operator acknowledgment and notes are private and are not read.\n- Unknown states or incomplete evidence remain uncertain. None of these explanations\n  grants permission to retry, refund, void, reset a checkout, or fulfill an order.\n\n## Understand the window\n\nThe tool returns at most 50 recent refunds and scans at most 100 recent `payment.*`\nevents for the payment's merchant. Other payments consume that event window. Only\nmatching, well-formed payment evidence is returned. Counts, limits, skipped rows and\n`has_more` identify the bounds. Malformed, oversized or unfamiliar event evidence is\nskipped and makes the window incomplete. Event payloads over 16,384 bytes are excluded\nbefore parsing, with embedded NULs and multibyte text counted in that byte limit.\n\nNo matching event in this window means only that none was returned; it does not mean\nthe event never happened. These separate stored reads are not an atomic processor\nsnapshot. The observation time is not a processor freshness guarantee.\n\nUse `get_event(event_id)` to inspect a cited event with `events:read` in sandbox mode.\nIt returns the existing public event payload, which is broader than the explanation\nexcerpt and can include payment metadata, receipt bearer URLs and public processor\nidentifiers. It does not read private operator notes, refresh a processor or redeliver\nthe event. Treat receipt URLs as bearer links when sharing evidence.\n\nUse `get_payment`, `list_refunds`/`get_refund`, and `list_events` for further authorized\ninspection. To discover older events, call `list_events` again with `cursor` equal to\nthe previous `next_cursor`, keeping `merchant_id`, `type` and `since` unchanged.\nContinue while `has_more` is true. Each page is a stored observation; traversing pages\ndoes not establish an atomic history or fresh processor state.\n\nFollow the [reconciliation guide](reconciliation.md) and operator process\nfor unresolved outcomes. Do not turn an investigation into a new money action.","updated":1790873838}