Skip to content

OrderShipment

Type: schema

Description

Order shipment model

TypeScript Definition

typescript
OrderShipment: {{
            reference_number?: string;
            /** @enum {unknown} */
            status?: "pending" | "approved" | "shipped" | "delivered" | "cancelled";
            total_weight?: number;
            total_boxes?: number;
            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;
            courier_company_name?: string;
            shipping_label_url?: string;
            awb_no?: string;
            eta_delivery?: string;
            /** Format: date-time */
            shipped_date?: string;
            /** Format: date-time */
            delivered_date?: string;
            cancellation_reason?: string;
            /** Format: date-time */
            created_at?: string;
            /** Format: date-time */
            modified_at?: string;
        };
        /**
         * Pagination
         * @description pagination metadata structure
         */
}

Component References

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

OpenAPI Schema

json
{
  "description": "Order shipment model",
  "type": "object",
  "properties": {
    "reference_number": {
      "type": "string"
    },
    "status": {
      "enum": [
        "pending",
        "approved",
        "shipped",
        "delivered",
        "cancelled"
      ]
    },
    "total_weight": {
      "type": "number"
    },
    "total_boxes": {
      "type": "integer"
    },
    "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"
    },
    "courier_company_name": {
      "type": "string"
    },
    "shipping_label_url": {
      "type": "string"
    },
    "awb_no": {
      "type": "string"
    },
    "eta_delivery": {
      "type": "string"
    },
    "shipped_date": {
      "type": "string",
      "format": "date-time"
    },
    "delivered_date": {
      "type": "string",
      "format": "date-time"
    },
    "cancellation_reason": {
      "type": "string"
    },
    "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: