MealMe · JSON Structure

Mealme Api Cart Request Structure

CartRequest schema from MealMe Food Ordering API

Type: object Properties: 21 Required: 3
DeliveryFoodGroceryOrderingRestaurants

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

Properties

cart_id items pickup driver_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_name user_email user_phone user_id disable_sms customer_order_id autofill_selected_options

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-cart-request-structure.json",
  "name": "CartRequest",
  "description": "CartRequest schema from MealMe Food Ordering API",
  "type": "object",
  "properties": {
    "cart_id": {
      "type": "string",
      "description": "ID of an existing cart to update.",
      "example": "kQ8vZEd-UnW_gZu6c4iO"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CartItem"
      }
    },
    "pickup": {
      "type": "boolean",
      "description": "Fulfillment type. true for pickup, false for delivery.",
      "example": false
    },
    "driver_tip_cents": {
      "type": "int32",
      "default": 100,
      "example": 100
    },
    "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_name": {
      "type": "string",
      "example": "Steve Jobs"
    },
    "user_email": {
      "type": "string",
      "example": "diner@example.com"
    },
    "user_phone": {
      "type": "int32",
      "example": 14155550123
    },
    "user_id": {
      "type": "string",
      "description": "Unique self-provided customer user ID.",
      "example": "user_abc123"
    },
    "disable_sms": {
      "type": "boolean",
      "default": false,
      "example": false
    },
    "customer_order_id": {
      "type": "string",
      "example": "id_7b2c4e"
    },
    "autofill_selected_options": {
      "type": "boolean",
      "default": false,
      "example": false
    }
  },
  "required": [
    "items",
    "pickup",
    "user_id"
  ]
}