---
updatedAt: 2026-10-09T06:05:36.000Z
agentTools:
  projectIndex: https://docs.straitsx.com/llms.txt
---

# FX Payout

The FX Payout API allows you to convert funds from one currency to another and disburse to the recipient's bank account, without needing to hold a balance in the target currency.

This is useful for cross-border payout scenarios where you want to send funds in a supported source currency and have the recipient receive funds in the target currency.

***

## Supported Currency Pairs

The following currency pairs are currently supported:

| From                | To  |
| ------------------- | --- |
| XUSD                | IDR |
| USD                 | IDR |
| XSGD (coming soon)  | IDR |
| SGD   (coming soon) | IDR |

***

## Prerequisites

Before initiating an FX payout, you need to **create a payout recipient**. This recipient represents the beneficiary who will receive the disbursed funds.

Call the <Anchor label="Create a payout recipient" target="_blank" href="ref:fx-create-payout-recipient">Create a payout recipient</Anchor> endpoint with the recipient's bank account details (e.g. bank name, account number, account holder name). The returned `recipientId` will be used in the payout request.

* **On behalf of a customer profile**: Include the `initiator` object with `mode: onBehalfOf` and customerProfileId. The recipient will be created under that customer profile.
* **Direct user payout**: Omit the `initiator` object. The recipient will be created under your account directly (self mode).

You can also retrieve existing recipients using the <Anchor label="Get a list of payout recipients" target="_blank" href="ref:fx-get-a-list-of-payout-recipients">Get a list of payout recipients</Anchor> endpoint.

***

## How It Works

The FX Payout flow consists of three steps: get a quote, create a payout, and track the payout status.

<Image align="center" width="75% " src="https://files.readme.io/4c491c1c54c7c0a0bb2fdbc32b1c80c2867cde5f84ef8cd2732edc4efdc725d4-FX_Payout_Sequence_Diagram.png" />

### Step 1: Request an FX Quote

Call the <Anchor label="Create an FX quote" target="_blank" href="ref:create-an-fx-quote">Create an FX quote</Anchor> endpoint to get a rate for your desired currency pair and amount. You specify the source currency, target currency, the amount, and the tenor (`instant`).

<Callout icon="📘" theme="info">
  **Note:**

  Either `from.amount` or `to.amount` must be provided in the request, but not both. If `to.amount` is provided instead of `from.amount`, the quote is computed in reverse.
</Callout>

Each quote returned has an expiry time. You must execute the quote before it expires.

### Step 2: Create a Payout

While the quote is still valid, call the <Anchor label="Create a payout" target="_blank" href="ref:execute-an-fx-quote">Create a payout</Anchor> endpoint with the quote ID to initiate the FX conversion and payout. You will need to provide:

* The **payout details** including the payout type (`fxPayout`), recipient ID, FX quote ID, and an optional references (`internalReference` for your own tracking, `externalReference` visible to the recipient)
* *(Optional)* The **initiator** details (`mode: onBehalfOf` and `customerProfileId`) to execute the payout on behalf of a customer profile. If omitted, the payout is executed directly under your account (self mode).

Once the payout is created, it will be in `pending` status while the FX conversion and disbursement are being processed.

### Step 3: Track Payout Status

You can track the status of your payout in two ways:

1. **Polling**: Call the <Anchor label="Get a payout" target="_blank" href="ref:get-an-fx-transaction">Get a payout</Anchor> or <Anchor label="Get a list of payouts" target="_blank" href="ref:list-fx-transactions">Get a list of payouts</Anchor> endpoints to check the current status.
2. **Webhooks**: Register a callback URL to receive webhook notifications when the payout status changes.
   1. `cpFxPayoutStatusUpdated` — for customer profile payouts
   2. `userFxPayoutStatusUpdated` — for direct user payouts

***

## Transaction Statuses

| Status      | Description                                                             |
| ----------- | ----------------------------------------------------------------------- |
| `pending`   | Transaction has been created and is being processed.                    |
| `completed` | FX conversion completed successfully. Funds delivered to the recipient. |
| `failed`    | Transaction failed or was cancelled before completion.                  |

The possible status transitions are:

* `pending` → `completed`
* `pending` → `failed`

***

## Sandbox Testing

In the sandbox environment, you can manually update a payout's status using the <Anchor label="Update payout status (Sandbox)" target="_blank" href="ref:sandbox-update-fx-transaction-status">Update payout status (Sandbox)</Anchor> endpoint. This allows you to simulate the `completed` or `failed` status transitions for testing your integration.

***

## Related API Endpoints

**FX Quotes (Foreign Exchange)**

* <Anchor label="Create an FX quote" target="_blank" href="ref:create-an-fx-quote">Create an FX quote</Anchor> — Request a quote for an FX conversion.
* <Anchor label="Get an FX quote" target="_blank" href="ref:get-an-fx-quote">Get an FX quote</Anchor> — Retrieve an existing quote by ID.

**Payouts**

* <Anchor label="Create a payout" target="_blank" href="ref:execute-an-fx-quote">Create a payout</Anchor> — Execute an FX quote to initiate a cross-border payout.
* <Anchor label="Get a list of payouts" target="_blank" href="ref:list-fx-transactions">Get a list of payouts</Anchor> — Retrieve a paginated list of payouts.
* <Anchor label="Get a payout" target="_blank" href="ref:get-an-fx-transaction">Get a payout</Anchor> — Retrieve a single payout by ID.
* <Anchor label="Update payout status (Sandbox)" target="_blank" href="ref:sandbox-update-fx-transaction-status">Update payout status (Sandbox)</Anchor> — Manually update payout status in sandbox.