Skip to content

OrderShipment ​

Type: schema

Description ​

Order shipment model

TypeScript Definition ​

typescript
OrderShipment: {{
            reference_number: string;
            status: components["schemas"]["ShipmentStatus"];
            total_weight: number;
            total_boxes: number | null;
            shipment_items_count: number;
            shipment_items: components["schemas"]["OrderShipmentItem"][];
            /** Format: double */
            shipping_amount: number;
            /** Format: double */
            shipping_tax_amount: number;
            /** Format: double */
            shipping_amount_including_tax: number;
            courier_company_name: string | null;
            shipping_label_url: string | null;
            awb_no: string | null;
            tracking_url: string | null;
            eta_delivery: string | null;
            /** Format: date-time */
            shipped_date: string | null;
            /** Format: date-time */
            delivered_date: string | null;
            /** @default false */
            is_return_allowed: boolean;
            cancellation_reason: string | null;
            /** Format: date-time */
            created_at: string;
            /** Format: date-time */
            modified_at: string;
            /** Format: double */
            shipping_estimated_cost: number;
            /**
             * Format: double
             * @description For a single rate, the shipping GST percentage. For mixed-rate GST charges, the highest component rate; use charge_tax_lines for the taxable value and tax at each rate. Earlier sales retain their original shipping rate.
             */
            shipping_tax_rate: number;
            /** Format: double */
            shipping_discount_amount: number;
            courier_company_id: string | null;
            shipping_provider_id: string | null;
            /** @description Shipping provider (courier aggregator) name. */
            shipping_provider_name: string | null;
            /** Format: date-time */
            promised_delivery_date: string | null;
            /** Format: date-time */
            estimated_delivery_date: string | null;
            /** Format: date-time */
            out_for_delivery_date: string | null;
            /** @description Fulfillment type for the shipment (e.g. `delivery`, `collect-in-store`). */
            fulfillment_type: string;
            /** @description Seller ID. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores. */
            seller_id: string | null;
            /** @description Seller detail information. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores. */
            seller_detail: components["schemas"]["SellerInfo"] | null;
            /** @description Shipping and handling taxable value and GST by rate, under the store's charge tax treatment. Null for earlier sales that have no retained breakdown. */
            charge_tax_lines?: components["schemas"]["ChargeTaxLine"][] | null;
            /**
             * @description Signed rounding adjustment included in the supply total. Loyalty points and store credit are payments against that total.
             * @example -0.04
             */
            round_off?: number | null;
        };
        /**
         * OrderShipmentItem
         * @description A line in an order shipment.
         */
}

Component References ​

ReferenceResolves To
components["schemas"]["ShipmentStatus"]ShipmentStatus
components["schemas"]["OrderShipmentItem"]OrderShipmentItem
components["schemas"]["SellerInfo"]SellerInfo
components["schemas"]["ChargeTaxLine"]ChargeTaxLine

OpenAPI Schema ​

json
{
  "title": "OrderShipment",
  "description": "Order shipment model",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/OrderShipment",
    "description": "API reference for the OrderShipment schema"
  },
  "required": [
    "reference_number",
    "status",
    "total_weight",
    "total_boxes",
    "shipment_items_count",
    "shipment_items",
    "shipping_amount",
    "shipping_tax_amount",
    "shipping_amount_including_tax",
    "courier_company_name",
    "shipping_label_url",
    "awb_no",
    "tracking_url",
    "eta_delivery",
    "shipped_date",
    "delivered_date",
    "is_return_allowed",
    "cancellation_reason",
    "created_at",
    "modified_at",
    "shipping_estimated_cost",
    "shipping_tax_rate",
    "shipping_discount_amount",
    "courier_company_id",
    "shipping_provider_id",
    "shipping_provider_name",
    "promised_delivery_date",
    "estimated_delivery_date",
    "out_for_delivery_date",
    "fulfillment_type",
    "seller_id",
    "seller_detail"
  ],
  "properties": {
    "reference_number": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/ShipmentStatus"
    },
    "total_weight": {
      "type": "number"
    },
    "total_boxes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "shipment_items_count": {
      "type": "integer"
    },
    "shipment_items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OrderShipmentItem"
      }
    },
    "shipping_amount": {
      "type": "number",
      "format": "double"
    },
    "shipping_tax_amount": {
      "type": "number",
      "format": "double"
    },
    "shipping_amount_including_tax": {
      "type": "number",
      "format": "double"
    },
    "courier_company_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipping_label_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "awb_no": {
      "type": [
        "string",
        "null"
      ]
    },
    "tracking_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "eta_delivery": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipped_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "delivered_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "is_return_allowed": {
      "type": "boolean",
      "default": false
    },
    "cancellation_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time"
    },
    "shipping_estimated_cost": {
      "type": "number",
      "format": "double"
    },
    "shipping_tax_rate": {
      "description": "For a single rate, the shipping GST percentage. For mixed-rate GST charges, the highest component rate; use charge_tax_lines for the taxable value and tax at each rate. Earlier sales retain their original shipping rate.",
      "type": "number",
      "format": "double"
    },
    "shipping_discount_amount": {
      "type": "number",
      "format": "double"
    },
    "courier_company_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipping_provider_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipping_provider_name": {
      "description": "Shipping provider (courier aggregator) name.",
      "type": [
        "string",
        "null"
      ]
    },
    "promised_delivery_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "estimated_delivery_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "out_for_delivery_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "fulfillment_type": {
      "description": "Fulfillment type for the shipment (e.g. `delivery`, `collect-in-store`).",
      "type": "string"
    },
    "seller_id": {
      "description": "Seller ID. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores.",
      "type": [
        "string",
        "null"
      ]
    },
    "seller_detail": {
      "description": "Seller detail information. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores.",
      "oneOf": [
        {
          "$ref": "#/components/schemas/SellerInfo"
        },
        {
          "type": "null"
        }
      ]
    },
    "charge_tax_lines": {
      "description": "Shipping and handling taxable value and GST by rate, under the store's charge tax treatment. Null for earlier sales that have no retained breakdown.",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/components/schemas/ChargeTaxLine"
      }
    },
    "round_off": {
      "description": "Signed rounding adjustment included in the supply total. Loyalty points and store credit are payments against that total.",
      "type": [
        "number",
        "null"
      ],
      "example": -0.04
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: