{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blackbaud/main/json-schema/blackbaud-create-charge-import-batch-message-schema.json",
  "title": "CreateChargeImportBatchMessage",
  "description": "A request containing all the information needed to create a batch of charges",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-billing-management-api-openapi.yml#/components/schemas/CreateChargeImportBatchMessage",
  "required": [
    "batch_id",
    "charges"
  ],
  "type": "object",
  "properties": {
    "batch_id": {
      "maxLength": 100,
      "minLength": 0,
      "type": "string",
      "description": "Your unique identifier for the batch. Character limit: 100"
    },
    "charges": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/CreateChargeDataMessage"
      },
      "description": "The charges to be created in the batch. Batch size limit: 100"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CreateChargeDataMessage": {
      "required": [
        "amount",
        "batch_transaction_id",
        "charge_date",
        "charge_due_date",
        "fee_type_id",
        "student_user_id"
      ],
      "type": "object",
      "properties": {
        "fee_type_id": {
          "type": "integer",
          "description": "The fee type ID of the charge to be created",
          "format": "int32"
        },
        "amount": {
          "type": "number",
          "description": "The charge amount",
          "format": "double"
        },
        "student_user_id": {
          "type": "integer",
          "description": "The student's user ID to create the charge for",
          "format": "int32"
        },
        "charge_date": {
          "type": "string",
          "description": "The date of the charge",
          "format": "date"
        },
        "charge_due_date": {
          "type": "string",
          "description": "The due date of the charge",
          "format": "date"
        },
        "charge_comments": {
          "maxLength": 1000,
          "minLength": 0,
          "type": [
            "string",
            "null"
          ],
          "description": "The comments for the charge."
        },
        "batch_transaction_id": {
          "maxLength": 100,
          "minLength": 0,
          "type": "string",
          "description": "Your unique identifier for the charge. Character limit: 100"
        }
      },
      "additionalProperties": false,
      "description": "A message containing all the information needed to create a charge"
    }
  }
}