{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/asendia/main/json-schema/asendia-post-pre-alert-request-schema.json",
  "title": "postPreAlertRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asendia-a1-shippingplatform-openapi.yml#/components/schemas/postPreAlertRequest",
  "required": [
    "accountNumber",
    "masterAirwayBill",
    "referenceDispatchNumber",
    "trackingNumbers",
    "transportationType"
  ],
  "type": "object",
  "properties": {
    "accountNumber": {
      "maxLength": 12,
      "type": "string",
      "description": "Asendia's account number designated for the shipper. This will be provided at account setup."
    },
    "subAccountNumber": {
      "maxLength": 12,
      "type": [
        "string",
        "null"
      ],
      "description": "Asendia's sub account number designated for the shipper, if applicable. This will be provided at account setup."
    },
    "masterAirwayBill": {
      "maxLength": 20,
      "type": "string",
      "description": "Master Airway Bill."
    },
    "transportationType": {
      "allOf": [
        {
          "$ref": "#/$defs/TransPortationTypeEnum"
        }
      ],
      "description": "Transportation Type Ground OR Air"
    },
    "referenceDispatchNumber": {
      "maxLength": 20,
      "type": "string",
      "description": "Customer Reference Dispatch Number"
    },
    "trackingNumbers": {
      "minLength": 0,
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of Tracking Numbers to Close."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "TransPortationTypeEnum": {
      "enum": [
        "air",
        "ground"
      ],
      "type": "string"
    }
  }
}