Installation
Install with your preferred package manager:
Note: If using Yarn, install zod as a peer dependency.
Quick Start
Functions Overview
The SDK exposes all major Creem API resources and operations:- Products:
retrieveProduct,createProduct,searchProducts - Customers:
retrieveCustomer,generateCustomerLinks - Subscriptions:
retrieveSubscription,cancelSubscription,updateSubscription,upgradeSubscription - Checkout:
retrieveCheckout,createCheckout - Licenses:
activateLicense,deactivateLicense,validateLicense - Discounts:
retrieveDiscount,createDiscount,deleteDiscount - Transactions:
searchTransactions
Server Selection (Test Mode)
Use a specific server by index or URL, by default the SDK will use the production server:Example: Deleting a Discount
Retry Strategy
Override retry behavior per call or globally:Standalone Functions
All SDK methods are also available as named imports for minimal bundle size:References
For feedback or issues, open a PR or issue on the Creem SDK GitHub.