{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Shipping label data",
  "type": "object",
  "properties": {
    "shipmentId": {
      "type": "string",
      "title": "Shipment id",
      "examples": [
        "SH-20261021-0042"
      ]
    },
    "service": {
      "type": "string",
      "title": "Service",
      "examples": [
        "Ground"
      ]
    },
    "shipDate": {
      "type": "string",
      "format": "date",
      "title": "Ship date",
      "examples": [
        "2026-10-21"
      ]
    },
    "weightLb": {
      "type": "number",
      "title": "Weight (lb)",
      "examples": [
        12.5
      ]
    },
    "fragile": {
      "type": "boolean",
      "title": "Fragile"
    },
    "reference": {
      "type": [
        "string",
        "null"
      ],
      "title": "Reference",
      "examples": [
        "PO-4471"
      ]
    },
    "package": {
      "type": "object",
      "title": "Package",
      "properties": {
        "number": {
          "type": "integer",
          "title": "Package number",
          "examples": [
            1
          ]
        },
        "count": {
          "type": "integer",
          "title": "Package count",
          "examples": [
            2
          ]
        }
      }
    },
    "shipFrom": {
      "type": "object",
      "title": "Ship from",
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "examples": [
            "Summit Fulfillment Co."
          ]
        },
        "address1": {
          "type": "string",
          "title": "Street",
          "examples": [
            "4100 Commerce Pkwy, Building C"
          ]
        },
        "city": {
          "type": "string",
          "title": "City",
          "examples": [
            "Atlanta"
          ]
        },
        "state": {
          "type": "string",
          "title": "State",
          "examples": [
            "GA"
          ]
        },
        "postalCode": {
          "type": "string",
          "title": "ZIP code",
          "examples": [
            "30336"
          ]
        }
      }
    },
    "shipTo": {
      "type": "object",
      "title": "Ship to",
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "examples": [
            "Northwind Retail #1187"
          ]
        },
        "address1": {
          "type": "string",
          "title": "Street",
          "examples": [
            "2250 Lakeshore Blvd"
          ]
        },
        "city": {
          "type": "string",
          "title": "City",
          "examples": [
            "Columbus"
          ]
        },
        "state": {
          "type": "string",
          "title": "State",
          "examples": [
            "OH"
          ]
        },
        "postalCode": {
          "type": "string",
          "title": "ZIP code",
          "examples": [
            "43215"
          ]
        }
      }
    },
    "trackingNumber": {
      "type": "string",
      "title": "Tracking number",
      "examples": [
        "1Z999AA10123456784"
      ]
    }
  }
}
