---
title: "Create Return Out Transaction"
method: POST
path: "/return-outs/sweepReturn"
---

# Create Return Out Transaction

`POST /return-outs/sweepReturn`

## Request

- Base URL: `https://sandbox.openpayd.com/api`
- URL: `https://sandbox.openpayd.com/api/return-outs/sweepReturn`
- Auth: API key in header `Authorization`

Create a Return Out transaction to return funds from a previously received Pay-in transaction.

## Request body

- object
  - `transactionId` string, required: UUID of the original pay-in transaction. (e.g.`f1b25bc4-d88d-44bb-afc5-5ab32210063a`)
  - `sourceAccountId` string: ID of the master account from which the return funds will be sourced. If not provided, the system will select the primary master account.
  - `comment` string: Comment providing additional information about the return.
  - `reasonCode` 'REQUESTED_BY_CUSTOMER' | 'REFUND_REQUEST_BY_CUSTOMER' | 'NOT_SPECIFIED_REASON_CUSTOMER' | 'OTHER', required

## Response `201`

Created

- object

---

[API](https://skmtc.dev/openpayd/apis/openpayd-api.md) - [All operations](https://skmtc.dev/openpayd/apis/openpayd-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openpayd/apis/openpayd-api/revisions/0f820ef79fab?raw)
