# 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

| Situation | What to do |
| --- | --- |
| The payment is already credited | The refund API does not apply; handle it in the business flow and do not resubmit. |
| A return is in progress | Do not resubmit; wait for `EMFIN.BACK`. |
| Return failed (`F`) | Confirm the reason with Onerway before deciding whether to retry. |
| Bank timing | Controlled by the bank; Onerway cannot promise an arrival time. |
| After a successful return | The payment cannot be matched again, and the user must not be told it arrived. |
| Partial amount or a different currency | Not supported; the request has no amount or currency field, so this path is full amount in the original currency. |
| Wrong reason | It 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.

![Refund and return sequence](/images/embedded-finance/en/scenarios/08-general-refund.png)

*Refunds and returns · sequence diagram*

| Step | Endpoint / event | Key fields |
| --- | --- | --- |
| Submit the refund | `POST /api/v2/refund/apply` | `rechargeId`, `reasonForReturn` (`AccountCannotBeIdentified` / `Other`) |
| Return result | `EMFIN.BACK` | `rechargeId`, `status` (S/F), `failReason`, `bankRefundSerialNo` |

## Related

- [Scenario overview](/embedded-finance/get-started/scenarios)
- [Inbound and crediting](/embedded-finance/get-started/scenarios/inbound)
- [Events and status](/embedded-finance/get-started/scenarios/events-and-status)
