Type-safe SDK for the Creem API – manage SaaS subscriptions, products, and revenue in TypeScript/Node.js environments.
The Creem TypeScript SDK is available as an npm package for seamless integration with your TypeScript and Node.js projects.
The SDK is also available on GitHub for those who prefer to explore the source code directly.
import { Creem } from "creem";const creem = new Creem();async function run() { const result = await creem.deleteDiscount({ id: "<discount-id>", xApiKey: "<api-key>", }); // Handle the result console.log(result);}run();
import { Creem } from "creem";const creem = new Creem();async function run() { const result = await creem.deleteDiscount({ id: "<discount-id>", xApiKey: "<api-key>", }); // Handle the result console.log(result);}run();
import { CreemCore } from "creem/core.js";import { deleteDiscount } from "creem/funcs/deleteDiscount.js";// Use `CreemCore` for best tree-shaking performance.// You can create one instance of it to use across an application.const creem = new CreemCore();async function run() { const res = await deleteDiscount(creem, { id: "<discount-id>", xApiKey: "<api-key>", }); if (!res.ok) { throw res.error; } const { value: result } = res; // Handle the result console.log(result);}run();