Skip to content

AdminOrderShipment ​

Type: schema

Description ​

Order shipment model

TypeScript Definition ​

typescript
AdminOrderShipment: {{
            reference_number?: string;
            status?: components["schemas"]["AdminShipmentStatus"];
            total_weight?: number;
            total_boxes?: number | null;
            shipment_items_count?: number;
            shipment_items?: components["schemas"]["OrderShipmentLine"][];
            /** Format: double */
            shipping_estimated_cost?: $Read<number>;
            /** Format: double */
            shipping_discount_amount?: $Read<number>;
            /** Format: double */
            shipping_amount?: 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?: $Read<number>;
            /** Format: double */
            shipping_tax_amount?: number;
            /** Format: double */
            shipping_amount_including_tax?: number;
            shipping_provider_id?: $Read<string | null>;
            shipping_provider_name?: $Read<string | null>;
            courier_company_id?: string | null;
            courier_company_name?: string | null;
            shipping_label_url?: string | null;
            awb_no?: string | null;
            /** Format: date-time */
            eta_delivery?: string | null;
            /** Format: date-time */
            promised_delivery_date?: $Read<string | null>;
            /** Format: date-time */
            estimated_delivery_date?: $Read<string | null>;
            /** Format: date-time */
            shipped_date?: string | null;
            /** Format: date-time */
            delivered_date?: string | null;
            cancellation_reason?: string | null;
            shipping_address_line1?: $Read<string | null>;
            shipping_address_line2?: $Read<string | null>;
            /** @description Empty string when the address has no landmark. */
            shipping_landmark?: $Read<string | null>;
            shipping_city?: $Read<string | null>;
            shipping_state?: $Read<string | null>;
            shipping_pincode?: $Read<string | null>;
            /** Format: date-time */
            created_at?: string;
            /** Format: date-time */
            modified_at?: string;
            /** @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"]["AdminChargeTaxLine"][] | 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;
        };
        /**
         * OrderStatus
         * @enum {string}
         */
}

Component References ​

ReferenceResolves To
components["schemas"]["AdminShipmentStatus"]AdminShipmentStatus
components["schemas"]["OrderShipmentLine"]OrderShipmentLine
components["schemas"]["AdminChargeTaxLine"]AdminChargeTaxLine

OpenAPI Schema ​

json
{
  "description": "Order shipment model",
  "type": "object",
  "properties": {
    "reference_number": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/AdminShipmentStatus"
    },
    "total_weight": {
      "type": "number"
    },
    "total_boxes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "shipment_items_count": {
      "type": "integer"
    },
    "shipment_items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OrderShipmentLine"
      }
    },
    "shipping_estimated_cost": {
      "type": "number",
      "format": "double",
      "readOnly": true
    },
    "shipping_discount_amount": {
      "type": "number",
      "format": "double",
      "readOnly": true
    },
    "shipping_amount": {
      "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",
      "readOnly": true
    },
    "shipping_tax_amount": {
      "type": "number",
      "format": "double"
    },
    "shipping_amount_including_tax": {
      "type": "number",
      "format": "double"
    },
    "shipping_provider_id": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "shipping_provider_name": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "courier_company_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "courier_company_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipping_label_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "awb_no": {
      "type": [
        "string",
        "null"
      ]
    },
    "eta_delivery": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "promised_delivery_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true
    },
    "estimated_delivery_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true
    },
    "shipped_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "delivered_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "cancellation_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipping_address_line1": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "shipping_address_line2": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "shipping_landmark": {
      "description": "Empty string when the address has no landmark.",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "shipping_city": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "shipping_state": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "shipping_pincode": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time"
    },
    "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/AdminChargeTaxLine"
      }
    },
    "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
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/AdminOrderShipment"
  },
  "title": "OrderShipment",
  "x-tags": [
    "Orders"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: