# Return ACH Origination

Simulates the receiving bank returning an ACH origination with the NACHA return code you choose. Only available in sandbox.
Applies to an ACH origination that is:
- `IN_TRANSIT`, with any NACHA return code.
- `PROCESSED`, for a `DEBIT` (pull) origination, as an extended return. Only `R05`, `R07`, `R10`, `R11`, `R33`, `R37`, `R38`, `R51`, `R52` and `R53` are accepted.

In sandbox, an origination created with [Create ACH Origination](/products/partner-api/reference/ach/create_ach_origination_api_v1_jiko_accounts__account_id__ach_originating__post) reaches `IN_TRANSIT` on its own shortly after creation, and stays there until you settle or return it.
### What follows
The origination moves to `REJECTED` and you receive `transfers.ach.out.rejected`. What happens to the money depends on the origination:
| Origination | Returned when | Result |
|  --- | --- | --- |
| `CREDIT` (push) | `IN_TRANSIT` | A reversal books the money back to the account, with the return code. |
| `DEBIT` (pull) | `IN_TRANSIT` | Nothing was booked, so there is no reversal. |
| `DEBIT` (pull) | `PROCESSED` | A reversal takes the money back from the account, with the return code. |

A `202` means the request was accepted, not that the origination has been returned. Follow the outcome through webhooks and the origination's status.

Endpoint: POST /api/v1/sandbox/jiko-accounts/{account_id}/ach-originating/{transfer_id}/return/
Version: Version: 22fbfcad
Security: HTTPBearer

## Description:

  - `What follows` ()
    The origination moves to REJECTED and you receive transfers.ach.out.rejected. What happens to the money depends on the origination: OriginationReturned whenResultCREDIT (push)IN_TRANSITA reversal books the money back to the account, with the return code.DEBIT (pull)IN_TRANSITNothing was booked, so there is no reversal.DEBIT (pull)PROCESSEDA reversal takes the money back from the account, with the return code. A 202 means the request was accepted, not that the origination has been returned. Follow the outcome through webhooks and the origination's status.

## Security:

  - `HTTPBearer` (unknown)
    http bearer

## Path parameters:

  - `account_id` (string, required)

  - `transfer_id` (string, required)

## Header parameters:

  - `x-jiko-idempotency` (string, required)
    A UUID you generate to identify this request. Reusing a value that was already sent is rejected as a duplicate request.

  - `x-jiko-signature` (string, required)
    Base64-encoded HMAC-SHA256 hash of `x-jiko-idempotency + request pathname + body`, keyed with your shared secret. See [Authentication](/products/partner-api/guides/building/auth) for the full algorithm and a code sample.

## Request fields (application/json):

  - `return_code` (string, required)
    A NACHA return code, such as `R01`. For an extended return after settlement, only `R05`, `R07`, `R10`, `R11`, `R33`, `R37`, `R38`, `R51`, `R52` or `R53`.

## Request examples:

  - `Return in transit` (unknown)

  - `Extended return after settlement` (unknown)

## Response 202:

  - `202` (unknown)
    Successful Response

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `type` (string, required)

  - `instance` (string, required)

  - `detail` (string, required)

  - `trace_id` (any)

## Response 422:

  - `422` (unknown)
    Unprocessable Content

## Response 422 fields (application/json):

  - `type` (string, required)

  - `instance` (string, required)

  - `detail` (string, required)

  - `trace_id` (any)

## Response 404 examples:

  - `Account not found` (unknown)

  - `Origination not found` (unknown)

## Response 422 examples:

  - `Origination not in transit or settled` (unknown)

  - `Return code not allowed after settlement` (unknown)

  - `Unknown return code` (unknown)

