← Service home

WiseStore API Reference

Base URL: https://api.wisestore.co.ke/api

Interactive documentation is on the way. This stub is served while we finalize the auto-generated reference. To generate full interactive docs locally, install Scribe:
composer require --dev knuckleswtf/scribe
php artisan vendor:publish --tag=scribe-config
php artisan scribe:generate

Authentication

All authenticated requests require a bearer token obtained from the login endpoint:

curl -X POST https://api.wisestore.co.ke/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"admin@demo.co.ke","password":"password"}'

The response contains a token field. Attach it to every subsequent request:

Authorization: Bearer 1|abc123...

Tenant scoping

Tenant-scoped endpoints require two additional headers:

Super admins may act on any company. Regular users are restricted to their own.

Response envelope

Lists return { data: [...], meta: {...} }. Single resources return { data: {...} }. Validation errors use Laravel's standard shape with HTTP 422.

Endpoint reference

See the service home for the full endpoint map by domain (Sales, Inventory, Money, Reports, Platform Admin).

Rate limits

Support

Email developers@wisestore.co.ke for integration support.