# Loyal Spark Redeem Reward

> Loyal Spark Redeem Reward is a paid API for AI agents from api.loyalspark.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Redeems ERC-20 loyalty reward tokens on the Base L2 blockchain via the Loyal Spark onchain loyalty protocol

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/redeem_reward
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-redeem-reward-e77a5bfd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wP13yHAP-j2iPXdFdbW7K

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability loyal-spark-redeem-reward-e77a5bfd -d '<json body>'
```

Example prompt: Redeem 100 of my LoyalSpark reward tokens from the Coffee Club loyalty program on Base — my wallet is 0xAbC123... and I want to submit the redemption now.

## When to prefer this

Use this endpoint when an AI agent or user needs to programmatically redeem accumulated ERC-20 loyalty reward tokens within a Loyal Spark onchain loyalty program on Base L2. Prefer this over generic blockchain transaction endpoints because it abstracts the smart contract interaction and handles loyalty program logic natively. Best suited for loyalty automation workflows, AI agent-driven redemption triggers, or P2P loyalty token use cases on Base.

## Known failure modes

- Insufficient token balance — wallet does not hold enough reward tokens to redeem the requested amount
- Invalid wallet address — malformed or non-existent address provided
- Reward program not found — program ID does not match an active Loyal Spark loyalty program
- Payment failure — $0.01 USDC x402 payment not processed or rejected
- Onchain transaction revert — smart contract rejects the redemption due to eligibility or program rules
- Rate limiting — too many redemption requests in a short window

## How this service works

Onchain loyalty protocol on Base L2. Launch B20 rewards, earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.

## Output

A JSON response containing the redemption confirmation, the Base L2 transaction hash, the amount of ERC-20 tokens redeemed, and the onchain receipt details confirming the state change on the loyalty protocol.

## Example request

```json
{
 "id": 1,
 "method": "tools/call",
 "params": {
  "name": "get_platform_info",
  "arguments": {}
 },
 "jsonrpc": "2.0"
}
```

## Request schema (JSON Schema)

```json
{
 "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": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-redeem-reward-e77a5bfd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.loyalspark.online](https://www.zero.xyz/host/api.loyalspark.online/llms.txt)
