# Loyal Spark - Claim Gift Certificate

> Loyal Spark - Claim Gift Certificate 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).

Claims a gift certificate within the Loyal Spark onchain loyalty protocol on Base L2, redeeming it for ERC-20 reward tokens.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/claim_gift_certificate
- 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-claim-gift-certificate-ba938958
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZxR4m3-TJneg_vXB_Iemn

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-claim-gift-certificate-ba938958 -d '<json body>'
```

Example prompt: I have a Loyal Spark gift certificate for the 'MorningBloom Coffee' loyalty program — can you claim it to my wallet 0xABC123... and redeem it for their reward tokens?

## When to prefer this

Use this endpoint when an AI agent or user needs to redeem a specific gift certificate within the Loyal Spark onchain loyalty ecosystem on Base L2. Prefer this over generic token transfer endpoints when the redemption involves a gift certificate code tied to a specific merchant loyalty program. Ideal for automating loyalty reward workflows where users receive gift certificates and need them converted to spendable ERC-20 tokens.

## Known failure modes

- Gift certificate already claimed — returns error indicating the certificate has been previously redeemed
- Invalid or expired gift certificate code — returns validation error
- Recipient wallet address not found or invalid — returns address error
- Loyalty program not found or inactive — returns program lookup error
- Insufficient network gas or blockchain congestion — returns timeout or gas error
- Payment of $0.01 USDC not completed — returns x402 payment required error

## 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

Returns a JSON object confirming the gift certificate claim, including the transaction hash on Base L2, the amount of ERC-20 loyalty tokens received, the recipient wallet address, the redeemed certificate identifier, and the redemption status.

## 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-claim-gift-certificate-ba938958/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)
