{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/asendia/main/json-schema/asendia-pre-process-parcel-request-schema.json",
  "title": "PreProcessParcelRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asendia-a1-dws-openapi.yml#/components/schemas/PreProcessParcelRequest",
  "required": [
    "dimUnit",
    "processingLocation",
    "totalPackageWeight",
    "trackingNumbers",
    "weightUnit"
  ],
  "type": "object",
  "properties": {
    "trackingNumbers": {
      "type": "string",
      "description": "The tracking numbers belonging to the packages you're looking for details of. Accepts up to 10 numbers separated by a comma."
    },
    "processingLocation": {
      "maxLength": 3,
      "minLength": 3,
      "type": "string",
      "description": "The Asendia's location in where the physical package will be processed.\r\nPossible values: SFO, MIA, JFK, PHL, ORD, LAX, SLC, TOR, CAL"
    },
    "totalPackageWeight": {
      "type": "number",
      "description": "The package's actual weight",
      "format": "double"
    },
    "weightUnit": {
      "allOf": [
        {
          "$ref": "#/$defs/weightUnitEnum"
        }
      ],
      "description": "The package's unit of weight"
    },
    "dimLength": {
      "type": "number",
      "description": "The packages dimensional length",
      "format": "double"
    },
    "dimWidth": {
      "type": "number",
      "description": "The packages dimensional width",
      "format": "double"
    },
    "dimHeight": {
      "type": "number",
      "description": "The packages dimensional height",
      "format": "double"
    },
    "dimUnit": {
      "allOf": [
        {
          "$ref": "#/$defs/dimUnitEnum"
        }
      ],
      "description": "The packages dimensional unit"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "dimUnitEnum": {
      "enum": [
        "IN",
        "CM",
        "MM"
      ],
      "type": "string"
    },
    "weightUnitEnum": {
      "enum": [
        "Lb",
        "Kg"
      ],
      "type": "string"
    }
  }
}