# Loyal Spark Cancel Offer

> Loyal Spark Cancel Offer 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-16).

Cancels an active peer-to-peer loyalty token trade offer on the Loyal Spark onchain loyalty protocol

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/cancel-offer
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-cancel-offer-4a4c528b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-LB2dGMUUUtUFlLlCyCHN

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-offer-4a4c528b -d '<json body>'
```

Example prompt: Cancel my open loyalty token trade offer on Loyal Spark — I want to withdraw it before anyone accepts it.

## When to prefer this

Use this endpoint when a user wants to withdraw or revoke a previously posted peer-to-peer loyalty token trade offer on the Loyal Spark protocol before it has been fulfilled, specifically on the Base L2 network using ERC-20 loyalty tokens.

## Known failure modes

- Offer not found or already accepted — returns error indicating offer ID is invalid or no longer active
- Unauthorized cancellation attempt — caller does not own the offer
- Network or blockchain state error on Base L2 — transaction cannot be processed
- Malformed request body — missing required fields returns validation error
- Payment failure — x402 micropayment not completed, request rejected

## 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 ok: true and resource: 'cancel-offer' confirming the offer was successfully cancelled on the Loyal Spark 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",
 "example": {
  "ok": true,
  "resource": "cancel-offer"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-cancel-offer-4a4c528b/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)
