{"uid":"cap_kTesq5yt_CmyQZBJYEVPS","slug":"loyal-spark-recipient-api-accept-offer-a70489ed","name":"Loyal Spark Recipient API - Accept Offer","description":"Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes, customers earn real value with every purchase, and AI agents automate the rest via REST and MCP. Free plan mints up to 1,000 tokens per month; every call is scoped by row-level security to the wallet behind the API key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.","url":"https://api.loyalspark.online/x402-gateway/recipient-api/accept-offer","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}},"inputSchema":{"type":"object"}}},"responseSchema":{"type":"json","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema"},"description":"JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape."},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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_1RAPuKzwC6RkE57VV_mDg","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 (Base L2)","exampleAgentPrompt":"Accept the pending trade offer on Loyal Spark for my loyalty reward tokens — submit it as a JSON POST so the offer gets confirmed and the ERC-20 tokens are transferred to my wallet.","exampleUseCases":[{"title":"Claim pending loyalty token swap","prompt":"I just got a notification that someone sent me a loyalty token offer on Loyal Spark — can you accept it on my behalf so the tokens get transferred to my wallet right away?"},{"title":"Finalize peer-to-peer reward deal","prompt":"My friend sent me some of their coffee shop loyalty tokens through Loyal Spark and I want to finalize the trade — go ahead and accept the offer so the ERC-20 tokens land in my account on Base."},{"title":"Confirm incoming token exchange offer","prompt":"There's a pending reward token exchange waiting for me on the Loyal Spark protocol — please accept it and confirm the deal is done onchain so I can start using those loyalty points."}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating success and a 'resource' field confirming the accepted endpoint path (e.g. {ok: true, resource: 'recipient-api/accept-offer'}), signaling the offer has been accepted onchain.","failureModes":["Offer already accepted or expired — returns error indicating invalid offer state","Missing required body fields (type, method, bodyType, body) — returns 400 validation error","Invalid method value (only POST/PUT/PATCH accepted) — schema validation failure","Payment not included or insufficient USDC — x402 payment required error","Offer ID not found or not addressed to caller — authorization or not-found error","Network or Base L2 RPC failure — server-side 5xx error"],"whenToPreferThis":"Use this endpoint when an AI agent or user needs to accept an existing P2P loyalty token trade offer on the Loyal Spark protocol. This is specifically for the recipient side of an offer — not for creating offers, earning points through purchases, or redeeming tokens directly with a merchant. Choose this when the user has received a trade offer and wants to finalize the exchange of ERC-20 loyalty tokens on Base L2.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:42:19.283Z","isFirstParty":false}