{"uid":"cap_xFAJd5p5JTkj8MSWtTOd7","slug":"loyal-spark-use-voucher-8329e0ca","name":"Loyal Spark - Use Voucher","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. On the paid retry also send x-api-key: lsk_.... A payment without a live key is not charged. The call is scoped to the wallet behind that key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.","url":"https://api.loyalspark.online/x402-gateway/vouchers/use?utm_source=zero.xyz","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.005","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.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_dCKIM4R8mN7sZWvXpjRaP","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":"Redeems a voucher on the Loyal Spark onchain loyalty protocol running on Base L2","exampleAgentPrompt":"I want to redeem my Loyal Spark voucher — use the voucher I have in my loyalty wallet on Base L2 and apply it now so I can claim the reward.","exampleUseCases":null,"resultDescription":"Returns a JSON object with an 'ok' boolean indicating whether the voucher was successfully used, and a 'resource' field confirming the operation type ('vouchers/use').","failureModes":["Invalid or expired voucher ID returns an error response","Voucher already redeemed results in conflict/duplicate error","Missing required body fields causes validation failure","Insufficient x402 payment (below $0.005 USDC) results in 402 Payment Required","Malformed body type or method mismatch triggers 400 Bad Request","Network or Base L2 RPC downtime causes timeout or 503 error"],"whenToPreferThis":"Use this endpoint when you need to redeem or consume a specific voucher within the Loyal Spark onchain loyalty ecosystem on Base L2. Prefer this over generic token transfer endpoints when the operation specifically involves marking a voucher as used/redeemed rather than simply transferring tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T13:00:28.754Z","isFirstParty":false,"canonicalSlug":"loyal-spark-use-voucher-a8cd7be4"}