OpenCart · Schema

CartProduct

A product entry within the OpenCart shopping cart session.

E-CommerceShopping CartOpen-SourceSelf-HostedProductOrderCustomersCategories

Properties

Name Type Description
cart_id string Unique identifier for the cart line item
product_id integer OpenCart product identifier
name string Product name
model string Product model/SKU
option array Selected product options
subscription_plan_id integernull Associated subscription plan, if any
subscription string Formatted subscription description text
quantity integer
price number Unit price (after options and discounts)
total number Line total (price × quantity)
View JSON Schema on GitHub

JSON Schema

cart-product.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/opencart/main/json-schema/cart-product.json",
  "title": "CartProduct",
  "description": "A product entry within the OpenCart shopping cart session.",
  "type": "object",
  "properties": {
    "cart_id": {
      "type": "string",
      "description": "Unique identifier for the cart line item"
    },
    "product_id": {
      "type": "integer",
      "description": "OpenCart product identifier"
    },
    "name": {
      "type": "string",
      "description": "Product name"
    },
    "model": {
      "type": "string",
      "description": "Product model/SKU"
    },
    "option": {
      "type": "array",
      "description": "Selected product options",
      "items": {
        "type": "object",
        "properties": {
          "product_option_id": { "type": "integer" },
          "product_option_value_id": { "type": "integer" },
          "name": { "type": "string" },
          "value": { "type": "string" },
          "type": { "type": "string" }
        }
      }
    },
    "subscription_plan_id": {
      "type": ["integer", "null"],
      "description": "Associated subscription plan, if any"
    },
    "subscription": {
      "type": "string",
      "description": "Formatted subscription description text"
    },
    "quantity": {
      "type": "integer",
      "minimum": 1
    },
    "price": {
      "type": "number",
      "description": "Unit price (after options and discounts)"
    },
    "total": {
      "type": "number",
      "description": "Line total (price × quantity)"
    }
  },
  "required": ["cart_id", "product_id", "name", "quantity", "price", "total"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cart-product"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.