Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.shoppex.io/llms.txt

Use this file to discover all available pages before exploring further.

Official SDKs

Developer API SDK (JS/TS)

Official JavaScript/TypeScript SDK for /dev/v1/*.
npm install @shoppexio/sdk

Storefront SDK

JavaScript storefront SDK for products, carts, and hosted checkout.
npm install @shoppexio/storefront

Python + PHP

Matching Developer API packages for backend integrations.
pip install shoppexio
composer require shoppexio/shoppex-php

Which SDK should you use?

What you’re buildingSDK
Node/Bun backend calling /dev/v1/*@shoppexio/sdk
Python worker syncing customersshoppexio
Laravel/PHP backend integrationshoppexio/shoppex-php
Frontend with products, cart, checkout@shoppexio/storefront
Language without an official SDKRaw HTTP with the OpenAPI spec
@shoppexio/sdk is the server-side Developer API SDK. It has no CDN or browser global build and must not be bundled into customer-facing frontend code because it uses API keys. Browser storefronts use @shoppexio/storefront or the Storefront SDK CDN instead.

Quick Examples

import { ShoppexClient } from '@shoppexio/sdk';

const client = new ShoppexClient({
  apiKey: process.env.SHOPPEX_API_KEY!,
});

const products = await client.products.list();
console.log(products.data[0]?.title);

await client.resellerProgram.update({
  is_enabled: true,
  default_mode: 'BOTH',
  default_commission_percent: 25,
});

await client.invoices.issueReplacement('019c525f-3333-7333-8333-333333333333', {
  quantity: 1,
  product_id: 'prod_1',
  reason: 'previous replacement failed',
  override_remaining_quantity: true,
}, {
  idempotencyKey: 'replacement-019c525f-3333-7333-8333-333333333333-1',
});

Public Repositories


REST API

No SDK required - use the REST API directly with any HTTP client. Every endpoint in the API Reference includes auto-generated code examples for cURL, Python, JavaScript, PHP, Go, Java, and Ruby.

OpenAPI Specification

Generate your own client using our OpenAPI spec:
https://docs.shoppex.io/openapi.json
Use tools like:

Webhooks

For webhook integration, see our Webhooks Guide which covers:
  • Setting up webhook endpoints
  • Verifying signatures
  • Handling events
  • Retry logic

Webhook Events Reference

Complete list of webhook events and payloads