Fodista Public APIs
  1. Online Ordering
Fodista Public APIs
  • 👋 Introduction
  • 📋 Prerequisites
  • ⚠️ Disclaimer
  • Invoice History
    • Retrieve POS invoice history
      GET
  • Public Menu
    • List menu categories
      GET
    • List menu products
      GET
    • Fetch a single menu product
      GET
  • Online Ordering
    • Retrieve the assigned online store
      GET
    • Add a menu product to the cart
      POST
    • Update a cart item
      PUT
    • Remove menu products from the cart
      POST
    • Get cart totals
      GET
    • Get cart details
      GET
    • Update cart details
      PUT
    • Get address from coordinates
      GET
    • Checkout
      POST
    • List currently online branches
      GET
  • POS Ordering
    • Submit POS orders
      POST
  • General
    • Get External Job status
      GET
  • Schemas
    • Schemas
    • ErrorResponse
    • InvoiceTax
    • InvoiceSummary
    • CartTotals
    • CartModifier
    • CartItem
    • CartItemRequest
    • CartModifierRequest
    • CartSummary
    • CustomerPayload
    • MenuProductOrderType
    • MenuProductOptionCombination
    • MenuProductOptions
    • MenuProductModifierSettings
    • MenuProductModifierOption
    • MenuProductModifier
    • MenuProduct
    • MenuCategory
    • PosOrderRequest
    • PosOrder
    • PosOrderItem
    • PosOrderModifier
    • PosOrderTax
    • PosOrderPayment
    • PosOrderSubmitResponse
    • ExternalJobStatusResponse
  1. Online Ordering

List currently online branches

GET
/api/method/public/online-ordering/get-online-branches
Returns the restaurant branches that are open right now and online ordering-ready. Provide latitude and longitude together to restrict results to branches that cover the coordinate via their delivery zones. Supply restaurant_brand to constrain the results to branches linked to that brand. Tokens bound to a specific branch always return that branch only.

Request

Authorization
Add parameter in header
X-Access-Token
Example:
X-Access-Token: ********************
Query Params

Responses

🟢200
application/json
Array of branch names that are online and open.
Body

🟠401
🟠403
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '/api/method/public/online-ordering/get-online-branches?search_term&lat&lon&timestamp&restaurant_brand' \
--header 'X-Access-Token: <api-key>'
Response Response Example
200 - Success
{
    "message": [
        "BR-CAIRO-1",
        "BR-CAIRO-2"
    ]
}
Previous
Checkout
Next
Submit POS orders
Built with