{"uid":"cap_PxVegbNsChJ-HqBxVJayy","slug":"loyal-spark-create-gift-certificate-5d9d225f","name":"Loyal Spark - Create Gift Certificate","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/mcp-tools/create_gift_certificate","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":{"request":{"id":1,"method":"tools/call","params":{"name":"get_platform_info","arguments":{}},"jsonrpc":"2.0"},"response":{"id":1,"result":{"content":[{"text":"{\"name\":\"Loyal Spark\",\"chain\":\"Base L2\",\"chain_id\":8453,\"token_standard\":\"ERC-20\",\"features\":[\"loyalty_programs\",\"rewards\",\"marketplace\",\"tiers\",\"referrals\",\"vouchers\",\"analytics\"],\"api_docs\":\"https://loyalspark.online/api-docs\"}","type":"text"}]},"jsonrpc":"2.0"}},"exampleRequest":{"id":1,"method":"tools/call","params":{"name":"get_platform_info","arguments":{}},"jsonrpc":"2.0"},"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_mQEjKE0oo9KlCA0X1guqx","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":"Creates an onchain gift certificate backed by ERC-20 loyalty tokens on Base L2 via the Loyal Spark protocol","exampleAgentPrompt":"Create a gift certificate on Loyal Spark worth 500 loyalty tokens for wallet address 0xABC...123 in my 'CoffeeRewards' program, valid for 90 days.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the newly created gift certificate's ID, onchain transaction hash, redemption details, token amount, expiry date, and recipient wallet information on Base L2.","failureModes":["Insufficient loyalty token balance — 402 payment required or insufficient program funds","Invalid recipient wallet address — malformed Ethereum address returns 400 error","Program not found — loyalty program identifier does not exist returns 404","Onchain transaction failure — Base L2 network congestion or gas issues returns 500","Payment not included — missing x402 USDC micropayment header returns 402","Invalid expiry parameters — past or malformed date returns 400"],"whenToPreferThis":"Use this endpoint when you need to programmatically issue onchain gift certificates backed by ERC-20 loyalty tokens on the Base L2 network, especially when integrating AI agent workflows, automating customer reward distribution, or building P2P tradeable gift voucher functionality. Prefer this over off-chain gift card systems when you want verifiable, tradeable, and transparent loyalty rewards.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:51:12.821Z","isFirstParty":false}