Food Delivery API

A food-delivery order lifecycle for testing state machines: restaurants and menus, orders with server-computed totals and Idempotency-Key, status from placed to delivered, cancellation windows, courier tracking and webhook-style events with duplicates.

Base URL: https://funapi.dev/api/delivery/v1 · 8 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

restaurants

restaurants and menus

orders

order lifecycle

events

webhook-style events

The Food Delivery API is a small order-lifecycle service of the kind every delivery, ride-hailing or logistics app is built around: restaurants with menus, orders whose totals, tax and fees are computed by the server, a status that moves from placed to delivered, a cancellation window that closes when the courier picks the food up, live courier tracking and webhook-style events that arrive duplicated and out of order.

What you can practise here

Example request and response

GET https://funapi.dev/api/delivery/v1/restaurants — Restaurants, filterable by cuisine and open status. No token, no signup:

curl -i https://funapi.dev/api/delivery/v1/restaurants

Response: 200 OK

{
  "data": [
    {
      "id": 1,
      "name": "Golden Wok",
      "cuisine": "chinese",
      "rating": 4,
      "deliveryFee": 2.99,
      "open": true,
      "menuItems": 3
    },
    {
      "id": 2,
      "name": "Pizzeria Uno Due",
      "cuisine": "italian",
      "rating": 4.2,
      "deliveryFee": 3.99,
      "open": true,
      "menuItems": 3
    },
    {
      "id": 3,
      "name": "Taco Norte",
      "cuisine": "mexican",
      "rating": 4.4,
      "deliveryFee": 4.99,
      "open": true,
      "menuItems": 3
    },
    {
      "id": 4,
      "name": "Bento Lab",
      "cuisine": "japanese",
      "rating": 4.6,
      "deliveryFee": 5.99,
      "open": true,
      "menuItems": 3
    },
    {
      "id": 5,
      "name": "Green Bowl",
      "cuisine": "salads",
      "rating": 4,
      "deliveryFee": 6.99,
      "open": false,
      "menuItems": 3
    }
  ]
}

Open and run this endpoint

All 55 mock REST APIs

Use this response elsewhere

Last updated