# Loyal Spark Accept P2P Offer

> Loyal Spark Accept P2P Offer 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).

Accepts a peer-to-peer trade offer for loyalty reward tokens on the Loyal Spark onchain protocol running on Base L2.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/accept_p2p_offer
- 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-accept-p2p-offer-e20df4fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C511Z09ot3SfNeRVhaPwa

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-accept-p2p-offer-e20df4fa -d '<json body>'
```

Example prompt: Accept the pending P2P offer on Loyal Spark — I want to take the trade where I receive 500 CoffeeCo loyalty tokens in exchange for 200 of my RetailReward tokens on Base.

## When to prefer this

Use this endpoint when an AI agent or user needs to accept an existing P2P trade offer for loyalty tokens on the Loyal Spark protocol. Prefer this over general token transfer endpoints when the trade has already been initiated by a counterparty and needs to be accepted by the recipient.

## Known failure modes

- Offer already accepted or expired — returns error indicating offer is no longer active
- Insufficient token balance to fulfill the trade — returns balance error
- Invalid offer ID — returns not found error
- Wallet not authorized to accept this specific offer — returns authorization error
- Network or Base L2 RPC failure — returns connectivity or timeout error
- Payment of $0.01 USDC via x402 not provided — returns 402 Payment Required

## 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 acceptance of the P2P trade offer, including transaction hash, updated token balances for both parties, and settlement status on Base L2.

## 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-accept-p2p-offer-e20df4fa/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)
