Onerway
Scenario overview

Refunds and returns

While an inbound payment is still unmatched, the money can go back to the payer along the original route. Once the match succeeds, the refund API no longer applies — that is the hardest boundary on this path.

Scenarios · This page is independent of integration method. API parameters live in the API Reference; event semantics in Events and status; the diagram is at the end of this page.

Concepts and choices

A return is full amount, original route. The refund request carries only rechargeId and a reason — no amount — so partial refunds do not exist, the currency is unchanged, and the money goes back to the account it came from.

Only uncredited inbound payments can be returned. A mistyped transfer, an account that cannot be identified, or a payment nobody matches in time all belong here. A payment that was successfully matched cannot be refunded; it is handled in the business flow, not on this page.

Check the state before you submit. A successfully matched payment cannot be refunded; keep your own state check in front so you do not send pointless requests.

Two reasons only. AccountCannotBeIdentified for an unidentifiable account, Other otherwise. The choice does not block acceptance but affects follow-up and reporting.

Lifecycle and notifications

  1. Confirm eligibility. The inbound payment must not be matched yet.
  2. Submit the refund. Send rechargeId and the reason. The response means accepted, not returned.
  3. The money travels back. From the collection account to the payer's bank account. Bank processing time applies.
  4. Wait for EMFIN.BACK. status=S means returned; F means failed and carries failReason.
  5. After that. Success is final, and the payment can no longer be matched.

Edge cases

SituationWhat to do
The payment is already creditedThe refund API does not apply; handle it in the business flow and do not resubmit.
A return is in progressDo not resubmit; wait for EMFIN.BACK.
Return failed (F)Confirm the reason with Onerway before deciding whether to retry.
Bank timingControlled by the bank; Onerway cannot promise an arrival time.
After a successful returnThe payment cannot be matched again, and the user must not be told it arrived.
Partial amount or a different currencyNot supported; the request has no amount or currency field, so this path is full amount in the original currency.
Wrong reasonIt does not change acceptance; contact Onerway with the rechargeId if reporting must be corrected.

Developer view

The diagram expands the return chain by participant. The money travelling back to the payer is the only leftward fund flow in this section.

Refunds and returns · sequence diagram

StepEndpoint / eventKey fields
Submit the refundPOST /api/v2/refund/applyrechargeId, reasonForReturn (AccountCannotBeIdentified / Other)
Return resultEMFIN.BACKrechargeId, status (S/F), failReason, bankRefundSerialNo