{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-item-shipped-dto-schema.json",
  "title": "itemShippedDTO",
  "description": "D2IR Item shipped",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-mod-inn-reach-circulation-openapi.yml#/components/schemas/itemShippedDTO",
  "allOf": [
    {
      "$ref": "#/$defs/baseCircRequestDTO"
    }
  ],
  "type": "object",
  "properties": {
    "pickupLocation": {
      "description": "Pickup location",
      "type": "string"
    },
    "centralItemType": {
      "description": "Central item type",
      "type": "integer",
      "minimum": 0,
      "maximum": 255
    },
    "itemBarcode": {
      "description": "Item barcode",
      "type": "string"
    },
    "title": {
      "description": "Bibliographic title of the requested item. Informational only; not used in item-shipped processing logic.",
      "type": "string",
      "maxLength": 256
    },
    "author": {
      "description": "Author",
      "type": "string",
      "maxLength": 256
    },
    "callNumber": {
      "description": "Call number",
      "type": "string",
      "maxLength": 256
    },
    "itemLocation": {
      "description": "Item location",
      "type": "string"
    },
    "needBefore": {
      "description": "Need before time",
      "type": "integer"
    }
  },
  "additionalProperties": false,
  "required": [
    "pickupLocation",
    "centralItemType"
  ],
  "$defs": {
    "baseCircRequestDTO": {
      "description": "INN-Reach Circulation Common Put Request Data",
      "type": "object",
      "properties": {
        "transactionTime": {
          "description": "Transaction time",
          "type": "integer"
        },
        "patronId": {
          "description": "Base32-encoded FOLIO user UUID (lowercase, no padding). The caller obtains this value from the patron verification response. Decoded server-side to resolve the FOLIO patron.",
          "type": "string",
          "pattern": "[a-z,0-9]{1,32}"
        },
        "patronAgencyCode": {
          "description": "Patron agency code",
          "type": "string",
          "pattern": "[a-z,0-9]{5}"
        },
        "itemAgencyCode": {
          "description": "Item agency code",
          "type": "string",
          "pattern": "[a-z,0-9]{5}"
        },
        "itemId": {
          "description": "FOLIO inventory item HRID (Human-Readable ID). Used to look up the item in FOLIO inventory.",
          "type": "string",
          "pattern": "[a-z,0-9]{1,32}"
        }
      },
      "additionalProperties": false,
      "required": [
        "transactionTime",
        "patronId",
        "patronAgencyCode",
        "itemAgencyCode",
        "itemId"
      ]
    }
  }
}