Skip to main content
The @crevio/sdk package provides a type-safe TypeScript client for the Crevio API. It works in Node.js, browsers, Cloudflare Workers, and Deno.

Installation

Quick start

Usage examples

List products

Get a product

Retrieve by ID or slug:

Get a product with reviews expanded

Create a checkout

List orders with expanded data

Create a customer

Create a discount

Manage webhook endpoints

See the webhooks guide for the full list of event types and how to verify signatures.

Pay an invoice

Create a checkout to pay an existing invoice:

List refunds

Manage files

Send an email

List webhook events

Error handling

The SDK throws typed errors that you can catch:

Runtime support

RuntimeSupported
Node.js 18+Yes
BrowsersYes
Cloudflare WorkersYes
DenoYes
BunYes
The SDK is generated with Speakeasy and includes Zod validation, automatic retries, and full TypeScript type definitions.