Docs
Checkout API and SDK
Authentication
Server calls use Authorization: Bearer rc_live_... (or rc_test_...). The dashboard signs each call with your Ring key instead: x-rc-ring, x-rc-ts and an Ed25519 signature of the method, path, time and body digest.
Endpoints
POST /api/v1/links create a link GET /api/v1/links your links GET /api/v1/links/:id public link POST /api/v1/links/:id/sessions open a session for a link POST /api/v1/sessions open a session from your server GET /api/v1/sessions/:id status: open, paid, settled, expired GET /api/v1/payments received payments GET /api/v1/payments.csv CSV export GET /api/v1/settlements settlements POST /api/v1/settlements/:id/share expiring receipt link POST /api/v1/streams create a stream POST /api/v1/streams/:id/cancel cancel and refund GET /api/v1/board public window sizes
TypeScript SDK
One file, no build step: /sdk/ringcheckout.mjs. It wraps the API, verifies webhooks and pays a session from a Ring (with @heliuslabs/spr installed next to it).
import { RingCheckout, verifyWebhook } from "https://ringcheckout.xyz/sdk/ringcheckout.mjs";
const rc = new RingCheckout({ key: process.env.RC_KEY });
const session = await rc.sessions.create({ asset: "SOL", amount: "0.25", order_ref: "order-7" });