An Unofficial TypeScript SDK for the Cin7 Core API v2, providing a modern, modular interface for inventory management operations.
npm install cin7-core-api-sdkimport { Cin7CoreSDK } from "cin7-core-api-sdk";
const cin7 = new Cin7CoreSDK("your-account-id", "your-application-key");
// Get products
const products = await cin7.product.queries.getProducts<any>({ limit: 10 });
// Create a product
const newProduct = await cin7.product.mutations.createProduct({
Name: "Example Product",
SKU: "EXP-001",
});You'll need your Cin7 Core Account ID and Application Key:
- Log into your Cin7 Core account
- Go to Integrations → API
- Create a new application or use an existing one
- Copy your Account ID and Application Key
const cin7 = new Cin7CoreSDK(accountId, applicationKey);