Skip to content

CartShipment ​

Type: schema

Description ​

Cart shipment model

TypeScript Definition ​

typescript
CartShipment: {{
            id: string;
            shipping_provider_id: string | null;
            shipping_provider_name: string | null;
            courier_company_id: string | null;
            courier_company_name: string | null;
            /** Format: double */
            shipping_amount: number;
            /** Format: double */
            shipping_tax_amount: number;
            /** Format: double */
            shipping_amount_including_tax: number;
            shipment_items_count: number;
            items: components["schemas"]["CartShipmentItem"][];
        };
        /**
         * CartShipmentItem
         * @description An item in a cart shipment.
         */
}

Component References ​

ReferenceResolves To
components["schemas"]["CartShipmentItem"]CartShipmentItem

OpenAPI Schema ​

json
{
  "description": "Cart shipment model",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "shipping_provider_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipping_provider_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "courier_company_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "courier_company_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipping_amount": {
      "type": "number",
      "format": "double"
    },
    "shipping_tax_amount": {
      "type": "number",
      "format": "double"
    },
    "shipping_amount_including_tax": {
      "type": "number",
      "format": "double"
    },
    "shipment_items_count": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CartShipmentItem"
      }
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/CartShipment"
  },
  "required": [
    "id",
    "shipping_provider_id",
    "shipping_provider_name",
    "courier_company_id",
    "courier_company_name",
    "shipping_amount",
    "shipping_tax_amount",
    "shipping_amount_including_tax",
    "shipment_items_count",
    "items"
  ],
  "title": "CartShipment"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: