MealMe · JSON Structure

Mealme Api Order Request Structure

OrderRequest schema from MealMe Food Ordering API

Type: object Properties: 29 Required: 6
DeliveryFoodGroceryOrderingRestaurants

OrderRequest is a JSON Structure definition published by MealMe, describing 29 properties, of which 6 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

place_order order_id items pickup scheduled_id driver_tip_cents pickup_tip_cents user_latitude user_longitude user_street_num user_street_name user_apt_num user_city user_state user_country user_zipcode user_dropoff_notes user_pickup_notes user_name user_email user_phone user_id payment_method_id charge_user include_final_quote disable_sms customer_order_id metadata tracking_link

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mealme/refs/heads/main/json-structure/mealme-api-order-request-structure.json",
  "name": "OrderRequest",
  "description": "OrderRequest schema from MealMe Food Ordering API",
  "type": "object",
  "properties": {
    "place_order": {
      "type": "boolean",
      "description": "When false, returns a finalizable quote rather than placing.",
      "example": false
    },
    "order_id": {
      "type": "string",
      "example": "ord_8f2a1c9b"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CartItem"
      }
    },
    "pickup": {
      "type": "boolean",
      "example": false
    },
    "scheduled_id": {
      "type": "string",
      "example": "id_7b2c4e"
    },
    "driver_tip_cents": {
      "type": "int32",
      "example": 1299
    },
    "pickup_tip_cents": {
      "type": "int32",
      "example": 1299
    },
    "user_latitude": {
      "type": "double",
      "example": 37.7786357
    },
    "user_longitude": {
      "type": "double",
      "example": -122.3918135
    },
    "user_street_num": {
      "type": "string",
      "example": "188"
    },
    "user_street_name": {
      "type": "string",
      "example": "King Street"
    },
    "user_apt_num": {
      "type": "string",
      "example": "example"
    },
    "user_city": {
      "type": "string",
      "example": "San Francisco"
    },
    "user_state": {
      "type": "string",
      "example": "CA"
    },
    "user_country": {
      "type": "string",
      "enum": [
        "US",
        "CA"
      ],
      "example": "US"
    },
    "user_zipcode": {
      "type": "string",
      "example": "94107"
    },
    "user_dropoff_notes": {
      "type": "string",
      "example": "Leave at the front desk"
    },
    "user_pickup_notes": {
      "type": "string",
      "example": "Leave at the front desk"
    },
    "user_name": {
      "type": "string",
      "example": "Steve Jobs"
    },
    "user_email": {
      "type": "string",
      "example": "diner@example.com"
    },
    "user_phone": {
      "type": "int32",
      "example": 14155550123
    },
    "user_id": {
      "type": "string",
      "example": "user_abc123"
    },
    "payment_method_id": {
      "type": "string",
      "example": "id_7b2c4e"
    },
    "charge_user": {
      "type": "boolean",
      "example": false
    },
    "include_final_quote": {
      "type": "boolean",
      "example": false
    },
    "disable_sms": {
      "type": "boolean",
      "example": false
    },
    "customer_order_id": {
      "type": "string",
      "example": "id_7b2c4e"
    },
    "metadata": {
      "type": "object",
      "example": {}
    },
    "tracking_link": {
      "type": "string",
      "example": "https://example.com/webhook"
    }
  },
  "required": [
    "items",
    "pickup",
    "user_name",
    "user_email",
    "user_phone",
    "user_id"
  ]
}