Marketplace · API · x402
api.loyalspark.online/x402-gateway/mcp-tools/use_voucher
Loyalty rewards: Mark an active voucher as used at checkout (merchant scans code or voucher id). 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 not charged.
| Endpoint | https://api.loyalspark.online/x402-gateway/mcp-tools/use_voucher |
| 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-14T00:31:52.487Z |
Use it
Call it (an x402 client pays automatically)
curl -i https://api.loyalspark.online/x402-gateway/mcp-tools/use_voucher
# 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-7b3d1bc1199da9abSearch the whole marketplace from your agent (MCP)
{
"mcpServers": {
"aipaygen": {
"url": "https://aipaygen.com/mcp"
}
}
}