{"uid":"cap_79M_vlk9sQyooPT0N-ngu","slug":"loyal-spark-cancel-stale-offers-27920c04","name":"Loyal Spark Cancel Stale Offers","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/cancel_stale_offers","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":null,"exampleRequest":null,"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_AQJ4ke-G6nbsa_-LF3ghO","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":"Cancels stale or expired peer-to-peer token trade offers on the Loyal Spark onchain loyalty protocol running on Base L2.","exampleAgentPrompt":"Can you cancel all my stale and unfilled loyalty token trade offers on Loyal Spark so my marketplace listings are cleaned up?","exampleUseCases":[{"title":"Automated loyalty rewards marketplace cleanup","prompt":"Go through my Loyal Spark account and cancel any expired peer-to-peer token offers that are just sitting there taking up space. I want to keep my trading queue fresh and remove all the old unfilled listings."},{"title":"Batch remove outdated token swap listings","prompt":"I've got a bunch of old loyalty token trade offers hanging around on Base L2 that never got filled. Can you cancel all the stale ones so I can start fresh with new offers?"},{"title":"Periodic stale offer invalidation workflow","prompt":"Set up a regular cleanup routine that cancels my expired loyalty rewards offers on Loyal Spark. I want the protocol to automatically invalidate any unfulfilled P2P token swaps that are no longer relevant so my marketplace stays current."}],"resultDescription":"A JSON response indicating which P2P loyalty token offers were successfully cancelled, including offer IDs, token addresses, and updated statuses confirming the stale offers have been invalidated on the Base L2 protocol.","failureModes":["No stale offers found to cancel — returns empty result set","Invalid or unauthorized wallet address — returns 401/403 error","Offer already filled or cancelled — idempotency conflict response","Blockchain transaction failure on Base L2 — returns error with transaction hash","Rate limit or payment failure for $0.01 USDC — returns 402 payment required","Malformed request body — returns 400 with validation error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically clean up expired or unfilled peer-to-peer loyalty token trade offers on the Loyal Spark protocol. Prefer this over manual on-chain transactions when automating marketplace hygiene tasks or when integrating loyalty reward workflows via MCP/REST tooling on Base L2.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:54:02.017Z","isFirstParty":false}