Marketplace · API · x402
api.loyalspark.online/x402-gateway/mcp-tools/earn_points
Calculate and mint loyalty tokens from a purchase amount using the program cashback rate (earn / cashback flow). Onchain loyalty on Base: brands launch rewards in minutes, customers earn with every purchase, AI agents automate the rest via REST and MCP. Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are...
| Endpoint | https://api.loyalspark.online/x402-gateway/mcp-tools/earn_points |
| Trust | Not checked yet |
| Pricing | Pay per call with x402, no account. Call it to get an exact quote before paying. |
| network | eip155:8453 |
| scheme | exact |
| pay to | 0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b |
| method | POST |
| last updated | 2026-11-14T01:00:22.733Z |
Use it
Call it (an x402 client pays automatically)
curl -i https://api.loyalspark.online/x402-gateway/mcp-tools/earn_points
# 402 reply -> sign PAYMENT-REQUIRED with an x402 client (e.g. @x402/fetch) -> retry with PAYMENT-SIGNATUREThis listing as JSON
curl https://aipaygen.com/v1/catalog/api/x402-912ac775bf9931d8Search the whole marketplace from your agent (MCP)
{
"mcpServers": {
"aipaygen": {
"url": "https://aipaygen.com/mcp"
}
}
}Related
- api.loyalspark.online/x402-gateway/recipient-mcp-tools/list_my_gift_certificatesAPI
- api.loyalspark.online/x402-gateway/recipient-mcp-tools/list_my_vouchersAPI
- api.loyalspark.online/x402-gateway/recipient-mcp-tools/get_my_loyalty_balanceAPI
- api.loyalspark.online/x402-gateway/recipient-mcp-tools/list_my_loyalty_balancesAPI
- api.loyalspark.online/x402-gateway/recipient-mcp-tools/redeem_my_rewardAPI
- api.loyalspark.online/x402-gateway/recipient-mcp-tools/list_rewards_for_programAPI