{"id":"89d0da6e-7c50-480d-bd95-e3fbf15c20b4","shortId":"NHrGev","kind":"x402","title":"Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow)","tagline":"Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow). Onchain","description":"Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow). Onchain loyalty on Base: brands launch rewards in minutes, customers earn with every purchase, AI agents automate the rest via REST and MCP. Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are...","tags":[],"capabilities":["x402-eip155:8453"],"categories":[],"synonyms":[],"warnings":[],"endpointUrl":"https://api.loyalspark.online/x402-gateway/mcp-tools/earn_points","protocol":"x402","transport":"http","auth":{"type":"x402","details":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","brand":"Loyal Spark","mcpTool":"earn_points","version":"2","website":"https://loyalspark.online","provider":"Loyal Spark","mcpServer":"https://api.loyalspark.online/loyalty-mcp","builderCode":"bc_wdmnog7m","description":"Loyal Spark MCP. POST the tool arguments as the JSON body (or the JSON-RPC tools/call body) to this x402 URL, then repeat it with PAYMENT-SIGNATURE / X-PAYMENT; gateway forwards to https://api.loya...","documentation":"https://loyalspark.online/for-agents"},"payTo":"0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b","amount":"10000","scheme":"exact","network":"eip155:8453","mimeType":"application/json","resource":"https://api.loyalspark.online/x402-gateway/mcp-tools/earn_points","extensions":{"bazaar":{"info":{"mcp":{"server":"https://api.loyalspark.online/loyalty-mcp","toolName":"earn_points","transport":"streamable-http"},"input":{"body":{"token_address":"0xb2000000000000000000008ce542828ec5f09bb7","purchase_amount":25,"customer_address":"0x0000000000000000000000000000000000000002"},"type":"http","method":"POST","headers":{"x-api-key":"lsk_..."},"bodyType":"json"},"output":{"type":"json","example":{"id":1,"result":{"content":[{"text":"{...}","type":"text"}],"structuredContent":{}},"jsonrpc":"2.0"}},"inputSchema":{"type":"object","required":["token_address","customer_address","purchase_amount"],"properties":{"redeem_all":{"type":"boolean"},"cashback_rate":{"type":"number"},"token_address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"customer_email":{"type":"string"},"purchase_amount":{"type":"number"},"customer_address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"points_to_redeem":{"type":"number"}}}},"schema":{"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"}}}},"builder-code":{"info":{"a":"bc_wdmnog7m"},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"a":{"type":"string","pattern":"^[a-z0-9_]{1,32}$","description":"App builder code"},"s":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9_]{1,32}$"},"description":"Service builder codes"},"w":{"type":"string","pattern":"^[a-z0-9_]{1,32}$","description":"Wallet builder code"}},"additionalProperties":false}}},"description":"Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow). Onchain loyalty on Base: brands launch rewards in minutes, customers earn with every purchase, AI agents automate the rest via REST and MCP. Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are...","outputSchema":{"input":{"type":"mcp","toolName":"earn_points","transport":"streamable-http","description":"Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow). Send x-api-key: lsk_... (or Authorization: B..."}},"maxAmountRequired":"10000","maxTimeoutSeconds":300}]},"qualityScore":"0.000","qualityRationale":null,"verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":null,"enrichmentVersion":1,"enrichedAt":null,"embedding":null,"createdAt":"2026-11-04T20:45:56.871Z","updatedAt":"2026-11-07T01:33:43.838Z","lastSeenAt":"2026-11-07T01:33:43.838Z","tsv":"'agent':68 'ai':67 'amount':9,26,44 'api':79 'author':83 'autom':69 'base':56 'bearer':84 'brand':57 'calcul':1,18,36 'cashback':13,16,30,33,48,51 'custom':62 'earn':15,32,50,63 'everi':65 'flow':17,34,52 'key':80,92 'launch':58 'live':91 'loyalti':4,21,39,54 'lsk':81,85 'mcp':75 'mint':3,20,38 'minut':61 'onchain':35,53 'payment':88 'program':12,29,47 'purchas':8,25,43,66 'rate':14,31,49 'rest':71,73 'reward':59 'send':76 'token':5,22,40 'use':10,27,45 'via':72 'without':89 'x':78 'x-api-key':77 'x402-eip155:8453'","prices":[{"id":"dd90b953-46b8-499f-b36a-223436b51100","listingId":"89d0da6e-7c50-480d-bd95-e3fbf15c20b4","amountUsd":null,"unit":"per_call","nativeCurrency":"USD COIN","nativeAmount":"10000","chain":"base","payTo":"0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b","paymentMethod":"x402-usd coin","isPrimary":true,"details":{"scheme":"exact","mime_type":"application/json","accepts_all":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","brand":"Loyal Spark","mcpTool":"earn_points","version":"2","website":"https://loyalspark.online","provider":"Loyal Spark","mcpServer":"https://api.loyalspark.online/loyalty-mcp","builderCode":"bc_wdmnog7m","description":"Loyal Spark MCP. POST the tool arguments as the JSON body (or the JSON-RPC tools/call body) to this x402 URL, then repeat it with PAYMENT-SIGNATURE / X-PAYMENT; gateway forwards to https://api.loya...","documentation":"https://loyalspark.online/for-agents"},"payTo":"0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b","amount":"10000","scheme":"exact","network":"eip155:8453","mimeType":"application/json","resource":"https://api.loyalspark.online/x402-gateway/mcp-tools/earn_points","extensions":{"bazaar":{"info":{"mcp":{"server":"https://api.loyalspark.online/loyalty-mcp","toolName":"earn_points","transport":"streamable-http"},"input":{"body":{"token_address":"0xb2000000000000000000008ce542828ec5f09bb7","purchase_amount":25,"customer_address":"0x0000000000000000000000000000000000000002"},"type":"http","method":"POST","headers":{"x-api-key":"lsk_..."},"bodyType":"json"},"output":{"type":"json","example":{"id":1,"result":{"content":[{"text":"{...}","type":"text"}],"structuredContent":{}},"jsonrpc":"2.0"}},"inputSchema":{"type":"object","required":["token_address","customer_address","purchase_amount"],"properties":{"redeem_all":{"type":"boolean"},"cashback_rate":{"type":"number"},"token_address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"customer_email":{"type":"string"},"purchase_amount":{"type":"number"},"customer_address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"points_to_redeem":{"type":"number"}}}},"schema":{"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"}}}},"builder-code":{"info":{"a":"bc_wdmnog7m"},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"a":{"type":"string","pattern":"^[a-z0-9_]{1,32}$","description":"App builder code"},"s":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9_]{1,32}$"},"description":"Service builder codes"},"w":{"type":"string","pattern":"^[a-z0-9_]{1,32}$","description":"Wallet builder code"}},"additionalProperties":false}}},"description":"Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow). Onchain loyalty on Base: brands launch rewards in minutes, customers earn with every purchase, AI agents automate the rest via REST and MCP. Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are...","outputSchema":{"input":{"type":"mcp","toolName":"earn_points","transport":"streamable-http","description":"Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow). Send x-api-key: lsk_... (or Authorization: B..."}},"maxAmountRequired":"10000","maxTimeoutSeconds":300}],"asset_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","max_timeout_seconds":300},"createdAt":"2026-11-04T20:45:56.871Z"}],"sources":[{"listingId":"89d0da6e-7c50-480d-bd95-e3fbf15c20b4","source":"x402_bazaar","sourceId":"https://api.loyalspark.online/x402-gateway/mcp-tools/earn_points","sourceUrl":"https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources","isPrimary":true,"firstSeenAt":"2026-11-04T20:45:56.871Z","lastSeenAt":"2026-11-07T01:33:43.838Z"}],"details":{"listingId":"89d0da6e-7c50-480d-bd95-e3fbf15c20b4","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":{"input":{"type":"mcp","toolName":"earn_points","transport":"streamable-http","description":"Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow). Send x-api-key: lsk_... (or Authorization: B..."}},"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"x402_version":2,"resource_type":"http","bazaar_last_updated":"2026-11-04T20:32:45.403Z"},"updatedAt":"2026-11-07T01:33:43.838Z"}}