Shops are only returned by public endpoints if they are approved and active in the Mutasib platform. Individual products must have
is_public set to true to appear in public search results and shop product listings.Search Products
Search across all public products on the platform with optional filters for category, price range, and shop.GET /api/v1/public/search/
ProductListOut objects matching the search criteria, sorted by relevance.
List Public Shops
Browse all approved, active shops on the platform. Optionally filter by category.GET /api/v1/public/shops/
ShopListOut objects.
Get Shop Details
Retrieve the public profile of a single shop by its ID, including name, location, and category.GET /api/v1/public/shops/{shop_id}/
ShopOut object with the full public profile of the shop.
Get Shop Products
List all public products offered by a specific shop. Supports search and category filtering.GET /api/v1/public/shops/{shop_id}/products/
ProductListOut objects belonging to that shop where is_public is true.
Nearby Shops
Find approved shops within a given radius of a geographic coordinate. Results are sorted by distance from the provided location.GET /api/v1/public/shops/nearby/
ShopListOut objects, each augmented with a distance_km field indicating how far the shop is from the provided coordinates.
Receipt by Token
Retrieve the full details of a sale using itsreceipt_token. This endpoint is public — no authentication is needed — making it suitable for QR code links you print on paper receipts or send via SMS.
GET /api/v1/public/receipt/{token}
SaleOut object with the full list of purchased items. See Sales API for SaleOut field definitions.
Receipt PDF
Download a formatted PDF copy of a receipt. Useful for customers who need a printable or saveable version.GET /api/v1/public/receipt/{token}/pdf
Content-Type: application/pdf. The PDF includes the shop name, cashier, itemized list, and total amount.