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;
            /** @description `ShipmentItemStandard` on B2B/B2C stores; `ShipmentItem` when `seller_detail` is returned for marketplace stores. */
            shipment_items?: (components["schemas"]["ShipmentItemStandard"] | components["schemas"]["AdminShipmentItem"])[];
            /** Format: double */
            shipping_estimated_cost?: $Read<number>;
            /** Format: double */
            shipping_discount_amount?: $Read<number>;
            /** Format: double */
            shipping_amount?: number;
            /** Format: double */
            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>;
            shipping_address_line2?: $Read<string | null>;
            /** @description Empty string when the address has no landmark. */
            shipping_landmark?: $Read<string | null>;
            shipping_city?: $Read<string>;
            shipping_state?: $Read<string>;
            shipping_pincode?: $Read<string>;
            /** Format: date-time */
            created_at?: string;
            /** Format: date-time */
            modified_at?: string;
        };
        /** OrderShipmentDetail */
}

Component References ​

ReferenceResolves To
components["schemas"]["ShipmentStatus"]ShipmentStatus
components["schemas"]["ShipmentItemStandard"]ShipmentItemStandard
components["schemas"]["AdminShipmentItem"]AdminShipmentItem

OpenAPI Schema ​

json
{
  "description": "Order shipment model",
  "type": "object",
  "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": {
      "description": "`ShipmentItemStandard` on B2B/B2C stores; `ShipmentItem` when `seller_detail` is returned for marketplace stores.",
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ShipmentItemStandard"
          },
          {
            "$ref": "#/components/schemas/AdminShipmentItem"
          }
        ]
      }
    },
    "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": {
      "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",
      "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",
      "readOnly": true
    },
    "shipping_state": {
      "type": "string",
      "readOnly": true
    },
    "shipping_pincode": {
      "type": "string",
      "readOnly": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "title": "OrderShipment",
  "x-tags": [
    "Orders"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: