MealMe · JSON Structure

Mealme Api Cart Item Structure

CartItem schema from MealMe Food Ordering API

Type: object Properties: 5 Required: 1
DeliveryFoodGroceryOrderingRestaurants

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

Properties

product_id quantity product_marked_price selected_options notes

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-item-structure.json",
  "name": "CartItem",
  "description": "CartItem schema from MealMe Food Ordering API",
  "type": "object",
  "properties": {
    "product_id": {
      "type": "string",
      "description": "Product identifier from a search or inventory result.",
      "example": "prod_5a3e9d12"
    },
    "quantity": {
      "type": "int32",
      "minimum": 1,
      "default": 1,
      "example": 1
    },
    "product_marked_price": {
      "type": "int32",
      "description": "Marked price in cents.",
      "example": 1299
    },
    "selected_options": {
      "type": "array",
      "description": "Selected product customizations and modifiers.",
      "items": {
        "type": "object"
      },
      "example": []
    },
    "notes": {
      "type": "string",
      "description": "Special instructions for the store.",
      "example": "Leave at the front desk"
    }
  },
  "required": [
    "product_id"
  ]
}