Endpoint
POST /v3/swap
Required fields
Quote a swap
Create a swap
Send the request withquote: false after reviewing the quote. A completed swap returns debit and credit transaction records.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Swap one wallet currency for another.
POST /v3/swap
| Field | Description |
|---|---|
_from | Source currency. |
_to | Destination currency. |
amount | Amount to convert. |
external_id | Optional unique reference from your system. |
fee_percent | Optional fee percentage. |
quote | Set true to quote only, or false to create the swap. |
curl https://serviceapi.sarafa.ss/v3/swap \
-H "x-api-key: YOUR_API_KEY" \
-H "environment: sandbox" \
-H "Content-Type: application/json" \
-d '{
"_from": "USD",
"_to": "SSP",
"amount": 50,
"external_id": "swap-1001",
"quote": true
}'
quote: false after reviewing the quote. A completed swap returns debit and credit transaction records.