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

Get cart totals

GET
/api/method/public/online-ordering/get-cart-totals
Returns a light-weight snapshot with the top-level item count and the rounded total. Use it to show the cart badge or confirm how much the guest should pay. If the cart does not exist the API calmly returns zeros instead of throwing an error.

Request

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

Responses

🟢200OK
application/json
Current totals for the cart.
Body

🟠401Unauthorized
🟠403Forbidden
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '/api/method/public/online-ordering/get-cart-totals?cart_id' \
--header 'X-Access-Token: <api-key>'
Response Response Example
200 - Example 1
{
    "items_count": 0,
    "rounded_total": 0
}
Previous
Remove menu products from the cart
Next
Get cart details
Built with