{"object":"doc","slug":"reconciliation","title":"Reconciliation","summary":"How we catch the ways our records can drift from the processor's, the promise we hold to when we do, and every event and reason a reconciliation pass can produce.","tags":["guide","reconciliation","webhooks","refunds"],"body":"# Reconciliation\n\nEvery five minutes we read the processor's own record of every transaction on your merchants' account and compare it with our own. This runs whether or not you ever look at it, and it is how we catch the handful of ways our books can drift from the processor's: a charge whose outcome we never recorded, a refund or void made outside this API entirely (from the processor's portal, or on the terminal itself), and one of our own refunds wrongly written off as failed when it actually landed.\n\n## The promise\n\n**We never turn a failed payment into a success.** If reconciliation finds that money moved on a payment we told you did not succeed, we reverse the money. We do not rewrite the answer. `failed`, `canceled`, and `expired` are terminal states and reconciliation never moves a payment out of them; it only makes sure nothing is still charged behind one.\n\n## What you see\n\nFour things can come out of a reconciliation pass. Each is a normal event on the ledger, carried to your webhook endpoint exactly like any other.\n\n### 1. An orphaned charge, voided\n\nA charge is standing at the processor behind a payment we already reported as `failed`, `canceled`, or `expired`. The platform believes nothing happened; the processor is holding real money. We void the charge and emit `payment.reversed_late` with the payment (still in its original terminal state) and both transaction ids.\n\n```json\n{\"type\":\"payment.reversed_late\",\"data\":{\"object\":{\"object\":\"payment\",\"id\":\"pay_01j...\",\"state\":\"failed\",\"...\":\"...\"},\"processor_transaction_id\":\"8f3e...\",\"reversal_transaction_id\":null}}\n```\n\n`payment.reversed_late` is not new: it already fires when a customer taps a physical terminal after you canceled or the payment expired (see the handle-every-payment-state guide). Reconciliation is a second producer of the same event, for a charge our own systems never saw arrive at all, not only a late tap we were watching for. Your webhook handler receives both from the same event type and cannot tell them apart. That is deliberate: the payment's state, `processor_transaction_id`, and `reversal_transaction_id` are the same information either way, and you act on them the same way either time, which is why we did not invent a second event for this. `reversal_transaction_id` is normally `null`, from both producers: the processor answers a void with the transaction it reversed rather than with the void, so we do not name the reversal rather than name it wrongly. `processor_transaction_id` is the id to log.\n\nReconciliation also emits `payment.reversed_late` when it finds such a charge already voided at the processor and no `payment.reversed_late` has named that transaction yet. That covers a void of ours whose answer was lost before we could record it, and a void made in the processor's portal or on the terminal. The event means the same thing in every case: the transaction in `processor_transaction_id` is voided at the processor, and the payment did not succeed. It is emitted once per payment per transaction, so dedupe on the payment id plus `processor_transaction_id`.\n\nIf the charge already settled, we cannot void it and will not auto-refund a payment you already believe failed; see `settled_cannot_void` below instead. If the charge does not match the payment or cannot be confirmed, we do not void it; see `standing_authorization` below. If the processor refuses the void, see `void_rejected` below; the authorization is never reported as reversed unless the void actually succeeded.\n\n### 2. One of our own refunds, corrected\n\nOccasionally a refund or void we issued through this API comes back `failed` with `failure_code: processor_unverified`, because the processor's answer did not arrive clearly enough to classify. When reconciliation finds the processor's own record of that same reversal having actually landed, it corrects the row to `succeeded`, fixes the payment's refunded balance, and emits `refund.succeeded` for it, the same event your existing handler already updates its books from.\n\nReconciliation also fills in `processor_transaction_id` on voids and legacy refunds whose response did not identify the reversal. A void may echo its parent, leaving that field `null` until the feed supplies the reversal ID. Verified collection refunds return their own ID immediately and are recognized directly (see the refunds-and-voids guide). This changes nothing about the refund and emits no event; the value simply appears on a later read. When two reversals of ours on one payment are alike enough that we cannot tell which is which, we fill in neither and raise `ambiguous_refund_match` instead. That reason is shared with case 2 above, and it is raised at most once per payment per reason, so one payment carrying both problems reports only the first.\n\nThis refund keeps `origin: api`: it is still the reversal you asked for, just corrected. If more than one written-off refund on a payment could match, we do not guess: we leave both alone and raise `ambiguous_refund_match` instead (below).\n\n### 3. A refund made outside this API, recorded\n\nSomeone issued a refund or void from the processor's portal, or on the terminal itself, for a payment that succeeded through us. We had no record of it. We write a refund row for it, `state: succeeded`, and emit `refund.succeeded`, exactly the event you already handle for a refund made through our API.\n\nThe difference is the `origin` field on the refund object: `api` when the reversal came through a call you or your customer made through us, `external` when reconciliation recorded one it found at the processor with no call of ours behind it.\n\n```json\n{\"object\":\"refund\",\"id\":\"rfd_01j...\",\"payment_id\":\"pay_01j...\",\"kind\":\"refund\",\"origin\":\"external\",\"amount_cents\":500,\"state\":\"succeeded\",\"failure_code\":null,\"processor_transaction_id\":\"c412...\",\"...\":\"...\"}\n```\n\nWe reuse `refund.succeeded` rather than inventing a new event on purpose: your webhook handler updates `amount_refunded_cents` and moves on with no new code path to write. `origin` is there for the platform that wants to know the difference, for example to flag an external reversal for a human to look at, without forcing every platform to add a branch just to keep working. A reversal larger than the payment's remaining balance is never written down as a guess; see `refund_exceeds_balance` below.\n\n### 4. Something we cannot fix: `payment.needs_attention`\n\nSome discrepancies are not safe for us to act on alone. When reconciliation finds one, it emits `payment.needs_attention` instead of taking a money action. The payment's state and `failure_code` do not change; this is a signal to look, not a new outcome for the payment itself.\n\n```json\n{\"type\":\"payment.needs_attention\",\"data\":{\"object\":{\"object\":\"payment\",\"id\":\"pay_01j...\",\"state\":\"failed\",\"...\":\"...\"},\"reason\":\"void_rejected\",\"processor_transaction_id\":\"8f3e...\",\"message\":\"The processor refused to void a charge standing behind a payment we reported as not succeeded. The authorization is still open.\"}}\n```\n\n`data.object` is always the full payment, the same shape every other payment event carries, so your one handler can read it with no special case.\n\n## Every `payment.needs_attention` reason\n\n| reason | What it means | What to do |\n|---|---|---|\n| `additional_authorization` | A terminal callback or the processor transaction feed identifies a different approved, unvoided transaction for an already succeeded payment, and its reference is verified as belonging to that payment. Feed matching also checks the merchant's processor business. The recorded successful transaction is unchanged. | Review the additional `processor_transaction_id` with your ZeroPoint contact and resolve any duplicate charge manually. This alert does not automatically void or refund either transaction. |\n| `void_rejected` | A charge is standing behind a payment we reported as `failed`, `canceled`, or `expired`, and the processor refused our attempt to void it. The authorization is still open at the processor. | Contact your ZeroPoint contact with the payment id and `processor_transaction_id` to resolve the standing authorization. Do not start a second payment for the same order until it is resolved. |\n| `callback_unverified` | A physical terminal reported a result naming a processor transaction, and nothing confirmed it. Either the processor could not: the transaction was not found, or its status was neither approved, declined, nor canceled, on the first report and again on a later delivery a few seconds after it. Or nobody got to look: the first report could not be verified, the terminal never reported again, and the payment then expired, was canceled, or failed. A payment that was still open at the second look ends `failed` (`transaction_not_found` or `card_declined`); a payment that had already ended keeps its state. If the terminal reports once more after the alert and the transaction has been approved by then, we void it and you also receive `payment.reversed_late`. This alert comes from the terminal report itself, not from the reconciliation poll. | Do not treat the payment's state as proof nothing was charged. Search the merchant's processor portal for the payment id and the `processor_transaction_id`, and contact your ZeroPoint contact if a charge is standing. Do not start a second payment for the same order until you know. |\n| `standing_authorization` | (Also raised when the void of a partial approval was not confirmed, on the payment that ended `partial_approval`, on a keyed charge answered partially after its payment ended, or on a late tap. A partial approval carrying the payment's reference is never left standing as an amount disagreement: where reconciliation is allowed to act it voids it and you receive `payment.reversed_late`.)  (Also raised when a reversal ZeroPoint would normally send was not sent because card payments for the merchant are held; see `connect-a-merchant`. The message says so.) An approved, unvoided charge carrying the payment's reference is standing at the processor behind a payment we reported as `failed`, `canceled`, or `expired`, and we did not reverse it. `message` says why: its currency or amounts do not match the payment (for example a tip you did not allow) so we would not void it automatically, or we could not read it back from the processor to confirm it, or the processor refused to void a further charge on a payment that already raised `void_rejected`. In the could-not-read-back case we keep trying while the processor still lists the charge, so a `payment.reversed_late` naming the same `processor_transaction_id` can follow this alert; that event means it was voided after all. | The authorization in `processor_transaction_id` is still open. Contact your ZeroPoint contact with the payment id and that id to resolve it. Do not start a second payment for the same order until it is resolved. |\n| `settled_cannot_void` | The charge behind that same kind of ended payment already settled, so a void is no longer possible, and we will not auto-refund a payment you already believe failed. | The money is real and settled. Decide whether to refund it (through your own process, or ask us) or leave it, and reconcile your own records against it; this is not something we resolve automatically. |\n| `voided_at_processor` | We recorded a payment as `succeeded`, the processor now reports that same charge voided or not approved, and no refund of ours explains it: a possible \"ghost success.\" | Treat the payment's `succeeded` state as suspect until you confirm with the customer or the processor's own records what actually happened. Contact your ZeroPoint contact with the payment id. |\n| `refund_exceeds_balance` | Either an out-of-band reversal at the processor was larger than the payment's remaining refundable balance and so was never written down, or correcting one of our own wrongly written-off refunds pushed the total past that ceiling, meaning the payment really was refunded twice: once by us, once by you reacting to our wrong answer. | Pull `GET /v1/payments/{payment_id}/refunds` and the processor's own record for the payment and reconcile the total by hand. If a refund of ours was corrected, `refund.succeeded` already fired for it; check whether you also issued a duplicate. |\n| `ambiguous_refund_match` | More than one of our own written-off refunds on the payment could match a reversal seen at the processor, so none was corrected automatically rather than guessing which one it was. | List the payment's refunds (`GET /v1/payments/{payment_id}/refunds`) and correct the right one by hand, or ask your ZeroPoint contact. |\n| `currency_mismatch` | The processor answered a keyed sale in a currency other than USD (the message names it). ZeroPoint sends USD on every sale and holds merchants whose account is not a USD one, so this is never expected. The payment is recorded exactly as the processor returned it: an approved sale stays `succeeded` and is **not** voided or refunded automatically, a declined one stays `failed`. The alert is the signal. | Do not treat the amount as confirmed. Contact ZeroPoint with the payment id; we review what moved, and in which currency, with the processor before anything is reversed. |\n| `card_payments_held` | The payment was still open (pending or processing) when card payments for its merchant were held because the merchant's payments account is not a US, USD account; the message names the store currency and country the account reports. Raised once per such payment. The payment is not abandoned: a terminal result is still verified and recorded, and an unanswered payment expires on time. But ZeroPoint sends no void or refund for a held merchant. | Watch the payment reach its final state as usual. If it ends `succeeded`, the charge stands at the processor; contact ZeroPoint before promising the customer a reversal. See `connect-a-merchant` for the hold itself. |\n| `refund_status_mismatch` | The processor's own status for a settled charge and the refunds recorded on the payment disagree, and no other alert explains it. Either the processor reports the charge fully refunded while `amount_refunded_cents` is less than the charge (a refund made at the processor is missing here), or it reports the charge only partially refunded while `amount_refunded_cents` covers the full charge (a refund was counted twice or did not reach the processor). `message` says which. It is raised only after the disagreement is seen on two reconciliation passes, and nothing is changed: no refund is written and the balance does not move. | Compare `GET /v1/payments/{payment_id}/refunds` with the processor's record of the charge and its refunds before refunding again. Contact your ZeroPoint contact with the payment id to correct the record. |\n| `checkout_paid_after_close` | A hosted checkout payment succeeded after its checkout session had already closed (expired). The session was not completed and no `checkout.session.completed` was sent. Rare by design. | Decide with the buyer: void before settlement or refund the payment, or fulfil the order. The buyer's checkout page tells them the payment is being checked and to contact you. |\n| `checkout_reversed_after_complete` | A hosted checkout session was completed on this payment, and the charge was reversed at the processor afterwards (the `payment.reversed_late` names it). The session stays `complete`. | Check the order before fulfilling it; the money for it was returned to the buyer. |\n| `void_executed_as_refund` | ZeroPoint voided this payment's sale automatically (a charge it does not accept, such as a partial approval or an orphan authorization), and the processor executed the void as a refund because the sale had settled in between. The money went back to the buyer as a refund. ZeroPoint never refunds a settled sale on purpose; this is the rare race between its settlement check and the void. The same event as `void_became_refund`, on ZeroPoint's automatic void instead of your request. | Nothing to retry. Check the order with the buyer, and contact your ZeroPoint contact with the payment id if the records need correcting. |\n| `void_became_refund` | You voided a payment, and the processor executed the void as a full refund (seen when a sale settles between ZeroPoint's settlement read and the void). Raised by the void request itself, by its retry, by reconciliation correcting a written-off void, or by a ZeroPoint operator recording it. The reversal is recorded as `kind: refund`, `state: succeeded`, with the refund's own `processor_transaction_id`. The same event as `void_executed_as_refund`, on a void you requested. | Nothing to retry: the money is on its way back to the customer on the refund timetable. Tell the merchant it went back as a refund, not a void. |\n| `resumed_void_settled` | A void retried after an unknown outcome found the sale settled and not reversed, so the earlier attempt was ended as not executed (`refund.failed`, `failure_code: sale_settled_before_void`). Nothing was voided or refunded. | Refund the payment if the money should go back. |\n| `resumed_void_held` | A void retried after an unknown outcome found the sale settled, but the earlier attempt may still be in flight, or only a capture of the sale reads settled. The payment cannot be refunded until it resolves (refunds-and-voids, \"Void\"). Marked resolved when the same void later ends by itself. | In flight: retry the void with its original key after its `Retry-After`. Only a capture settled: retrying does not help; contact ZeroPoint support with the payment id. |\n\n**A needs-attention alert fires once per payment per reason, ever, and is never repeated.** Once you have seen `void_rejected` for a payment, for example, it will not fire again for that payment even though the same rejected authorization is still standing at the processor tick after tick. Do not read the absence of a repeat alert as the absence of a problem: check the last one you received and confirm it was resolved, rather than waiting for a second one that will not come.\n\n## A sale with no payment record\n\nRarely, the processor shows a sale that ZeroPoint itself sent (it carries a `pay_` id as its reference) but ZeroPoint has no payment for it: for example a terminal sale that completed while ZeroPoint's database was being restored from a backup. There is no payment object to put in an event, so **no event is sent** and nothing is voided or refunded automatically. ZeroPoint's operator is alerted, looks the sale up in the merchant's processor portal, and contacts you to decide with the merchant: void it before it settles or refund it after, or recreate the record. If you hold the `pay_` id in your own records (from an earlier `payment.created`), that is how you tell which order it was. Sales the merchant makes outside ZeroPoint (on the terminal's own app, in the portal, or through another integration) never raise this. Outside a restore of ZeroPoint's database it never holds your subscription charges.\n\n## How the processor feed behaves\n\nThe reconciler is built around these processor facts. They also apply if your own code compares the merchant's processor records with yours.\n\nEvery sale ZeroPoint sends carries the payment's `pay_` id as the processor's custom reference, and the merchant's processor portal finds a transaction by that reference through its Transactions search. VERIFIED 10/19/2026 on the sandbox portal (Gym Studio test merchant): the Transactions search matched a full hyphenated reference and returned the sale plus both of its refund children, and the prefix `inv:` returned exactly the four sales carrying `inv:` references. The match is a substring match, so a prefix finds a family of references, and a refund child carries its parent's reference, so a search for one sale can return its refunds too. The portal's list and detail views never display the reference; search is the only way a merchant can use it. Tell a merchant to search the portal for the `pay_` id when they cannot find a charge.\n\n- Processor behaviour, VERIFIED 10/15/2026: the transaction feed is ordered by last update, not by creation.\n- Processor behaviour, VERIFIED 10/15/2026: a sale is restamped when it is refunded, and again when it or any of its refunds settles, so one sale reappears in the feed several times.\n- Processor behaviour, VERIFIED 10/15/2026: a refund row carries its sale's reference, so match on transaction kind as well as reference.\n- Processor behaviour, VERIFIED 10/15/2026 on settled sales: after a partial refund the sale's own row reads `PARTIALLY_REFUNDED`, and once refunds cover the full amount it reads `REFUNDED`. Reconciliation reads that status only as a cross-check on the refunds it has recorded (`refund_status_mismatch` above), never to move money.\n- Processor behaviour, VERIFIED 10/06, 10/07 and 10/15/2026: the sandbox settlement batch closes at about 7:16 to 7:21 PM CT.\n\nApply each processor row idempotently on transaction id plus status, so a repeat of a row you already applied changes nothing. The corrections on this page happen only where reconciliation is switched on to act. Connected live merchants are observed report-only today, and nothing on them is corrected (see the connect-a-merchant guide).","updated":1795275945}