Documentation
HTTP API
REST JSON on your Zap host. Amounts are USDC minor units (6 dp) as strings — never floats.
Create a session
{
"merchantId": "your-shop.near",
"amountUsd": "49000000",
"kind": "OneTime",
"orderRef": "order_123",
"product": "Pro plan"
}Returns sessionId and checkoutUrl. CORS is enabled for merchant origins on this route.
Other routes
GET/POST /api/merchants— dashboard registrationGET /api/verify/:id— public receipt auditGET /api/dev/state— mode and contract addresses (after deploy)
On-chain interface: contracts/INTERFACE.md