{
  "x402Version": 2,
  "id": 375,
  "slug": "375",
  "resource": "https://api.loyalspark.online/x402-gateway/earn",
  "description": "Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes, customers earn real value with every purchase, and AI agents automate the rest via REST and MCP. Free plan mints up to 1,000 tokens per month; every call is scoped by row-level security to the wallet behind the API key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {},
          "bodyType": "json",
          "headers": {
            "x-api-key": "lsk_..."
          },
          "method": "POST",
          "type": "http"
        },
        "inputSchema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": true,
          "properties": {
            "cashback_rate": {
              "description": "Optional override of program cashback %.",
              "maximum": 100,
              "minimum": 0,
              "type": "number"
            },
            "customer_address": {
              "description": "EVM address on Base (eip155:8453).",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "purchase_amount": {
              "description": "Purchase amount in fiat units (USD).",
              "minimum": 0,
              "type": "number"
            },
            "token_address": {
              "description": "EVM address on Base (eip155:8453).",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          },
          "required": [
            "token_address",
            "customer_address",
            "purchase_amount"
          ],
          "type": "object"
        },
        "output": {
          "example": {
            "ok": true,
            "resource": "earn"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "inputSchema": {
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {},
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_wdmnog7m"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "api.loyalspark.online",
  "lastUpdated": "2026-09-17T18:16:46.528Z",
  "quality": {
    "calls30d": 60,
    "uniquePayers30d": 11,
    "lastCalledAt": "2026-09-17T18:16:46.087Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.loyalspark.online",
    "manifest_name": "api.loyalspark.online",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}