API
Developer API
REST API for products, orders, customers, coupons, and webhooks.
The Developer API lives at /api/dev/v1. Every response is wrapped:
{ "data": { } }Errors:
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key.",
"doc_url": "/docs/api/errors"
}
}Resources
| Resource | Path |
|---|---|
| Products | /api/dev/v1/products |
| Orders | /api/dev/v1/orders |
| Invoices | /api/dev/v1/invoices |
| Customers | /api/dev/v1/customers |
| Coupons | /api/dev/v1/coupons |
| Webhooks | /api/dev/v1/webhooks |
| API keys | /api/dev/v1/api-keys |
Lists are cursor-paginated. Pass limit and starting_after.
SDK
import { VinextClient } from "@vinext/sdk";
const client = new VinextClient({
apiKey: process.env.VINEXT_API_KEY!,
baseUrl: "https://your-vinext-host",
});
const products = await client.products.list();The package name stays @vinext/sdk. Auth is Authorization: Bearer <apiKey>.