# Loyal Spark - Mark Gift Certificate as Minted

> Loyal Spark - Mark Gift Certificate as Minted 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).

Records that a gift certificate NFT has been minted on the Loyal Spark onchain loyalty protocol, updating its state to 'minted'.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/mark_gift_certificate_minted
- 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-mark-gift-certificate-as-minted-0585d003
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lTXqmWEKWp_dZDYAa4umK

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-mark-gift-certificate-as-minted-0585d003 -d '<json body>'
```

Example prompt: On Loyal Spark, mark gift certificate ID 'GC-20240501-XYZ' as minted so the loyalty protocol knows the NFT has been created and is ready for redemption.

## When to prefer this

Use this endpoint after successfully minting a gift certificate NFT on Base L2, to synchronize the Loyal Spark protocol's off-chain or hybrid record with the onchain minting event. Choose this when you need to update the lifecycle state of a gift certificate within the Loyal Spark ecosystem specifically.

## Known failure modes

- Gift certificate ID not found — returns 404 or error indicating invalid identifier
- Gift certificate already marked as minted — idempotency conflict or duplicate state error
- Invalid or missing required fields — returns 400 validation error
- Authentication or payment failure — x402 payment not accepted
- Onchain state mismatch — certificate not actually minted but status updated

## 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 gift certificate has been updated to 'minted' status in the Loyal Spark loyalty protocol, including the updated record details and confirmation of state change.

## 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-mark-gift-certificate-as-minted-0585d003/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)
