# Loyal Spark - Use Voucher

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

Redeems a voucher on the Loyal Spark onchain loyalty protocol running on Base L2

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/vouchers/use
- Price: $0.005/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-use-voucher-8329e0ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xFAJd5p5JTkj8MSWtTOd7

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-use-voucher-8329e0ca -d '<json body>'
```

Example prompt: I want to redeem my Loyal Spark voucher — use the voucher I have in my loyalty wallet on Base L2 and apply it now so I can claim the reward.

## When to prefer this

Use this endpoint when you need to redeem or consume a specific voucher within the Loyal Spark onchain loyalty ecosystem on Base L2. Prefer this over generic token transfer endpoints when the operation specifically involves marking a voucher as used/redeemed rather than simply transferring tokens.

## Known failure modes

- Invalid or expired voucher ID returns an error response
- Voucher already redeemed results in conflict/duplicate error
- Missing required body fields causes validation failure
- Insufficient x402 payment (below $0.005 USDC) results in 402 Payment Required
- Malformed body type or method mismatch triggers 400 Bad Request
- Network or Base L2 RPC downtime causes timeout or 503 error

## How this service works

Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes. Customers earn real value with every purchase. AI agents automate the rest.

## Output

Returns a JSON object with an 'ok' boolean indicating whether the voucher was successfully used, and a 'resource' field confirming the operation type ('vouchers/use').

## 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",
 "example": {
  "ok": true,
  "resource": "vouchers/use"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-use-voucher-8329e0ca/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)
