latestOpenAPI 3.0.02026-08-15161451.7 KB
6ffb6a8fd74a
Affiliate
Get affiliate swaps
Retrieve paginated swap history for an affiliate by partnerCode. Supports optional date range filtering.
get/v1/affiliate/swaps
Query parameters
partnerCodestring required
startDatestring date-time
endDatestring date-time
limitinteger
cursorstring
Response
Affiliate swaps
Example response
{
"swaps": [
{
"swapId": "swap-uuid-1234",
"status": "completed",
"sellAsset": {
"assetId": "eip155:1/slip44:60",
"chainId": "eip155:1",
"name": "Ethereum",
"symbol": "ETH",
"precision": 18,
"color": "#5C6BC0",
"icon": "https://assets.coincap.io/assets/icons/eth@2x.png",
"networkName": "Ethereum",
"networkColor": "#5C6BC0",
"networkIcon": "https://assets.coincap.io/assets/icons/eth@2x.png",
"explorer": "https://etherscan.io",
"explorerAddressLink": "https://etherscan.io/address/",
"explorerTxLink": "https://etherscan.io/tx/"
},
"buyAsset": {
"assetId": "eip155:1/slip44:60",
"chainId": "eip155:1",
"name": "Ethereum",
"symbol": "ETH",
"precision": 18,
"color": "#5C6BC0",
"icon": "https://assets.coincap.io/assets/icons/eth@2x.png",
"networkName": "Ethereum",
"networkColor": "#5C6BC0",
"networkIcon": "https://assets.coincap.io/assets/icons/eth@2x.png",
"explorer": "https://etherscan.io",
"explorerAddressLink": "https://etherscan.io/address/",
"explorerTxLink": "https://etherscan.io/tx/"
},
"sellAmountCryptoPrecision": "1.0",
"sellAmountUsd": "1234.56",
"buyAmountCryptoPrecision": "948.0",
"buyAmountUsd": "1234.56",
"affiliateFeeAmountUsd": "3.70",
"affiliateBps": 60,
"partnerBps": 20,
"shapeshiftBps": 10,
"swapperName": "THORChain",
"sellTxHash": "0xabc123",
"buyTxHash": "0xdef456",
"isAffiliateVerified": true,
"createdAt": "2024-01-01T00:00:00.000Z"
}
],
"nextCursor": "swap-uuid-1234"
}