{"uid":"cap_wP13yHAP-j2iPXdFdbW7K","slug":"loyal-spark-redeem-reward-e77a5bfd","name":"Loyal Spark Redeem Reward","description":"Onchain loyalty protocol on Base L2. Launch B20 rewards, earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.","url":"https://api.loyalspark.online/x402-gateway/mcp-tools/redeem_reward","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","toolName","inputSchema"],"properties":{"type":{"type":"string","const":"mcp"},"example":{"type":"object"},"toolName":{"type":"string"},"transport":{"enum":["streamable-http","sse"],"type":"string"},"description":{"type":"string"},"inputSchema":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}}}},"responseSchema":{"type":"json"},"example":{"request":{"id":1,"method":"tools/call","params":{"name":"get_platform_info","arguments":{}},"jsonrpc":"2.0"},"response":{"id":1,"result":{"content":[{"text":"{\"name\":\"Loyal Spark\",\"chain\":\"Base L2\",\"chain_id\":8453,\"token_standard\":\"ERC-20\",\"features\":[\"loyalty_programs\",\"rewards\",\"marketplace\",\"tiers\",\"referrals\",\"vouchers\",\"analytics\"],\"api_docs\":\"https://loyalspark.online/api-docs\"}","type":"text"}]},"jsonrpc":"2.0"}},"exampleRequest":{"id":1,"method":"tools/call","params":{"name":"get_platform_info","arguments":{}},"jsonrpc":"2.0"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_A7d3v61gIGKh1iavRKHeJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Redeems ERC-20 loyalty reward tokens on the Base L2 blockchain via the Loyal Spark onchain loyalty protocol","exampleAgentPrompt":"Redeem 100 of my LoyalSpark reward tokens from the Coffee Club loyalty program on Base — my wallet is 0xAbC123... and I want to submit the redemption now.","exampleUseCases":[{"title":"Redeem tokens for customer discount","prompt":"I've built up loyalty tokens in the Loyal Spark Retail Rewards program and I want to redeem 250 of them right now to unlock a discount for my next purchase — my wallet is 0xDe45Fg... go ahead and submit the redemption onchain."},{"title":"Automate monthly reward token cashout","prompt":"At the end of each month, automatically redeem all my accumulated ERC-20 loyalty tokens from the Loyal Spark Fitness Club program on Base — my wallet is 0x789Hj1... and I want the redemption triggered without me having to do it manually each time."},{"title":"Spend points for exclusive member benefit","prompt":"I want to spend 500 of my Loyal Spark tokens from the TravelPlus rewards program to claim the exclusive airport lounge access benefit — use my wallet 0xKlM234... and submit the redemption to Base L2 right away."}],"resultDescription":"A JSON response containing the redemption confirmation, the Base L2 transaction hash, the amount of ERC-20 tokens redeemed, and the onchain receipt details confirming the state change on the loyalty protocol.","failureModes":["Insufficient token balance — wallet does not hold enough reward tokens to redeem the requested amount","Invalid wallet address — malformed or non-existent address provided","Reward program not found — program ID does not match an active Loyal Spark loyalty program","Payment failure — $0.01 USDC x402 payment not processed or rejected","Onchain transaction revert — smart contract rejects the redemption due to eligibility or program rules","Rate limiting — too many redemption requests in a short window"],"whenToPreferThis":"Use this endpoint when an AI agent or user needs to programmatically redeem accumulated ERC-20 loyalty reward tokens within a Loyal Spark onchain loyalty program on Base L2. Prefer this over generic blockchain transaction endpoints because it abstracts the smart contract interaction and handles loyalty program logic natively. Best suited for loyalty automation workflows, AI agent-driven redemption triggers, or P2P loyalty token use cases on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:49:26.546Z","isFirstParty":false}