ZeroPointPayments

Guides

Refunds and voids

Reverse a succeeded payment in full or in part, know when to void instead, and read the result.

Both apply only to payments in state succeeded and both need an Idempotency-Key. Both are local for a payment made on a simulated terminal, and go to the processor otherwise. The refundable amount is amount_cents + tip_cents; a void reverses both.

Refund (partial allowed)

POST /v1/payments/{payment_id}/refund
{"amount_cents": 500}

Omit amount_cents to refund the remaining balance. Response 201 (this simulated example has no processor ID):

JSON
{"object":"refund","id":"rfd_01j...","payment_id":"pay_01j...","kind":"refund","amount_cents":500,"state":"succeeded","failure_code":null,"processor_transaction_id":null,"...":"..."}

GET /v1/payments/{payment_id} then shows amount_refunded_cents. Refunding more than the remaining balance is 400 refund_exceeds_balance.

One Idempotency-Key makes one refund, for good. A succeeded refund or void answers every later request that carries its key, for the same payment and amount, with itself, also after the 24 hour response cache has expired. To refund the same amount a second time, send a new key.

A verified processor refund returns its own processor_transaction_id, distinct from the sale. A simulated refund has no processor ID. A void may return only its parent; its reversal ID remains null until reconciliation finds it. Legacy refund rows can also need that backfill. No event is emitted for ID-only backfill; re-read GET /v1/refunds/{id} when needed. A parent ID is never accepted as a new refund ID.

Processor behaviour, VERIFIED 10/15/2026 on the sandbox: each refund, partial or full, is its own processor transaction with its own id, and it starts unsettled and settles in the next nightly batch on its own. After a partial refund the sale reads PARTIALLY_REFUNDED; once refunds cover the full amount it reads REFUNDED, listing one link per refund. A refund's processor_transaction_id therefore names the refund, never the sale.

Cloud refunds create a REFUND transaction referencing the stored processor transaction. The sandbox credit probe verified full and partial refunds and same-request-ID replays. Production acquirer rules, especially by-reference debit and separate capture-parent workflows, need their own acceptance evidence. Do not infer that a successful MOCK credit probe proves those cases.

Void (full only, before settlement)

POST /v1/payments/{payment_id}/void

A void is for a sale that has not settled yet, normally the same batch day. It cancels the authorization: the hold drops off the cardholder's card right away and nothing posts to their statement. It takes no body: sending amount_cents is 400 parameter_invalid, a void is always the full amount. A payment with partial refunds cannot be voided (409 payment_not_refundable); a second void is 409 already_voided. VERIFIED (owner, card-industry practice, 11/17/2026): you can only void before settlement.

ZeroPoint enforces that rule. Before sending a void to the processor it reads the sale there (one extra read per void, one more per capture for an authorize plus capture sale; simulated-terminal payments are not read and void locally as before). The void is sent only on positive evidence: the answer is the sale itself, settled is false, and settlementStatus is absent or UNSETTLED. For an authorize plus capture sale, every capture the sale links to must read the same way.

  • Settled (the sale, or any of its captures): nothing is sent, no refund row is made, no event fires, and the answer is 409 settled_use_refund. It is final for the key. Refund instead if the money should go back; ZeroPoint never turns your void into a refund itself.
  • Unreadable (the read failed, the answer is not the sale, settled is missing or not a boolean, the two settlement fields disagree, or a capture cannot be read): nothing is sent and the answer is 502 processor_unavailable (with the processor's Retry-After when it throttled the read). Retry with the same key. ZeroPoint never guesses "unsettled".
  • Already reversed at the processor (the sale reads voided or refunded, or carries a refund, for example one made in the merchant's portal and not yet reconciled): nothing is sent and the answer is 409 payment_not_refundable with Retry-After. Wait until GET /v1/payments/{payment_id} shows the reversal; do not void or refund again.
  • The processor has no such sale (HTTP 404) or refuses the merchant's credentials: the void ends failed with processor_rejected or processor_not_connected and refund.failed, exactly as before, with nothing sent.
  • Not settled: the void is sent as before.

A void left pending by an earlier unknown outcome is re-read the same way before it is sent again under its original identity. If the sale itself now reads settled, not voided and not refunded, and the processor's feed shows no reversal for it, the earlier attempt did not execute, unless it is still on the wire:

  • When the earlier attempt began more than 240 seconds ago, the void ends failed with failure_code: sale_settled_before_void (event refund.failed), the answer is 409 settled_use_refund, and the refund it points to works at once.
  • When it began less than 240 seconds ago, nothing changes: the answer is 409 payment_not_refundable with Retry-After. Retry the void with the same key after that; do not refund yet.
  • When only a capture reads settled, the void is never ended this way and retrying does not help: the answer is 409 payment_not_refundable (final for the key, so it names the refund to check rather than its state). While GET /v1/refunds/{refund_id} reads pending or processor_unverified, contact ZeroPoint support with the refund id; an operator ends the earlier attempt after checking the processor. Once it has a final state, act on that state.
  • When the earlier attempt is more than 23 hours 30 minutes old, nothing is ever sent again (see "A stale unknown refund is never re-sent"), but the same evidence still ends it as sale_settled_before_void when the feed was read completely. If the feed could not be read, or only a capture reads settled (alerted as resumed_void_held), the answer stays 409 payment_not_refundable and support ends it.

An ended void raises payment.needs_attention with reason resumed_void_settled. A held one raises resumed_void_held; when the same void later ends by itself, that held alert is marked resolved and resumed_void_settled follows.

The read and the void are two requests, so a sale can still settle between them. When the processor answers a void as a refund, the reversal is recorded as what happened: kind: refund, state: succeeded, the refund child as processor_transaction_id, event refund.succeeded, plus payment.needs_attention with reason void_became_refund, in the same commit. The same holds when a retry's read-back, reconciliation or a ZeroPoint operator later finds the refund child of a void. Repeating the void with its key returns that same refund. What the processor's API documents about the endpoint, VERIFIED-IN-DOCS (https://docs.poynt.com/api-reference/index.html, sections "Void transaction" and "Cancel transaction"): a void can undo an authorization, sale, capture or refund "if the acquirer supports it", is always for the full amount, takes no amount, and there can be only one per transaction. That text describes what the endpoint accepts, not card-network settlement rules.

Refund (after settlement)

A refund is for a settled sale. The original charge stays on the cardholder's card and statement, and a separate credit posts when the refund completes, which takes days. A refund may be partial; see "Refund (partial allowed)" above.

Which one?

Void before settlement, refund after. Use refund to return part of the amount at any time: a void always reverses the entire payment, so it is not a substitute for a requested partial refund. Only if the processor explicitly rejects a refund as not settled you get 409 not_settled_use_void; explain that result and obtain the operator's approval before switching to void. The mirror case: a void of a settled sale answers 409 settled_use_refund; explain it and obtain approval before refunding. In the sandbox both work on a simulated-terminal payment.

Sandbox evidence, for reading results (not a reason to break the rule above):

  • A void sent after the sale settled was executed by the processor as a refund (VERIFIED 10/15/2026 and again 11/19/2026 on the sandbox), so it behaves like a refund, not a void. ZeroPoint no longer sends a void it reads as settled (see "Void" above). If one still lands after settlement (the race), it is recorded as succeeded with kind: refund and the processor's refund child as its processor_transaction_id; the money returns on the refund timetable (the refund child settles in the next nightly batch); the events are refund.succeeded and payment.needs_attention (void_became_refund). If the answer names no refund child, ZeroPoint reads back the processor feed for exactly one REFUND child of the sale with the full amount before giving up; short of that, the void answers 502 processor_unavailable and stays pending under its original identity.
  • A refund of an unsettled sale was accepted, for keyed sales (VERIFIED 11/02/2026) and for card-present terminal sales (VERIFIED 11/16/2026). Production behaviour is unverified, and other processor setups may answer not_settled_use_void, which is still handled.
  • A refund after settlement completes as its own REFUND transaction while the sale reads REFUNDED (production, dev terminal, 11/17/2026: PILOT-02 Case 6b).

Two documented processor limits, both VERIFIED-IN-DOCS and neither exercised by ZeroPoint yet:

  • Refunds by reference work for 180 days. "Referenced Refunds are only supported for a limited time, up to 180 days from the original authorization. To execute a refund beyond the referenced refund duration limit, please use an Unreferenced Refund." (https://docs.poynt.com/api-reference/index.html, section "Create transaction"). ZeroPoint only sends referenced refunds and has no unreferenced refund, so a refund of a payment older than 180 days is expected to be refused by the processor. Plan returns inside that window.
  • Which transaction a refund names. "When refunding a transaction that has already been captured or settled, you will need to use the captureId of the transaction in the body" (https://docs.poynt.com/app-integration/cloudApps/refunds.html, section "Refund"). The documented body is {"parentId": ..., "action": "REFUND", "fundingSource": {"type": "CREDIT_DEBIT"}}, plus amounts for a partial refund. ZeroPoint refunds name the sale itself, which is right for a SALE (VERIFIED live for keyed sales and the 11/17/2026 terminal sale, both action SALE). ASSUMED: no ZeroPoint payment is an AUTHORIZE with a separate CAPTURE child; such a payment would need the capture's id as the parent.

Results

A completed attempt is succeeded or failed; an unresolved attempt may remain pending. Events refund.succeeded and refund.failed carry the refund under data.object. GET /v1/payments/{payment_id}/refunds lists every reversal; GET /v1/refunds/{refund_id} fetches one.

A 502 processor_unavailable leaves a pending refund and releases its local balance reservation. Retry only the exact original request with the same Idempotency-Key: this resumes the same refund row and processor request identity. A retry does not simply send the request again. It first reads the processor's own transaction feed, from the first attempt forward: if exactly one unrecorded REFUND child of the payment with this amount is there, the first attempt did execute, and the refund completes as succeeded with that child's id without anything being sent. If the feed cannot be read completely, or shows a reversal that is not final yet, nothing is sent, the refund is left exactly as it was (no new event), and the answer is 502 processor_unavailable again. The read covers every transaction of the merchant since the refund was made, up to 1,000 rows; a merchant busy enough to exceed that cannot have the refund completed by a retry, and needs ZeroPoint support to resolve it. Only when a complete read shows no such reversal is the request sent again under its original identity, and only while the refund is less than 23 hours 30 minutes old: that is the span in which the processor is verified to recognise a repeated request id. Past it, see "A stale unknown refund is never re-sent" below. When a re-sent request is answered with a duplicate-id code, ZeroPoint reads back the processor feed from the first attempt forward (three pages, ten seconds, no retry): exactly one unclaimed REFUND child of the payment with this amount makes the refund succeeded with that child's id, and anything else answers 502 processor_unavailable again with the row still pending. For a void, read-back accepts a VOIDED child, or a REFUNDED child for a void sent after settlement (VERIFIED 10/15/2026). When a first send is refused as a duplicate and the only reversal of the sale in that window is already recorded on another refund of the same payment, this request moved no money: the row ends failed with processor_rejected, its reservation is given back, and refund.failed names it; the earlier refund keeps the child.

While a reversal is in flight, amount_refunded_cents can include its held reservation. A pending refund nobody retries is ended by the sweeper after 15 minutes with state: failed and failure_code: processor_unverified (event refund.failed), releasing any reservation still held. Reservation release and this local failure are bookkeeping, not evidence that no money moved. A later exact retry resumes the same row and request identity; another reversal remains blocked while the original outcome is unknown.

Stripe's field names

Every refund object also carries Stripe's names for the same facts: amount (the same as amount_cents), payment_intent (the same as payment_id), currency, and status, which is state except that a refund whose outcome is unknown (failed with processor_unverified) reads status: "pending", never failed. Code written for Stripe that reads status therefore never refunds again on an unknown outcome. The event name stays refund.failed in that case: on refund.failed, read status; pending means the outcome is unknown. POST /v1/refunds with payment_intent and amount is Stripe's door onto this same refund. It never voids: it sends a refund, and answers not_settled_use_void only when the processor rejects that refund as not settled.

processor_unverified is not a refusal

refund.failed with failure_code: processor_unverified does not say the refund was refused. It says 15 minutes passed without ZeroPoint learning what the processor did. The processor may have executed it, and the customer's money may be on its way back. Treat it as "outcome unknown", never as "refund did not happen":

  • Do not refund by other means. No cash, no cheque, no refund from the processor's portal, no void, and no new refund under a new Idempotency-Key or with different arguments. Any of those can pay the customer twice.
  • Do retry the exact original request with the same Idempotency-Key (over MCP, the same refund_payment or void_payment call with the same arguments). While the outcome is unknown it resumes this refund and never starts a second one. Once the refund has succeeded, the same key returns that refund. Only after a definite failure (processor_rejected, processor_not_connected, operator_confirmed_not_processed) can the same request make a new refund, because then it is established that the first one moved no money.
  • Or contact ZeroPoint support with the refund id. An operator checks the processor and ends the refund one way or the other. You can also look the sale up in the processor's portal yourself to see whether a refund of this amount is listed.
  • ZeroPoint blocks every other refund or void of the payment (409 payment_not_refundable) while this one is unresolved, so a second reversal cannot slip through this API in the meantime.

The definite outcome arrives later as another event for the same refund id: refund.succeeded, or refund.failed with a different failure_code. Key your handling on the refund id and the latest state and failure_code, not on the first refund.failed you saw. The refund failure codes:

failure_codeFinal?Meaning
processor_unverifiedNoOutcome unknown. Follow the list above
processor_rejectedYesThe processor refused the reversal; no money moved
not_settledYesThe sale has not settled; see "Which one?"
processor_not_connectedYesThe merchant's processor authorization was refused before anything was sent; no money moved. Reconnect the merchant, then make a new refund with a new key
operator_confirmed_not_processedYesA ZeroPoint operator checked the processor and confirmed the reversal never executed; no money moved. A new refund needs a new key
sale_settled_before_voidYesA void retried after an unknown outcome found the sale settled and not reversed, so the earlier attempt was ended as not executed; no money moved. Refund instead if the money should go back (see "Void" above)

A stale unknown refund is never re-sent

A retry of a refund whose outcome is still unknown more than 23 hours 30 minutes after it was first attempted is not sent to the processor again, because beyond that point nothing verifies that the processor would recognise the repeat. The retry still reads the feed, and completes the refund as succeeded if it finds the first attempt's reversal there. In every other case, including a feed it could not read, it answers 409 payment_not_refundable with a message naming the refund, and leaves the refund exactly as it was. That answer is final for the key: stop retrying and contact ZeroPoint support with the refund id. The refund stays unresolved, and other reversals of the payment stay blocked, until an operator or reconciliation ends it.

A refund.failed event carrying failure_code: not_settled records an explicit settlement-specific processor rejection. It is a terminal answer, not an unresolved attempt, so reconciliation does not correct that row. Explain the result and obtain separate approval before a full void; never substitute a void automatically for the requested refund.

A refund has no receipt of its own: the payment's hosted receipt (receipt_url) shows the refunded amount.

A refund or void of a subscription payment shows only on the payment (amount_refunded_cents, GET /v1/payments/{payment_id}/refunds, the receipt) and in refund.succeeded. The invoice it paid stays paid with amount_paid unchanged and no refund field, the billing portal's history still reads Paid, and the subscription does not change. Code that reads only invoices does not see refunds.

A generic processor HTTP 404 means the request/resource was not found; it is not settlement evidence and never selects not_settled_use_void. That code is reserved for an explicit settlement-specific rejection. Other refusals retain processor_rejected; a processor limitation must not be relabeled as unsettled.

An empty, pending, malformed or mismatched success response is an unknown outcome, not a completed refund. It follows the 502 processor_unavailable pending/retry path. Retry the exact original call/key; do not switch to void or invent a new key. A different reversal stays blocked while the original outcome is unresolved. API requests send the exact locally reserved amount explicitly, including a full remaining-balance refund, to keep the retry bounded to the same amount.