{"uid":"cap_2lJ64g2VTZiYLvbnU-QMF","slug":"loyal-spark-cancel-p2p-offer-46c0d98c","name":"Loyal Spark Cancel P2P Offer","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/recipient-mcp-tools/cancel_p2p_offer","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.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2YMJm3yhimObC91-I1lCI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cancels an existing peer-to-peer loyalty token trade offer on the Loyal Spark onchain protocol running on Base L2","exampleAgentPrompt":"Cancel my open P2P trade offer on Loyal Spark — the one where I was selling my ERC-20 loyalty tokens — I changed my mind and want to withdraw it before anyone accepts it.","exampleUseCases":[{"title":"Revoke loyalty token swap mid-negotiation","prompt":"I posted a P2P offer to trade some of my earned loyalty points for someone else's tokens, but the market shifted and I want to pull it back. Can you cancel that offer for me right now before it gets accepted?"},{"title":"Withdraw pending reward exchange quickly","prompt":"I created a peer-to-peer trade offer on Loyal Spark yesterday, but I'd rather hold onto those tokens now. Please cancel my open P2P offer so no one can accept it anymore."},{"title":"Stop accidental loyalty token offer","prompt":"I accidentally created a P2P loyalty token trade offer on Base L2 with the wrong amount. Just cancel the whole thing for me so I can create a new one with the correct details."}],"resultDescription":"A JSON response confirming the cancellation of the specified P2P offer, including the updated offer status, transaction hash or confirmation details on Base L2, and any relevant state changes to the offer record.","failureModes":["Offer not found — invalid or non-existent offer ID returns error","Offer already accepted — cannot cancel an offer that has already been fulfilled","Unauthorized — caller is not the original offer creator","Offer already cancelled — attempting to cancel an already-cancelled offer","Network error — Base L2 transaction failure or timeout","Payment failure — x402 USDC payment not processed correctly"],"whenToPreferThis":"Use this endpoint when an AI agent or user needs to withdraw or revoke a previously created P2P loyalty token trade offer on the Loyal Spark protocol before it has been accepted by another party. Prefer this over general blockchain transaction endpoints when working specifically within the Loyal Spark loyalty rewards ecosystem on Base L2.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:53:10.061Z","isFirstParty":false}