{"uid":"cap_f895HAlJMgoi22rHx9WUM","slug":"loyal-spark-update-program-status-9e6cd854","name":"Loyal Spark - Update Program Status","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/update_program_status","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_YwsxE--unSYkZ-js2SqvU","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":"Updates the active/inactive status of an onchain loyalty rewards program on Base L2","exampleAgentPrompt":"Set my Loyal Spark loyalty program with ID 'prog_abc123' to inactive — I want to pause it while I update the reward tiers.","exampleUseCases":[{"title":"Pause loyalty program for maintenance","prompt":"Can you pause my Loyal Spark loyalty program with ID 'prog_xyz789'? I need to take it offline for a few hours while I reconfigure the reward tiers before the holiday campaign."},{"title":"Reactivate suspended rewards campaign","prompt":"My loyalty program 'prog_summer2024' was suspended last month — go ahead and set it back to active now that we've resolved the compliance review and are ready to start rewarding customers again."},{"title":"Disable expired promotional program","prompt":"The limited-time promo loyalty program with ID 'prog_promo456' has run its course — please set it to inactive so no new tokens are earned, but leave the program in place so existing holders can still redeem their balance."}],"resultDescription":"Returns a JSON object confirming the updated status of the loyalty program, including the program ID, new status, and any relevant metadata about the program state change on Base L2.","failureModes":["Invalid or missing program ID returns 400 error","Unauthorized access if caller does not own the program","Program not found returns 404","Invalid status value returns validation error","Payment failure via x402 results in 402 response","Network issues on Base L2 may cause timeout or 503"],"whenToPreferThis":"Use this endpoint when you need to activate, deactivate, or change the operational state of an existing Loyal Spark loyalty program on Base L2. Prefer this over re-deploying a program when you simply want to toggle its running state without modifying its reward structure or token configuration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:49:38.271Z","isFirstParty":false}