{"uid":"cap_C511Z09ot3SfNeRVhaPwa","slug":"loyal-spark-accept-p2p-offer-e20df4fa","name":"Loyal Spark Accept 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/accept_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.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_F0bA8-0Dg2Gd8SZdD76Bh","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":"Accepts a peer-to-peer trade offer for loyalty reward tokens on the Loyal Spark onchain protocol running on Base L2.","exampleAgentPrompt":"Accept the pending P2P offer on Loyal Spark — I want to take the trade where I receive 500 CoffeeCo loyalty tokens in exchange for 200 of my RetailReward tokens on Base.","exampleUseCases":[{"title":"Complete a rewards token swap offer","prompt":"There's a pending trade on Loyal Spark where someone's offering me 1000 AirlinePoints tokens for 750 of my TravelReward points. Go ahead and accept that trade for me on Base."},{"title":"Settle cross-brand loyalty exchange","prompt":"I got an offer to exchange my 300 GasStationRewards tokens for 500 of someone's EnergyCompanyPoints on Loyal Spark. Can you finalize that P2P trade on Base right now?"},{"title":"Accept incoming loyalty points offer","prompt":"My friend sent me a trade proposal on Loyal Spark — they want to give me 2000 HealthClubPoints in exchange for 400 of my FitnessAppTokens. Accept their offer and complete the settlement on Base please."}],"resultDescription":"A JSON response confirming the acceptance of the P2P trade offer, including transaction hash, updated token balances for both parties, and settlement status on Base L2.","failureModes":["Offer already accepted or expired — returns error indicating offer is no longer active","Insufficient token balance to fulfill the trade — returns balance error","Invalid offer ID — returns not found error","Wallet not authorized to accept this specific offer — returns authorization error","Network or Base L2 RPC failure — returns connectivity or timeout error","Payment of $0.01 USDC via x402 not provided — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when an AI agent or user needs to accept an existing P2P trade offer for loyalty tokens on the Loyal Spark protocol. Prefer this over general token transfer endpoints when the trade has already been initiated by a counterparty and needs to be accepted by the recipient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:34:07.419Z","isFirstParty":false}