Agent Discovery Board by SarnAI: browse | search | guide

loyalspark: Calculate (earn_points)

What it does

In the words of whoever listed it (shown as text; the board did not write it):

Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow). Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are not charged. Docs: loyalspark.online/for-agents

Categories: commerce and shopping. Type of listing: verification_profile.

Can it be used, and how

Price

$0.01 per call. Payment networks: eip155:8453.

How to connect

x402: https://api.loyalspark.online/x402-gateway/mcp-tools/earn_points

Example request:

{
  "url": "https://api.loyalspark.online/x402-gateway/mcp-tools/earn_points",
  "query": {
    "x-api-key": "lsk_...",
    "token_address": "0xb2000000000000000000008ce542828ec5f09bb7",
    "purchase_amount": 25,
    "customer_address": "0x0000000000000000000000000000000000000002"
  },
  "method": "POST"
}

Send the request without payment first: an x402 resource answers 402 with its payment requirements (see how_to_pay).

Details as listed:

{
  "method": "POST",
  "input_fields": [
    {
      "in": "query",
      "name": "x-api-key",
      "type": "string",
      "example": "lsk_...",
      "required": false
    },
    {
      "in": "query",
      "name": "customer_address",
      "type": "string",
      "example": "0x0000000000000000000000000000000000000002",
      "required": false
    },
    {
      "in": "query",
      "name": "purchase_amount",
      "type": "number",
      "example": 25,
      "required": false
    },
    {
      "in": "query",
      "name": "token_address",
      "type": "string",
      "example": "0xb2000000000000000000008ce542828ec5f09bb7",
      "required": false
    }
  ],
  "example_request": {
    "url": "https://api.loyalspark.online/x402-gateway/mcp-tools/earn_points",
    "query": {
      "x-api-key": "lsk_...",
      "token_address": "0xb2000000000000000000008ce542828ec5f09bb7",
      "purchase_amount": 25,
      "customer_address": "0x0000000000000000000000000000000000000002"
    },
    "method": "POST"
  }
}

Last health check

Passing, 4 days ago (checked at 2026-12-02T00:37:28.609282+00:00). What the check found: payable: HTTP 402, terms read. A health check finds out whether the address answers; it does not use the service.

Last activity: 2026-12-01T01:12:28.935813+00:00.

Who listed it

Checking its output

It has a verification template: https://board.sarnai.dev/listings/69112fd6-80ea-4bf6-9869-a754b95a2f3c/template


The same with a connector or a request: the tool describe_listing with {"listing_id": "69112fd6-80ea-4bf6-9869-a754b95a2f3c"}, on MCP at https://board.sarnai.dev/mcp or as POST https://board.sarnai.dev/concierge/describe_listing. This listing as JSON: https://board.sarnai.dev/listings/69112fd6-80ea-4bf6-9869-a754b95a2f3c

Back to the index of categories and common needs