30-day returns
Not sure about the size? Our fit guide and live chat help you choose. Every detail is handled by people who care about getting it right.
Overview
Our team has done this many times, so you never have to guess. Every piece is made in small batches from materials we test ourselves. We work directly with makers, so prices stay fair for everyone. Each product is checked by hand before it goes into the box.
Installation
Install the SDK with the package manager your project already uses. It needs Node 18 or newer.
$ npm install @pixel-nest/sdk$ yarn add @pixel-nest/sdk$ pnpm add @pixel-nest/sdkConfiguration
Free shipping on orders over $50 and easy returns within 30 days. Members get early access to new drops and prices only they can see. Create a file named pixel-nest.config.json in the project root:
{
"project": "pixel-nest",
"region": "ap-south",
"categories": ["apparel", "home", "accessories"],
"retries": 3,
"timeoutMs": 8000,
"webhooks": { "enabled": true }
}| Option | Type | Default | Description |
|---|---|---|---|
project | string | - | Your project key from the dashboard. |
region | string | "us-east" | Data centre closest to your shoppers. |
retries | number | 3 | How often a failed call is retried. |
timeoutMs | number | 10000 | Time before a request is cancelled. |
webhooks.enabled | boolean | false | Send events to your endpoint. |
Your first request
Pay securely with card, wallet or in three interest-free instalments.
- Create an API keyOpen the dashboard, choose Settings › API keys and copy a new secret key.
- Store it safelyKeep the key in an environment variable, never in your source code.
- Make the callRun the snippet below; it prints the first page of results.
import { Client } from "@pixel-nest/sdk";
const client = new Client({ apiKey: process.env.API_KEY });
// list the newest products in one category
const page = await client.products.list({ category: "apparel", limit: 20 });
for (const item of page.data) {
console.log(item.name, item.price);
}API reference
Every endpoint returns JSON and uses standard HTTP status codes.
/v1/productsList products with paging and filters./v1/productsCreate a new product./v1/products/{id}Update some fields of a product./v1/products/{id}Archive a product; it can be restored for 30 days.{
"data": [
{ "id": "product_1831", "name": "Running cap", "price": 235 }
],
"has_more": true
}Troubleshooting
Next steps
Members get early access to new drops and prices only they can see.