Zap Payments

Documentation

HTTP API

REST JSON on your Zap host. Amounts are USDC minor units (6 dp) as strings — never floats.

Create a session

POST /api/sessions
{
  "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 registration
  • GET /api/verify/:id — public receipt audit
  • GET /api/dev/state — mode and contract addresses (after deploy)

On-chain interface: contracts/INTERFACE.md