Complete REST API reference for Web3 Deal Discovery & Loyalty Platform
// Fetch active resale listings
const response = await fetch('https://dealcoupon.rectorspace.com/api/resale/listings?category=Food&sort=price_asc');
const data = await response.json();
console.log(data.listings); // Array of resale listingsimport requests
# Get user loyalty tier
response = requests.get(
'https://dealcoupon.rectorspace.com/api/user/tier',
params={'wallet': 'YOUR_WALLET_ADDRESS'}
)
tier_info = response.json()
print(tier_info['tierInfo']['currentTier']) # Bronze, Silver, Gold, or Diamond# List NFT coupon for resale
curl -X POST https://dealcoupon.rectorspace.com/api/resale/list \
-H "Content-Type: application/json" \
-d '{
"nft_mint": "YOUR_NFT_MINT_ADDRESS",
"seller_wallet": "YOUR_WALLET_ADDRESS",
"price_sol": 0.5
}'Solana wallet signature authentication for protected endpoints
Rate limiting and caching for optimal performance
Standard HTTP methods with JSON request/response
Live data from Solana blockchain and Supabase