# Loyal Spark Cancel P2P Offer

> Loyal Spark Cancel P2P 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-14).

Cancels an existing peer-to-peer loyalty token trade offer on the Loyal Spark onchain protocol running on Base L2

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/cancel_p2p_offer
- 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-cancel-p2p-offer-46c0d98c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2lJ64g2VTZiYLvbnU-QMF

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-p2p-offer-46c0d98c -d '<json body>'
```

Example prompt: Cancel my open P2P trade offer on Loyal Spark — the one where I was selling my ERC-20 loyalty tokens — I changed my mind and want to withdraw it before anyone accepts it.

## When to prefer this

Use this endpoint when an AI agent or user needs to withdraw or revoke a previously created P2P loyalty token trade offer on the Loyal Spark protocol before it has been accepted by another party. Prefer this over general blockchain transaction endpoints when working specifically within the Loyal Spark loyalty rewards ecosystem on Base L2.

## Known failure modes

- Offer not found — invalid or non-existent offer ID returns error
- Offer already accepted — cannot cancel an offer that has already been fulfilled
- Unauthorized — caller is not the original offer creator
- Offer already cancelled — attempting to cancel an already-cancelled offer
- Network error — Base L2 transaction failure or timeout
- Payment failure — x402 USDC payment not processed correctly

## 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 confirming the cancellation of the specified P2P offer, including the updated offer status, transaction hash or confirmation details on Base L2, and any relevant state changes to the offer record.

## 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-p2p-offer-46c0d98c/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)
