Bearer Token authorization
STK Push & Realtime IPN Callbacks
Consistent structured payloads
Valid API Endpoints
Accept: application/json
Fetch paginated fragrance collection with category info, pricing, and inventory stock status. Supports ?search= and ?category=.
Retrieve active fragrance collections and scent families (e.g., Pour Femme, Pour Homme, Unisex) with total product counts.
Authenticates customer or staff credentials and issues a plaintext Bearer token for subsequent requests. Body: {email, password, device_name}.
Submit luxury orders with automated stock validation, inventory decrement, transaction logging, and optional automatic M-Pesa STK Push. Supports mpesa and cod.
Dispatches Safaricom Lipa Na M-Pesa STK prompt to customer mobile device. Check progress with GET /payments/status/{ref}.
Manage customer shipping and billing coordinates with default selection flags for fast checkout completion.
{
"status": "success",
"message": "Sensual Scents & Style API Gateway is active",
"version": "1.0.0",
"data": {
"environment": "production",
"health": "healthy",
"endpoints": [
"/products",
"/categories",
"/orders",
"/payments/initiate"
]
}
}