Skip to content

CartRead ​

Type: schema

TypeScript Definition ​

typescript
CartRead: {components["schemas"]["Cart"] & {
            sales_channel?: Record<string, never>
}

Component References ​

ReferenceResolves To
components["schemas"]["Cart"]Cart

OpenAPI Schema ​

json
{
  "title": "CartRead",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/CartRead",
    "description": "API reference for the CartRead schema"
  },
  "allOf": [
    {
      "$ref": "#/components/schemas/Cart"
    },
    {
      "type": "object",
      "required": [
        "promotion_discount_percent",
        "coupon_id",
        "fulfillment_preference",
        "shipping_provider_name",
        "courier_company_name"
      ],
      "properties": {
        "sales_channel": {
          "type": "object",
          "required": [
            "id",
            "name",
            "type"
          ]
        },
        "cart_items": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/CartItemRead"
          }
        }
      }
    }
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: