Core Client
Server-side operations with full administrative access.
Initialization
The core client requires a Secret Admin Token and should only be used server-side.
Server-Side Only
Never use the core client in browser code. The Secret Admin Token has full access to brand data.
Initialize
TypeScript
import { Threeu } from "threeu-sdk";
const threeu = new Threeu(process.env.THREEU_SECRET_KEY!);Products
Create, list, retrieve, update, and delete products:
Product Operations
TypeScript
const brand = await threeu.brand("my-store");
const product = await brand.products.create({
name: "Black Abaya",
price: 350,
currency: "QAR",
stock: 20
});
const products = await brand.products.list({ limit: 25 });
const single = await brand.products.get("prod_abc123");
await brand.products.update("prod_abc123", { price: 399 });
await brand.products.delete("prod_abc123");Orders
Retrieve and manage orders:
Order Operations
TypeScript
const orders = await brand.orders.list({ status: "pending" });
const order = await brand.orders.get("ord_abc123");
await brand.orders.update("ord_abc123", {
status: "shipped",
tracking_number: "1Z999AA10123456784"
});