@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
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
| Runtime | Supported |
|---|---|
| Node.js 18+ | Yes |
| Browsers | Yes |
| Cloudflare Workers | Yes |
| Deno | Yes |
| Bun | Yes |
The SDK is generated with Speakeasy and includes Zod validation, automatic retries, and full TypeScript type definitions.

