Skip to main content
Skip to Content
Cresora Commerce
Transaction Types

Transaction Types

Authoritative reference for every transaction action in Cresora Commerce.

Understanding the distinction between an auth reversal, a void, and a refund is essential for correct integration.

Quick reference

ActiontypeWhenSettlementCardholder impact
Auth reversalAUTH_REVERSALPre-settlementNoneReversal sent to the gateway; the only way to cancel part of an authorization
VoidVOIDPre-settlementNoneThe same reversal as a full auth reversal, for the whole payment
RefundREFUND / PARTIAL_REFUNDAfter the parent is SETTLEDRefund recorded when the gateway approves itWhen the credit reaches the cardholder is up to the issuer
ACH reversalACH_REVERSALNot available today—Meant to correct an erroneous entry; use an ACH refund instead (details)
ACH refundACH_REFUNDAfter ACH settlementCreditNew credit ACH entry
ACH voidACH_VOIDWhile the debit is SUBMITTED, before its entry goes out to the ACH networkNoneNever presented, so never debited. Once the entry has gone out, the void is refused

Every action is the same endpoint — POST /api/v1/transactions — discriminated by the type field in the body, with parent_transaction_id linking follow-up operations to the original.

Card transactions

Auth reversal vs. void

Two distinct types you choose between, not a timing-based routing decision. Both send the gateway the same reversal operation, and only AUTH_REVERSAL takes a partial amount. The cutoff for both is settlement ("settled at processor"), not a same-day window. See Auth Reversal vs. Void.

Refund vs. credit

A refund reverses a settled payment — pre-settlement, cancel with VOID/AUTH_REVERSAL instead:

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": "PARTIAL_REFUND",
    "merchant_id": "0190a1b2-c3d4-7e5f-8901-23456789abcd",
    "parent_transaction_id": "0190d8a1-2b3c-7d4e-9f12-7a8b9c0d1e2f",
    "amount": "50.00",
    "refund_reason": "customer_requested"
  }'

Use type: "REFUND" (no amount — the platform derives the remainder) for a full refund. Amounts are decimal strings, never integer cents.

ACH transactions

ACH adds three transaction types you initiate (the reversal is not available today), and one event you receive:

  • ACH return — initiated by the receiving bank (R-code). Cresora fires transaction.returned. Not initiated by you.
  • ACH reversal — a NACHA erroneous-entry reversal. Not available today: the gateway does not accept a reversal of a settled debit, so correct an erroneous debit with an ACH refund. See ACH reversal.
  • ACH refund — credit entry after the debit settles.
  • ACH void — cancels an ACH_DEBIT while it is SUBMITTED, before its entry goes out to the ACH network, and requires a structured void_reason. A voided entry is never presented. The debit's state does not say whether its entry has already gone out: it stays SUBMITTED. available_actions stops offering ach_void once the bank rail's latest status shows that it has (it also stops when the bank rail reports the entry voided or failed, so a missing ach_void does not by itself mean the entry went out), and transaction.ach_status_changed reports each status change that Cresora applies. Both go by the status the bank rail has reported so far, so a void can still be sent for an entry that has already gone out. It is refused (422 gateway_operation_not_allowed_in_state, or a void transaction that ends FAILED) and the debit stays SUBMITTED: after settlement, use an ACH refund. A debit still INITIATED has no gateway transaction id recorded, and a void for it answers 422 parent_missing_gateway_id: void it again once it is SUBMITTED. Exception: if the void answered 502 or 504, retry it only with the same Idempotency-Key; if that retry is refused with 422 gateway_operation_not_allowed_in_state, the first void may have gone through, so do not refund — contact Cresora. See ACH refund.

Disputes (chargebacks)

A dispute is initiated by the cardholder through their bank, and it is worked through the acquirer or processor. Cresora does not receive disputes today: no dispute event fires, and the Partner Portal's Disputes list stays empty.