> ## Documentation Index
> Fetch the complete documentation index at: https://docs.swipelux.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send funds

> Send a Swipelux payout from a customer wallet to a first-party bank account, another wallet, or a third-party recipient destination in fiat or stablecoin.

Every payout starts from a ready, funded issued wallet. The destination model depends on who owns the endpoint.

```mermaid theme={null}
%%{init: {"flowchart": {"rankSpacing": 20, "nodeSpacing": 16, "wrappingWidth": 80, "padding": 8}}}%%
flowchart LR
  A["Funded issued wallet"] --> B{{"Who owns the endpoint?"}}
  B -->|"Customer"| C["Customer account acc_..."]
  B -->|"Another person or business"| D["Recipient destination dst_..."]
  C --> E["Create quote"]
  D --> E
  E --> F["Execute and track transfer"]
```

## Before you start

Refetch the source wallet. Confirm its current status permits the payout and its available balance covers the intended source amount. Store its response-derived ID as `SOURCE_WALLET_ID`.

You also need a ready payout capability for the current customer and selected destination.

Existing Tron wallets can send USDT to another Tron wallet with a `stablecoin_transfers` quote. The input and output must use the same network and stablecoin. You cannot create new issued wallets on Tron.

## 1. Prepare the destination

> [tab] First-party
>
> Use a customer-owned external bank account when the customer owns the endpoint. Create it with [`POST /v3/customers/{customerId}/accounts`](https://docs.swipelux.com/api-reference/accounts/post-v3-customers-by-customer-id-accounts) and these headers:
>
> ```http Request headers theme={null}
> X-API-Key: ${SWIPELUX_API_KEY}
> Idempotency-Key: payout-account-001
> Content-Type: application/json
> ```
>
> ```json Request body theme={null}
> {
>   "origin": "external",
>   "type": "bank",
>   "methods": ["ach", "wire"],
>   "country": "US",
>   "currency": "USD",
>   "details": {
>     "routingNumber": "021000021",
>     "accountNumber": "123456789",
>     "accountType": "checking",
>     "bankName": "Example Bank",
>     "accountHolderName": "Acme Payments SAS"
>   },
>   "label": "Customer operating account"
> }
> ```
>
> Read it with [`GET /v3/customers/{customerId}/accounts/{accountId}`](https://docs.swipelux.com/api-reference/accounts/get-v3-customers-by-customer-id-accounts-by-account-id). Continue only when its current status permits the payout. Store its `acc_` ID as `PAYOUT_DESTINATION_ID`.

> [tab] Third-party
>
> Create the person or business and their bank or wallet endpoint through [Recipients and destinations](https://docs.swipelux.com/integration/recipients.md). Continue only when the destination is ready.
>
> Store the returned `dst_` ID as `PAYOUT_DESTINATION_ID`. Do not use the recipient's `rcp_` ID as the quote destination.

## 2. Create the payout quote

Use [`POST /v3/quotes`](https://docs.swipelux.com/api-reference/money-movement/post-v3-quotes) with these headers:

```http Request headers theme={null}
X-API-Key: ${SWIPELUX_API_KEY}
Idempotency-Key: payout-quote-001
Content-Type: application/json
```

```json Request body theme={null}
{
  "customerId": "${CUSTOMER_ID}",
  "capabilityId": "${CAPABILITY_ID}",
  "in": {
    "amount": "150.00",
    "currency": "USDC",
    "accountId": "${SOURCE_WALLET_ID}"
  },
  "destinationId": "${PAYOUT_DESTINATION_ID}",
  "out": {
    "currency": "USD"
  }
}
```

Store `data.id` as `QUOTE_ID` and present the returned price and fees.

### Choose a bank route

For a crypto-to-fiat payout, you can set the optional `institutionId` to require an approved bank route for the customer. Omit it to use automatic routing.

```json Request body with institutionId theme={null}
{
  "customerId": "${CUSTOMER_ID}",
  "capabilityId": "${CAPABILITY_ID}",
  "institutionId": "${INSTITUTION_ID}",
  "in": {
    "amount": "150.00",
    "currency": "USDC",
    "accountId": "${SOURCE_WALLET_ID}"
  },
  "destinationId": "${PAYOUT_DESTINATION_ID}",
  "out": {
    "currency": "USD"
  }
}
```

* An explicit `institutionId` never falls back to another bank. When the selected bank has no ready route for this customer, capability, and destination, `POST /v3/quotes` returns `422` [`bank_not_supported_for_customer`](https://docs.swipelux.com/integration/errors#bank-not-supported-for-customer) with the pointer `/institutionId`.
* `institutionId` is only valid on crypto-to-fiat payout quotes. Sending it on a pay-in, card, or stablecoin transfer quote returns `400` [`validation_error`](https://docs.swipelux.com/integration/errors#validation-error).
* Quote and transfer reads echo the `institutionId` of the selected route, including an automatically selected one, when the bank can be identified.

### SWIFT payouts

In production, USD SWIFT payouts need a ready SWIFT capability that supports payouts (`swift_pooled` or `swift_named`) and are funded by USDC on Ethereum, Base, or Polygon, or by USDT on Ethereum or Polygon. The recipient amount after fees must be at least 100.00 USD.

A SWIFT destination needs the bank's street address in `bankAddress`, `bankCity`, `bankState`, and `bankPostalCode`. The BIC country must match the bank country. Swipelux takes the beneficiary address from the customer or recipient profile.

### Pix payouts

Pix and Pix Safe [recipient destinations](https://docs.swipelux.com/integration/recipients.md) receive BRL. Quote the payout with the customer's ready Pix capability (`pix_pooled`), fund it with USDC, and set `out.currency` to `BRL`. USDT cannot fund a BRL payout.

A Pix payout cannot carry a developer fee. If the source account has developer fees, set `fees.breakdown.developer` to `{"fixed": "0.00", "bips": 0}` in the quote request. Otherwise, `POST /v3/quotes` returns `400` [`validation_error`](https://docs.swipelux.com/integration/errors#validation-error).

Swipelux prices the quote only after the destination's bank details are approved. While they are being verified, `POST /v3/quotes` returns `400` [`validation_error`](https://docs.swipelux.com/integration/errors#validation-error) with a `detail` saying the destination is still being verified, so request a new quote once verification completes. If the bank details were rejected or the destination's setup is incomplete, the `detail` asks you to contact support instead, and new quotes keep failing until support completes the setup. If verification cannot be checked, it returns `503` [`quote_temporarily_unavailable`](https://docs.swipelux.com/integration/errors#quote-temporarily-unavailable); retry later.

## 3. Execute the payout

Create the transfer with [`POST /v3/transfers`](https://docs.swipelux.com/api-reference/money-movement/post-v3-transfers). Use one new key for this intended execution:

```http Request headers theme={null}
X-API-Key: ${SWIPELUX_API_KEY}
Idempotency-Key: payout-transfer-001
Content-Type: application/json
```

```json Request body theme={null}
{
  "quoteId": "${QUOTE_ID}"
}
```

Store transfer `data.id` as `TRANSFER_ID`. A successful create starts the payout; it does not prove delivery.

## 4. Track delivery

Read [`GET /v3/transfers/{transferId}`](https://docs.swipelux.com/api-reference/money-movement/get-v3-transfers-by-transfer-id) after creation and after each event. Use the latest `data.state`, `data.stateDetail`, and `data.openTaskIds` to decide whether to wait, act, or show a terminal outcome.

Next, review [Quotes and transfers](https://docs.swipelux.com/integration/quotes-and-transfers.md) for exact amounts, safe execution recovery, and transfer tasks.


## Related topics

- [Common flows](https://docs.swipelux.com/integration/common-flows.md)
- [Integration overview](https://docs.swipelux.com/integration/overview.md)
- [Accounts and wallets](https://docs.swipelux.com/integration/accounts.md)
- [Quickstart](https://docs.swipelux.com/integration/quickstart.md)
- [Jurisdiction Framework](https://docs.swipelux.com/knowledge-base/compliance/jurisdictions-and-availability.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.