{
  "type": "object",
  "required": [
    "need"
  ],
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "buy",
        "source",
        "quote",
        "verify",
        "lease",
        "license",
        "hire",
        "retrieve",
        "convert",
        "other"
      ],
      "description": "What you want done"
    },
    "need": {
      "type": "string",
      "maxLength": 2000,
      "description": "The requirement in your own words"
    },
    "specifications": {
      "type": "object",
      "properties": {
        "origin": {
          "type": "string",
          "maxLength": 120,
          "description": "Pickup city and state, or postal code",
          "x-facet": "geography"
        },
        "destination": {
          "type": "string",
          "maxLength": 120,
          "description": "Delivery city and state, or postal code",
          "x-facet": "geography"
        },
        "mode": {
          "type": "string",
          "enum": [
            "FTL",
            "LTL",
            "PARTIAL",
            "INTERMODAL",
            "DRAYAGE",
            "EXPEDITED"
          ],
          "description": "How the freight moves",
          "x-facet": "specification"
        },
        "equipment": {
          "type": "string",
          "enum": [
            "DRY_VAN",
            "REEFER",
            "FLATBED",
            "STEP_DECK",
            "CONESTOGA",
            "TANKER",
            "CONTAINER",
            "BOX_TRUCK",
            "OTHER"
          ],
          "description": "Trailer or container type",
          "x-facet": "specification"
        },
        "weight_lbs": {
          "type": "number",
          "minimum": 0,
          "description": "Total weight in pounds",
          "x-facet": "quantity"
        },
        "pallets": {
          "type": "integer",
          "minimum": 0,
          "description": "Number of pallets or handling units",
          "x-facet": "quantity"
        },
        "pickup_window": {
          "type": "string",
          "maxLength": 120,
          "description": "Earliest and latest pickup, with time zone",
          "x-facet": "timing"
        },
        "hazmat": {
          "type": "boolean",
          "description": "Whether the load contains hazardous materials",
          "x-facet": "specification"
        }
      }
    },
    "quantity": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "unit": {
          "type": "string"
        },
        "per": {
          "type": "string"
        }
      }
    },
    "timing": {
      "type": "object",
      "properties": {
        "earliest": {
          "type": "string"
        },
        "latest": {
          "type": "string"
        },
        "recurrence": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      }
    },
    "geography": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      }
    },
    "budget": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string",
          "description": "ISO 4217, default USD"
        },
        "per": {
          "type": "string",
          "description": "total, unit, month, year, load, ..."
        }
      }
    },
    "requested_fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 30,
      "description": "Result fields you need"
    },
    "contact": {
      "type": "object",
      "description": "Optional; stored apart and deleted after 180 days",
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        }
      }
    }
  }
}