🌐 Groceries Public API

Endpoints available without authentication.

Base URL

http://localhost:5000

Shop Settings

GET /shop/settings

Fetch public shop settings (store name, branches, contact info, delivery/pickup options, fees, payment toggles, maintenance).

200 OK - Success

{
  "settings": {
    "store_name": "FreshMart",
    "number_of_branches": 2,
    "emails": ["main@freshmart.com", "support@freshmart.com"],
    "phones": ["+254700000000", "+254711111111"],
    "addresses": ["HQ Address", "Branch 2 Address"],
    "enable_delivery": true,
    "enable_pickup": true,
    "delivery_fee_per_km": "50.00",
    "free_delivery_threshold": "1000.00",
    "delivery_radius_km": "15.00",
    "enable_cash_on_delivery": true,
    "enable_bank_payments": false,
    "enable_mpesa": true,
    "enable_registrations": true,
    "maintenance_mode": false
  }
}

If no settings exist, returns {"settings": null}.