v1
latestOpenAPI 3.0.02026-07-24103118224.7 KBSwap
Get a swap by id
Returns details of a specific swap owned by the authenticated merchant, including the resolved toAmountInCents once settlement has produced a destination amount.
get/api/swap/{id}
Path parameters
idstring required
Example:swap_01JABCDEF0123456789XYZ
Unique identifier of the swap
Response
Swap details
Example response
{
"id": "swap_01JABCDEF0123456789XYZ",
"userId": "usr_01JABCDEF0123456789XYZ",
"fromCurrency": "USDC",
"toCurrency": "EURC",
"amount": 12345,
"status": "PENDING",
"context": "privy",
"toAmountInCents": 11300
}