# 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 for a recipient on the Loyal Spark onchain loyalty protocol running on Base L2.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/recipient-api/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-recipient-reward-redemption-c7296583
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FkNuUZFLGsPMw4tFVaO-I

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-recipient-reward-redemption-c7296583 -d '<json body>'
```

Example prompt: Redeem my Loyal Spark reward tokens for my wallet — I've earned enough points and want to claim my reward now using a JSON POST body with my recipient details.

## When to prefer this

Use this endpoint when a user or AI agent needs to redeem (burn/spend) earned ERC-20 loyalty tokens on the Loyal Spark protocol on Base L2, specifically for the recipient-side redemption flow rather than earning or P2P trading of tokens.

## Known failure modes

- Insufficient reward token balance — redemption rejected
- Invalid recipient address or malformed request body
- Network or Base L2 RPC failure causing transaction timeout
- Payment of $0.01 USDC via x402 not provided or rejected
- Wrong body type or HTTP method specified in the input envelope

## How this service works

Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes, customers earn real value with every purchase, and AI agents automate the rest via REST and MCP. Free plan mints up to 1,000 tokens per month; every call is scoped by row-level security to the wallet behind the API key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.

## Output

Returns a JSON object with ok: true and a resource identifier confirming the redemption was processed on the Loyal Spark onchain loyalty protocol.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
 },
 "description": "JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-recipient-reward-redemption-c7296583/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)
