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"]["ShipmentItem"][];
            /** Format: double */
            shipping_amount?: number;
            /** Format: double */
            shipping_tax_amount?: number;
            /** Format: double */
            shipping_amount_including_tax?: number;
            courier_company_id?: string | null;
            courier_company_name?: string | null;
            shipping_label_url?: string;
            awb_no?: string | null;
            /** Format: date-time */
            eta_delivery?: string | null;
            /** Format: date-time */
            shipped_date?: string | null;
            /** Format: date-time */
            delivered_date?: string | null;
            cancellation_reason?: string | null;
            /** Format: date-time */
            created_at?: string;
            /** Format: date-time */
            modified_at?: string;
        };
        /** OrderShipmentDetail */
}

Component References

ReferenceResolves To
components["schemas"]["ShipmentStatus"]ShipmentStatus
components["schemas"]["ShipmentItem"]ShipmentItem

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": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ShipmentItem"
      }
    },
    "shipping_amount": {
      "type": "number",
      "format": "double"
    },
    "shipping_tax_amount": {
      "type": "number",
      "format": "double"
    },
    "shipping_amount_including_tax": {
      "type": "number",
      "format": "double"
    },
    "courier_company_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "courier_company_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipping_label_url": {
      "type": "string"
    },
    "awb_no": {
      "type": [
        "string",
        "null"
      ]
    },
    "eta_delivery": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "shipped_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "delivered_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "cancellation_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "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: