Commerce API

Build stores. Ship fast.

Storebase provides a complete, structured REST API for e-commerce — products, orders, categories, customers, and administration — ready for your storefront.

Endpoints
63 routes v1 JSON
Auth
Bearer token Register Login Logout
Commerce
Products Orders Categories Search
Admin
Dashboard Customers Settings Users
Responses
200 OK 201 Created 422 Validation 401 Auth
Public

Authentication

7 endpoints

Storefront

Categories · Products · Orders · Search · Contact

Account

3 endpoints
Admin

Admin panel

Products · Orders · Categories · Customers · Settings

Super admin

Users · Settings

Response format

All responses follow a consistent envelope. Successful operations return success: true with optional data and message fields. Errors include a readable message and field-level validation details.

response.json
// Success
{
  "success": true,
  "message": "Profile updated.",
  "data": {
    "id": 42,
    "name": "Amara Osei",
    "email": "amara@example.com",
    "role": "customer"
  }
}

// Validation error (422)
{
  "message": "The email field must be a valid email address.",
  "errors": {
    "email": ["The email field must be a valid email address."]
  }
}

// Unauthenticated (401)
{
  "message": "Unauthenticated."
}