# Loyal Spark - Revoke Gift Certificate

> Loyal Spark - Revoke 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-13).

Revokes an existing onchain gift certificate on the Loyal Spark loyalty protocol, invalidating it so it can no longer be redeemed.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/revoke_gift_certificate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-revoke-gift-certificate-6bc18775
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GFhK89_ObWtwuElELLlxR

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-revoke-gift-certificate-6bc18775 -d '<json body>'
```

Example prompt: On Loyal Spark, revoke the gift certificate with ID 'GC-4821' for my loyalty program — it was issued by mistake and I need it invalidated so it can't be redeemed.

## When to prefer this

Use this endpoint when you need to cancel or invalidate a specific gift certificate that was issued on the Loyal Spark protocol, particularly when it was issued in error, when a customer relationship ends, or as part of loyalty program management workflows. Prefer this over general token-burning endpoints because it is specifically scoped to gift certificate lifecycle management within the Loyal Spark ecosystem.

## Known failure modes

- Gift certificate ID not found or already revoked — returns error indicating invalid or non-existent certificate
- Caller lacks authorization to revoke the certificate — returns permission or authentication error
- Certificate already fully redeemed — may return error that revocation is no longer possible
- Onchain transaction failure — Base L2 network issue causing the state change to fail
- Invalid request body — missing required fields returns validation 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 revocation status of the gift certificate, including the certificate ID, revocation confirmation, and likely an onchain transaction hash reflecting the state change 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-revoke-gift-certificate-6bc18775/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)
