{"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. AI agents automate the rest.","url":"https://api.loyalspark.online/x402-gateway/vouchers/use","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","example":{"ok":true,"resource":"vouchers/use"}},"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-09-14T06:43:13.125Z","isFirstParty":false}