{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blackbaud/main/json-schema/blackbaud-journal-entry-batch-distribution-data-paged-result-schema.json",
  "title": "JournalEntryBatchDistributionDataPagedResult",
  "description": "A single page of records along with the token used to request the following page.",
  "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/JournalEntryBatchDistributionDataPagedResult",
  "type": "object",
  "properties": {
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/JournalEntryBatchDistributionData"
      },
      "description": "The records in this page"
    },
    "continuation_token": {
      "type": [
        "string",
        "null"
      ],
      "description": "The token used to request the following page, or null when this is the last page. Pass it back\nunmodified. A page can contain fewer records than requested, or none at all, and still return a\ntoken, so use the presence of this token rather than the number of records to decide whether to\ncontinue. A token is intended for continuing a traversal that is already in progress; it should\nnot be stored and reused later."
    },
    "has_more": {
      "type": "boolean",
      "description": "Whether a following page is available. Equivalent to checking whether the continuation_token field is present.",
      "readOnly": true
    }
  },
  "additionalProperties": false,
  "$defs": {
    "JournalEntryBatchDistributionData": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The unique identifier of the distribution",
          "format": "int32"
        },
        "line_number": {
          "type": "integer",
          "description": "The line number of the distribution within the batch",
          "format": "int32"
        },
        "account_number": {
          "type": [
            "string",
            "null"
          ],
          "description": "The account number the distribution was posted against"
        },
        "account_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the account the distribution was posted against"
        },
        "project_description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description of the project associated with the distribution"
        },
        "debit_amount": {
          "type": "number",
          "description": "The debit amount of the distribution",
          "format": "double"
        },
        "credit_amount": {
          "type": "number",
          "description": "The credit amount of the distribution",
          "format": "double"
        },
        "post_date": {
          "type": "string",
          "description": "The date the distribution was posted",
          "format": "date-time"
        },
        "journal_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the journal the distribution was posted to"
        },
        "journal_reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "The journal reference of the distribution"
        },
        "transaction_id": {
          "type": "integer",
          "description": "The identifier of the transaction that produced the distribution",
          "format": "int32"
        },
        "distribution_id": {
          "type": "integer",
          "description": "The unique identifier of the distribution",
          "format": "int32"
        }
      },
      "additionalProperties": false,
      "description": "Represents a single general ledger distribution line belonging to a post to general ledger batch"
    }
  }
}