# Loyal Spark Cancel Stale Offers

> Loyal Spark Cancel Stale Offers 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-13).

Cancels stale or expired peer-to-peer token trade offers on the Loyal Spark onchain loyalty protocol running on Base L2.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/cancel_stale_offers
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-cancel-stale-offers-27920c04
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_79M_vlk9sQyooPT0N-ngu

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-cancel-stale-offers-27920c04 -d '<json body>'
```

Example prompt: Can you cancel all my stale and unfilled loyalty token trade offers on Loyal Spark so my marketplace listings are cleaned up?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically clean up expired or unfilled peer-to-peer loyalty token trade offers on the Loyal Spark protocol. Prefer this over manual on-chain transactions when automating marketplace hygiene tasks or when integrating loyalty reward workflows via MCP/REST tooling on Base L2.

## Known failure modes

- No stale offers found to cancel — returns empty result set
- Invalid or unauthorized wallet address — returns 401/403 error
- Offer already filled or cancelled — idempotency conflict response
- Blockchain transaction failure on Base L2 — returns error with transaction hash
- Rate limit or payment failure for $0.01 USDC — returns 402 payment required
- Malformed request body — returns 400 with validation error

## 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 indicating which P2P loyalty token offers were successfully cancelled, including offer IDs, token addresses, and updated statuses confirming the stale offers have been invalidated on the Base L2 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",
    "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-cancel-stale-offers-27920c04/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)
