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
| Action | type | When | Settlement | Cardholder impact |
|---|---|---|---|---|
| Auth reversal | AUTH_REVERSAL | Pre-settlement | None | Reversal sent to the gateway; the only way to cancel part of an authorization |
| Void | VOID | Pre-settlement | None | The same reversal as a full auth reversal, for the whole payment |
| Refund | REFUND / PARTIAL_REFUND | After the parent is SETTLED | Refund recorded when the gateway approves it | When the credit reaches the cardholder is up to the issuer |
| ACH reversal | ACH_REVERSAL | Not available today | — | Meant to correct an erroneous entry; use an ACH refund instead (details) |
| ACH refund | ACH_REFUND | After ACH settlement | Credit | New credit ACH entry |
| ACH void | ACH_VOID | While the debit is SUBMITTED, before its entry goes out to the ACH network | None | Never 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_DEBITwhile it isSUBMITTED, before its entry goes out to the ACH network, and requires a structuredvoid_reason. A voided entry is never presented. The debit'sstatedoes not say whether its entry has already gone out: it staysSUBMITTED.available_actionsstops offeringach_voidonce 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 missingach_voiddoes not by itself mean the entry went out), andtransaction.ach_status_changedreports 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 endsFAILED) and the debit staysSUBMITTED: after settlement, use an ACH refund. A debit stillINITIATEDhas no gateway transaction id recorded, and a void for it answers422 parent_missing_gateway_id: void it again once it isSUBMITTED. Exception: if the void answered502or504, retry it only with the sameIdempotency-Key; if that retry is refused with422 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.