# Loyal Spark Merchant REST API

**Canonical:** https://apis.io/apis/loyalspark-online/loyalspark-online-merchant-rest-api/  
**Provider:** Loyal Spark — https://apis.io/providers/loyalspark-online/  
**Base URL:** https://api.loyalspark.online  
**Documentation:** https://loyalspark.online/api-docs

Loyal Spark Merchant REST API is one of 6 APIs that [Loyal Spark](https://apis.io/providers/loyalspark-online/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Merchant REST. The published artifact set on APIs.io includes an OpenAPI specification.

Authenticated merchant REST API (lsk_)

## Operations (60 of 71)

| Method | Path | Summary |
|---|---|---|
| GET | `/x402-gateway/programs` | List loyalty programs |
| POST | `/x402-gateway/programs` | Get calldata to deploy a loyalty token |
| GET | `/x402-gateway/rewards` | List rewards for a program |
| POST | `/x402-gateway/rewards` | Create a redeemable reward |
| GET | `/x402-gateway/balance` | Get on-chain token balance, off-chain ledger, virtual pending points, and tier |
| GET | `/x402-gateway/customers` | List customers for a program |
| GET | `/x402-gateway/vouchers` | List vouchers issued by the merchant |
| GET | `/x402-gateway/analytics` | Program analytics |
| GET | `/x402-gateway/offers` | List P2P marketplace offers |
| POST | `/x402-gateway/offers` | Create a P2P swap offer |
| GET | `/x402-gateway/public-programs` | List active public loyalty programs |
| GET | `/x402-gateway/merchant-profile` | Read merchant profile |
| POST | `/x402-gateway/merchant-profile` | Create merchant profile |
| PUT | `/x402-gateway/merchant-profile` | Update merchant profile |
| GET | `/x402-gateway/workflow/program-status` | Autonomous program workflow status |
| POST | `/x402-gateway/register-agent` | Register a merchant agent with a Base USDC payment |
| POST | `/x402-gateway/register-program` | Register a deployed loyalty token in the database |
| POST | `/x402-gateway/update-program-config` | Update default cashback / points-per-dollar |
| POST | `/x402-gateway/activate-program` | Get activation calldata for an inactive program |
| POST | `/x402-gateway/program-status` | Set program status in the database |
| POST | `/x402-gateway/mint` | Mint loyalty tokens (fee-first calls[] or virtual points for unregistered email) |
| POST | `/x402-gateway/earn` | Record an earn / cashback for a purchase (0x wallet or email) |
| POST | `/x402-gateway/transfer` | Get transfer calldata for loyalty tokens |
| POST | `/x402-gateway/redeem-reward` | Redeem a reward for a customer |
| POST | `/x402-gateway/vouchers/use` | Mark a voucher as used |
| POST | `/x402-gateway/accept-offer` | Accept a P2P swap offer (two-phase) |
| POST | `/x402-gateway/cancel-offer` | Cancel an own P2P swap offer |
| POST | `/x402-gateway/workflow/generate-program-defaults` | Generate program defaults from business context |
| GET | `/x402-gateway/resolve-recipient` | Resolve a customer email or wallet to a Base 0x address (keyless, x402) |
| GET | `/agent-api/me` | Get agent profile, scopes, plan and wallet |
| GET | `/agent-api/programs` | List loyalty programs |
| POST | `/agent-api/programs` | Get calldata to deploy a loyalty token |
| GET | `/agent-api/rewards` | List rewards for a program |
| POST | `/agent-api/rewards` | Create a redeemable reward |
| GET | `/agent-api/balance` | Get on-chain token balance, off-chain ledger, virtual pending points, and tier |
| GET | `/agent-api/customers` | List customers for a program |
| GET | `/agent-api/mints` | List mint intents |
| GET | `/agent-api/fee-obligations` | List protocol-fee obligations |
| GET | `/agent-api/vouchers` | List vouchers issued by the merchant |
| GET | `/agent-api/vouchers/status` | Public voucher verification |
| GET | `/agent-api/analytics` | Program analytics |
| GET | `/agent-api/offers` | List P2P marketplace offers |
| POST | `/agent-api/offers` | Create a P2P swap offer |
| GET | `/agent-api/tx-receipt` | Fetch transaction receipt |
| GET | `/agent-api/merchant-profile` | Read merchant profile |
| POST | `/agent-api/merchant-profile` | Create merchant profile |
| PUT | `/agent-api/merchant-profile` | Update merchant profile |
| GET | `/agent-api/workflow/program-status` | Autonomous program workflow status |
| GET | `/agent-api/store/codes` | List Shopify discount codes |
| POST | `/agent-api/store/codes` | Use or cancel a Shopify discount code |
| GET | `/agent-api/store/channel` | Read the store spend channel |
| POST | `/agent-api/store/channel` | Set the store spend channel |
| GET | `/agent-api/platform` | Public platform discovery and capabilities |
| GET | `/agent-api/info` | Public platform discovery alias |
| GET | `/agent-api/get_platform_info` | Public platform discovery alias (MCP tool name) |
| GET | `/agent-api/resolve-recipient` | Resolve a customer email or identifier to a Base 0x wallet address |
| POST | `/agent-api/resolve-recipient` | Resolve a customer email or identifier to a Base 0x wallet address |
| POST | `/agent-api/register-program` | Register a deployed loyalty token in the database |
| POST | `/agent-api/update-program-config` | Update default cashback / points-per-dollar |
| POST | `/agent-api/activate-program` | Get activation calldata for an inactive program |

…and 11 more operations. They are listed in full on the page.

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/loyalspark-online/openapi/loyalspark-online-merchant-rest-api-openapi.yml

## Other Loyal Spark APIs (5)

- [Loyal Spark Billing API](https://apis.io/apis/loyalspark-online/loyalspark-online-billing-api/)
- [Loyal Spark Identity API](https://apis.io/apis/loyalspark-online/loyalspark-online-identity-api/)
- [Loyal Spark Merchant MCP API](https://apis.io/apis/loyalspark-online/loyalspark-online-merchant-mcp-api/)
- [Loyal Spark Recipient MCP API](https://apis.io/apis/loyalspark-online/loyalspark-online-recipient-mcp-api/)
- [Loyal Spark Recipient REST API](https://apis.io/apis/loyalspark-online/loyalspark-online-recipient-rest-api/)

## Tags

Merchant REST

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/loyalspark-online` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/loyalspark-online/loyalspark-online-merchant-rest-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/loyalspark-online/.
