customerId to use your org’s primary customer (created at signup).
Required scopes: fx:read, transfers:read, transfers:write
When to use swaps
- Same-chain stablecoin conversion on Solana
- Treasury FX (USDC → EURC)
- Payout preparation before a local off-ramp partner (manual today)
Lifecycle
| Status | Meaning |
|---|---|
awaiting_deposit | Waiting for deposit to depositAddress |
deposit_received | Deposit detected on-chain |
swapping | Conversion executing |
completed | Output sent to destinationAddress |
failed / expired / cancelled | Terminal states |
Create a swap
| Field | Description |
|---|---|
from / to | Currency codes (see GET /v1/rates/currencies) |
amount | Human-readable input amount |
destinationAddress | Solana address receiving output tokens |
customerId | Optional. Defaults to your org’s primary customer |
from token to depositAddress before expiresAt.
List swaps by customer
Track and cancel
Failed swaps
When a swap reachesfailed, the errorMessage field contains a human-readable reason — never raw Solana simulation logs or program errors.
errorMessage to your user and include the swap id when contacting RemitFlex support.
The same sanitized message appears on swap rows in GET /transactions under receipt.errorMessage.
API reference
Create swap
POST /swapsList swaps
GET /swapsGet swap
GET /swaps/{id}Rates
Check FX before creating