# Loyal Spark - Accept P2P Loyalty Token Offer

> Loyal Spark - Accept P2P Loyalty Token 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 onchain ERC-20 loyalty reward tokens on the Loyal Spark Base L2 protocol

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/accept-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-loyalty-token-offer-e2777dd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AAw-AWG67soJLGTWFkRYV

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-loyalty-token-offer-e2777dd8 -d '<json body>'
```

Example prompt: Accept the pending loyalty token trade offer on Loyal Spark — I want to take that P2P deal and settle the ERC-20 reward token exchange now.

## When to prefer this

Use this endpoint when an AI agent or user needs to accept an existing P2P trade offer for ERC-20 loyalty tokens on the Loyal Spark Base L2 protocol — specifically to finalize the receiving side of a peer-to-peer loyalty rewards exchange, as opposed to creating a new offer or redeeming tokens directly with the protocol.

## Known failure modes

- Offer already accepted or expired — returns error indicating stale offer state
- Invalid or missing required body fields — returns validation error
- Unauthorized caller — missing or invalid payment header causes 402 response
- Offer ID not found — returns not found error
- Network or blockchain congestion causing settlement delays

## 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 confirmation object with ok: true and resource: 'accept-offer' indicating the trade offer was successfully accepted and the onchain loyalty token exchange has been initiated.

## 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": "accept-offer"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-accept-p2p-loyalty-token-offer-e2777dd8/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)
