{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crunchtime-information-systems/json-schema/crunchtime-information-systems-pbi-attachment-batch-response-dto-schema.json",
  "title": "PbiAttachmentBatchResponseDto",
  "description": "PbiAttachmentBatchResponseDto description",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crunchtime-information-systems-pbi-service-api-openapi.yml#/components/schemas/PbiAttachmentBatchResponseDto",
  "type": "object",
  "properties": {
    "totalPages": {
      "type": "integer",
      "format": "int32"
    },
    "hasNext": {
      "type": "boolean"
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PbiAttachmentDto"
      }
    }
  },
  "$defs": {
    "PbiAttachmentDto": {
      "type": "object",
      "properties": {
        "locationCode": {
          "type": "string",
          "description": "Location Code of the attachment file."
        },
        "fileName": {
          "type": "string",
          "description": "File name associated with the attachment."
        },
        "fileDescription": {
          "type": "string",
          "description": "File description associated with the attachment."
        },
        "fileSize": {
          "type": "integer",
          "format": "int64",
          "description": "File Size of the attachment file (in KB)."
        },
        "fileUrl": {
          "type": "string",
          "description": "Downloadable file url starts with https://download.net-chef.com/. This url expires 5 minutes after it is generated; call the endpoint again to generate a new link if the file still needs to be downloaded. Only one of fileContent or fileUrl will be populated in the response."
        },
        "fileContent": {
          "type": "string",
          "format": "byte",
          "description": "Base64 encoded data representing binary byte file. Only one of fileContent or fileUrl will be populated in the response."
        },
        "vendorInvoiceNumber": {
          "type": "string",
          "description": "Vendor Invoice/Reference Number."
        },
        "vendorCode": {
          "type": "string",
          "description": "Vendor or customer code associated with the attachment."
        },
        "locationExportCode": {
          "type": "string",
          "description": "Location export code associated with the attachment."
        },
        "vendorExportCode": {
          "type": "string",
          "description": "Vendor export code associated with the attachment."
        },
        "uploadDate": {
          "type": "string",
          "description": "Date the attachment file was uploaded."
        }
      },
      "title": "PbiAttachmentDto",
      "description": "PbiAttachmentDto description"
    }
  }
}