{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/digi-key/main/json-schema/digi-key-pack-list-barcode-response-schema.json",
  "title": "PackListBarcodeResponse",
  "description": "Data retrieved from a Packlist.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/digi-key-barcoding-api-openapi.yml#/components/schemas/PackListBarcodeResponse",
  "type": "object",
  "properties": {
    "SalesorderId": {
      "format": "int32",
      "description": "The Id for the Salesorder.",
      "type": "integer"
    },
    "InvoiceId": {
      "format": "int32",
      "description": "The Id for the invoice.",
      "type": "integer"
    },
    "PackListNumber": {
      "format": "int32",
      "description": "PackList number.",
      "type": "integer"
    },
    "PackListDetails": {
      "description": "List of PackList Details.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PackListDetail"
      }
    }
  },
  "$defs": {
    "PackListDetail": {
      "description": "A detail from a Packlist containing the DigiKeyPartNumber and Quantity.",
      "type": "object",
      "properties": {
        "DigiKeyPartNumber": {
          "description": "The Digi-Key part number.",
          "type": "string"
        },
        "Quantity": {
          "format": "int32",
          "description": "Quantity of the product.",
          "type": "integer"
        }
      }
    }
  }
}