Brand Kit API
Storefront checkout, customer accounts, and brand admin routes on your provisioned Spoke server.
Brand Kit API
Runs on your brand server after nerionx provision. Storefront routes are public (CORS-scoped to your storefront origin); admin routes require a Brand Kit session with RBAC roles. Checkout is the critical path — it validates the cart locally then forwards to Hub POST /orders with your brand API key server-side.
Commerce & admin
| Method | Path |
|---|---|
GET | /storefront/products |
POST | /storefront/checkout |
GET | /admin/orders |
GET | /admin/spoke/me |
Code examples
Storefront checkout
Brand Kit checkout forwards to Hub POST /orders after local cart validation.
curl -s -X POST "http://localhost:9001/storefront/checkout" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <customer_token>" \
-d '{
"items": [{ "sku_id": "SKU-001", "quantity": 1 }],
"shipping_address": {
"line1": "1 Main St", "city": "Zurich",
"postal_code": "8001", "country": "CH"
}
}'Environment variables
HUB_API_URL— Hub base (https://api.nerionx.dev)HUB_API_KEY— Brand live or sandbox keyNEXT_PUBLIC_SPOKE_BACKEND_URL— Storefront proxy target