ACH Transactions
ACH debit payment types, settlement timing, and return handling.
ACH (Automated Clearing House) transactions debit a customer's US bank account. Unlike card payments, ACH has a multi-day settlement cycle and a return window.
ACH debit
Create an ACH debit payment. The only ACH instrument is a saved account — pass its
vault_token (cvt_…) and the use_type declaring your reuse intent. Raw routing and
account numbers are rejected as unknown fields; a first-time payer saves the account
through a hosted payment page. See the
ACH Guide → for the NACHA consent fields and the SEC-code rules.
POST https://api.cresoracommerce.ai/api/v1/transactions{
"type": "ACH_DEBIT",
"merchant_id": "0190a1b2-c3d4-7e5f-8901-23456789abcd",
"amount": "500.00",
"currency": "USD",
"vault_token": "cvt_0190d8a1-2b3c-7d4e-9f12-7a8b9c0d1e2f",
"use_type": "ONE_TIME_FUTURE",
"ach_sec_code": "WEB",
"consent_text_version": "single-entry-v2.0",
"consent_text_values": {
"MerchantName": "Acme Utilities LLC",
"MerchantContact": "billing@acme.example"
},
"consent_ip": "203.0.113.42",
"consent_at": "2026-10-07T10:30:00Z"
}consent_text_version names the text you displayed: read the versions you
may attest from GET /api/v1/ach/consent-versions on the environment you
call. consent_at above is illustrative — send the instant the payer actually
authorized. For use_type: ONE_TIME_FUTURE it must fall within a 7-day
recency window, so a date copied from this page is rejected once it is more
than 7 days old. The
ACH Guide → has runnable snippets that stamp it correctly,
and explains why the window does not apply to merchant-initiated debits.
Settlement timing
| Stage | Timeline |
|---|---|
| Payment created | Immediate |
| ACH file submitted | Next business day |
| Funds received | 1–3 business days after submission |
| Return window opens | At submission |
| Return window closes | Up to 60 days (R10) |
ACH return codes
Returns are initiated by the receiving bank. Common codes:
| Code | Reason | Action |
|---|---|---|
R01 | Insufficient funds | Cresora marks a SUBMITTED or SETTLED debit RETURNED when the first return arrives. Contact support before debiting the account again |
R02 | Account closed | Stop — get new bank account |
R03 | No account / unable to locate | Stop — have the payer save the correct account through a hosted payment page and authorize debits of it |
R04 | Invalid account number | Stop — have the payer save the correct account through a hosted payment page and authorize debits of it |
R10 | Customer advises not authorized | Stop immediately — dispute risk |
R29 | Corporate not authorized | Re-obtain written authorization |
An R10 return means the customer claims they did not authorize the debit. Stop all retries immediately. Continued debiting after an R10 violates NACHA rules and can result in fines.
ACH reversal (not available)
ACH_REVERSAL is NACHA's correction instrument for an erroneous entry (wrong amount,
wrong account, duplicate). It is not available today: the gateway does not accept a
reversal of a settled debit. A request is refused with 503 feature_disabled, which is not
retryable, and nothing is recorded or sent to the gateway; a same-key retry of a reversal Cresora
recorded earlier still returns that transaction. available_actions never offers it, so do not
send one. The type and its reversal_reason values stay in the API reference. If you sent one
before it was refused and it answered 502 or 504, it recorded nothing but may still have
reached the gateway: do not send it again and do not refund the debit; contact Cresora with the
error_id.
To correct an erroneous debit, issue an ACH refund instead,
with refund_reason overpayment, or other_with_note with a refund_note. A refund can be
partial, so a debit taken for too much is corrected by refunding the excess.
ACH refund (post-settlement)
ACH_VOID and ACH_REFUND are also accepted on a SUSPENDED or CLOSED merchant, so that money taken before the suspension or close can still be returned. A new debit is refused. See Suspended or closed merchants; the pending-refund rule in the Refund rules applies to ACH_REFUND too.
After the ACH has settled, issue a credit:
POST https://api.cresoracommerce.ai/api/v1/transactions
{ "type": "ACH_REFUND", "merchant_id": "{merchantId}", "parent_transaction_id": "{transactionId}", "refund_reason": "customer_requested" }This creates a new credit ACH entry. Cresora receives no event when the credit clears; when it reaches the customer is up to the customer's bank.
Without amount, the refund is for whatever remains unrefunded on the debit. To refund
part of it, send an amount greater than zero. An amount above what remains is rejected
with 422 ach_refund_exceeds_remaining.
By default, an ACH refund must be issued within 60 days after the debit settles; after that it is
rejected with 422 ach_refund_window_expired, which is not retryable. A refund needs a settled
debit. While the debit is SUBMITTED, cancel it with ACH_VOID. If the void is refused with
422 gateway_operation_not_allowed_in_state, or ends FAILED, the entry has already gone out and
the debit stays SUBMITTED: wait until it is SETTLED, then refund it. One
exception: an ACH_VOID whose outcome is unknown — 502 gateway_outcome_unknown,
502 gateway_unavailable or 504 gateway_timeout — records nothing, yet the gateway may still
have voided the debit, which keeps reading SUBMITTED. So retry it only with the same
Idempotency-Key: a new key can reverse the debit twice. If that same-key retry is refused with
422 gateway_operation_not_allowed_in_state, the first void may have gone through: do not refund
the debit, and contact Cresora with the error_id. A debit that comes back RETURNED, before or
after it settles, has nothing to refund.