DealCoupon API Documentation

Complete REST API reference for Web3 Deal Discovery & Loyalty Platform

v0.5.029 EndpointsOpenAPI 3.0

Quick Start Integration

JavaScript / TypeScript

// 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 listings

Python

import 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

cURL

# 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
  }'

🔒 Secure

Solana wallet signature authentication for protected endpoints

⚡ Fast

Rate limiting and caching for optimal performance

📊 RESTful

Standard HTTP methods with JSON request/response

🔄 Real-time

Live data from Solana blockchain and Supabase

Pitch Deck