{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-transportation-management/json-schema/oracle-transportation-management-shipment-order-detail-schema.json",
  "title": "ShipmentOrderDetail",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-transportation-management-shipment-orders-api-openapi.yml#/components/schemas/ShipmentOrderDetail",
  "allOf": [
    {
      "$ref": "#/$defs/ShipmentOrder"
    },
    {
      "type": "object",
      "properties": {
        "lines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ShipmentOrderLine"
          }
        },
        "references": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "refType": {
                "type": "string"
              },
              "refValue": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "ShipmentOrder": {
      "type": "object",
      "description": "An OTM shipment order (order to move)",
      "properties": {
        "shipmentOrderGid": {
          "type": "string",
          "description": "Global identifier (domain.xid format)"
        },
        "shipmentOrderXid": {
          "type": "string",
          "description": "User-defined order ID"
        },
        "status": {
          "type": "string",
          "enum": [
            "I",
            "OB",
            "PL",
            "DP",
            "IT",
            "DL",
            "CL"
          ],
          "description": "I=Initial, OB=Open-Booked, PL=Planned, DP=Dispatched, IT=InTransit, DL=Delivered, CL=Closed"
        },
        "sourceLocationGid": {
          "type": "string",
          "description": "Origin location GID"
        },
        "destLocationGid": {
          "type": "string",
          "description": "Destination location GID"
        },
        "earlyPickupDate": {
          "type": "string",
          "format": "date-time"
        },
        "latePickupDate": {
          "type": "string",
          "format": "date-time"
        },
        "earlyDeliveryDate": {
          "type": "string",
          "format": "date-time"
        },
        "lateDeliveryDate": {
          "type": "string",
          "format": "date-time"
        },
        "transportationMode": {
          "type": "string",
          "enum": [
            "LTL",
            "TL",
            "OCEAN",
            "AIR",
            "RAIL",
            "PARCEL",
            "INTERMODAL"
          ]
        },
        "totalWeight": {
          "type": "number",
          "format": "double"
        },
        "totalWeightUom": {
          "type": "string",
          "enum": [
            "LB",
            "KG",
            "T",
            "MT"
          ]
        },
        "totalVolume": {
          "type": "number",
          "format": "double"
        },
        "totalVolumeUom": {
          "type": "string"
        },
        "insertDate": {
          "type": "string",
          "format": "date-time"
        },
        "lastUpdateDate": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "ShipmentOrderLine": {
      "type": "object",
      "properties": {
        "lineNumber": {
          "type": "integer"
        },
        "itemGid": {
          "type": "string"
        },
        "itemDescription": {
          "type": "string"
        },
        "quantity": {
          "type": "number",
          "format": "double"
        },
        "quantityUom": {
          "type": "string"
        },
        "weight": {
          "type": "number",
          "format": "double"
        },
        "weightUom": {
          "type": "string"
        },
        "volume": {
          "type": "number",
          "format": "double"
        },
        "volumeUom": {
          "type": "string"
        },
        "packageType": {
          "type": "string"
        }
      }
    }
  }
}