Skip to main content
Skip to Content
Cresora Commerce
Transaction Types

Auth Reversal vs. Void

Two transaction types for cancelling before settlement — what each accepts and records.

Both cancel a payment before settlement, and they are two distinct transaction types you choose between — not one endpoint that routes on timing. At the gateway both send the same reversal operation; they differ in what they accept and what they record.

AUTH_REVERSAL — reverse all or part of the authorization

Cresora sends the gateway a reversal of the authorization. It is the only type that takes a partial amount.

PropertyValue
WirePOST /api/v1/transactions with "type": "AUTH_REVERSAL"
Valid againstAUTHORIZED or CAPTURED parents, pre-settlement
EffectA full reversal makes the parent REVERSED; a partial one leaves it AUTHORIZED. transaction.auth_reversed fires on both. On a captured authorization, a full reversal also moves its CAPTURE or PARTIAL_CAPTURE row to REVERSED, whichever you name (the other row is left as it is if it has already left CAPTURED). A partial reversal is accepted only against an AUTHORIZED parent; against a CAPTURED parent it is refused (422 partial_reversal_parent_not_authorized), and a recurring-contract charge is refused earlier (see below)
amountOmit for a full reversal of the remaining hold; send one for a partial reversal
Use caseCustomer cancels, order changes, authorization created in error — and the only way to cancel part of an authorization

A partial reversal (amount strictly less than the remaining authorized amount) leaves the parent AUTHORIZED for the remainder and records a PARTIAL_AUTH_REVERSAL child. Partial support is processor-gated — an unsupported processor declines through the normal decline_code surface. That remainder cannot be captured today; send an AUTH_REVERSAL with no amount to release it.

VOID — cancel the whole payment

Cresora sends the gateway the same reversal operation as a full AUTH_REVERSAL, without an amount. A declined VOID is recorded as FAILED, and the parent is unchanged.

PropertyValue
WirePOST /api/v1/transactions with "type": "VOID"
Valid againstAUTHORIZED, or CAPTURED but not yet SETTLED; not after a partial reversal (422 parent_not_voidable_in_state)
EffectThe parent becomes VOIDED; transaction.voided fires once, on the VOID transaction, and its parentTransactionId names the row you sent. An authorization and its CAPTURE or PARTIAL_CAPTURE row are one record at the gateway, so voiding a captured authorization cancels both rows, whichever you name, unless the other row has already left CAPTURED, in which case it is left as it is
amountIgnored — lifted from the parent
Use caseCancelling the whole payment before settlement

How to choose

curl -X POST https://api.cresoracommerce.ai/api/v1/transactions \
  -H "Authorization: Bearer csk_ab12cd34_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: idem_$(uuidgen)" \
  -d '{
    "type": "AUTH_REVERSAL",
    "merchant_id": "0190a1b2-c3d4-7e5f-8901-23456789abcd",
    "parent_transaction_id": "0190d8a1-2b3c-7d4e-9f12-7a8b9c0d1e2f"
  }'

The response is a normal transaction object (transaction_id, state, …) — there is no reversal_type discriminator field, because you picked the operation.

  • The cutoff is settlement, not the clock. Voidability is gated by "settled at processor", not by a same-day/next-day window. Once the parent is SETTLED, the only remaining operation is a refund.
  • To cancel part of an authorization, use AUTH_REVERSAL — only it takes an amount, and only against an AUTHORIZED parent. To cancel the whole payment either type works, because both send the same reversal; pick the one whose event and parent state your system handles (transaction.auth_reversed and REVERSED, or transaction.voided and VOIDED). After a partial reversal, only an AUTH_REVERSAL with no amount cancels the rest: a VOID is refused with 422 parent_not_voidable_in_state. A card charge collected by a recurring contract is the exception: an AUTH_REVERSAL on it is always refused (parent_not_reversible_type), and a VOID or a refund on it is refused today with 503 feature_disabled.
  • One operation at a time per parent row. While another operation with the same parent_transaction_id is still INITIATED, because Cresora is waiting for the gateway, a new VOID or AUTH_REVERSAL is refused with 422 operation_pending_on_parent, which is retryable, unless one of its own earlier checks (such as the parent's state) answers first. The check is by parent id, so a cancel that names the other row of a captured authorization (the authorization or its CAPTURE row) is not stopped by Cresora. How long the refusal lasts is in the Refunds and Voids Guide.
  • When the issuer releases the hold is up to the issuer, whichever type you send — there is no fixed release window to promise a customer.
  • A suspended or closed merchant: Cresora still accepts a void or reversal of a payment it took before, but how the gateway treats it on a merchant it no longer holds as live is not yet confirmed, and it may refuse it. A capture or a new charge is refused. See Suspended or closed merchants.
  • A surcharged payment has its surcharge reversed by the gateway, as the gateway describes it; this has not yet been observed on every path. When Cresora records the reversal, it records it on the sale or the authorization, as its surcharge_reversed_amount, and transaction.surcharge_reversed names that row. This holds when your VOID or AUTH_REVERSAL names the CAPTURE or PARTIAL_CAPTURE row too. A partial reversal, which leaves the authorization AUTHORIZED, is not recorded when it is made. You can then release the rest only with an AUTH_REVERSAL with no amount (a VOID is refused); the figure recorded after it is the gateway's, which, as the gateway describes it, adds up every reversal, the partial one included. See the Surcharging Guide for what surcharge_reversed_amount records and when.
  • A payment with a convenience fee: whether a void or reversal also cancels the convenience fee is not yet confirmed with the gateway, so do not promise it to the payer. For refunds, see Amounts, receipts and refunds.