# Loyal Spark Export Customers

> Loyal Spark Export Customers 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-15).

Exports the customer list from a merchant's onchain loyalty program on Base L2, returning customer data as JSON.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/export_customers
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-export-customers-15996c18
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kQUkcJnHLRmHNj7M2b8ki

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-export-customers-15996c18 -d '<json body>'
```

Example prompt: Can you export all the customers enrolled in my Loyal Spark loyalty program so I can see their wallet addresses and token balances?

## When to prefer this

Use this endpoint when you need to bulk-export all customer records from a Loyal Spark onchain loyalty program — for CRM syncing, analytics, airdrop targeting, or customer reporting. Prefer this over individual customer lookups when you need the full list.

## Known failure modes

- Unauthorized access if merchant credentials are missing or invalid
- Empty result set if no customers have enrolled yet
- Payment failure if the $0.01 USDC x402 payment is not processed
- Rate limiting if too many export requests are made in quick succession
- Partial data if the program has a very large customer base requiring pagination

## 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 array of customer records from the merchant's onchain loyalty program, likely including wallet addresses, token balances, enrollment dates, and redemption history for each customer.

## Example request

```json
{
 "id": 1,
 "method": "tools/call",
 "params": {
  "name": "get_platform_info",
  "arguments": {}
 },
 "jsonrpc": "2.0"
}
```

## 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-export-customers-15996c18/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)
