Secure checkout
Order before 2 pm and most items leave our warehouse the same day. Thousands of five-star reviews from customers who came back for more.
Overview
Pay securely with card, wallet or in three interest-free instalments. Our packaging is plastic-free and every delivery is carbon-neutral. We listen first, then build a plan around what you actually need. Thousands of shoppers already trust us, and we work hard to keep it that way.
Installation
Install the SDK with the package manager your project already uses. It needs Node 18 or newer.
$ npm install @xenoara-pro/sdk$ yarn add @xenoara-pro/sdk$ pnpm add @xenoara-pro/sdkConfiguration
Clear prices, honest advice and no surprises along the way. Start in minutes and get help from a real person whenever you need it. Create a file named xenoara-pro.config.json in the project root:
{
"project": "xenoara-pro",
"region": "eu-west",
"categories": ["apparel", "home", "accessories"],
"retries": 2,
"timeoutMs": 10000,
"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
We keep things simple, so you can focus on what matters to you.
- 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 "@xenoara-pro/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_5375", "name": "Desk lamp", "price": 203 }
],
"has_more": true
}Troubleshooting
Next steps
New pieces arrive every month, and the best ones sell out fast.