{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blackbaud/json-schema/blackbaud-api-payment-schema.json",
  "title": "ApiPayment",
  "description": "A SKY API specific version of the DCS Payment entity.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-payments-api-openapi.yml#/components/schemas/ApiPayment",
  "type": "object",
  "properties": {
    "amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "The Payment's amount.",
      "format": "double"
    },
    "date_paid": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date the Payment was set to Paid.",
      "format": "date-time"
    },
    "id": {
      "type": "integer",
      "description": "The Payment's ID.",
      "format": "int32"
    },
    "schedule_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date the Payment is scheduled.",
      "format": "date-time"
    },
    "status_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date the Payment's status was last changed.",
      "format": "date-time"
    },
    "request": {
      "$ref": "#/$defs/RequestReference"
    },
    "tax_value_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "The in-kind tax value.",
      "format": "double"
    },
    "book_value_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "The in-kind book value.",
      "format": "double"
    },
    "in_kind_description": {
      "type": [
        "string",
        "null"
      ],
      "description": "The in-kind description."
    },
    "deductible_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "The quid pro quo deductible amount.",
      "format": "double"
    },
    "quid_pro_quo_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "The quid pro quo amount",
      "format": "double",
      "x-bb-suppressions": [
        "parameter_property_name"
      ]
    },
    "quid_pro_quo_description": {
      "type": [
        "string",
        "null"
      ],
      "description": "The quid pro quo description",
      "x-bb-suppressions": [
        "parameter_property_name"
      ]
    },
    "payment_number": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The Payment number related to the Request.",
      "format": "int32"
    },
    "contact": {
      "$ref": "#/$defs/ContactReference"
    },
    "organization": {
      "$ref": "#/$defs/OrganizationReference"
    },
    "check_no": {
      "type": [
        "string",
        "null"
      ],
      "description": "The check number."
    },
    "notes": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Payment notes."
    },
    "check_cleared_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The check cleared date.",
      "format": "date-time"
    },
    "invoice_no": {
      "type": [
        "string",
        "null"
      ],
      "description": "The AP invoice number."
    },
    "subdivision": {
      "type": [
        "string",
        "null"
      ],
      "description": "The subdivision."
    },
    "void_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Void date.",
      "format": "date-time"
    },
    "void_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The ID of the associated Void Payment",
      "format": "int32"
    },
    "reissue_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The ID of the associated reissue Payment",
      "format": "int32"
    },
    "original_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The Payment's original ID.",
      "format": "int32"
    },
    "alert_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "The current alert text."
    },
    "classifications": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "$ref": "#/$defs/IdCodeDescription"
      },
      "description": "A dictionary of classifications."
    },
    "create_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Payment's create date.",
      "format": "date-time"
    },
    "change_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Payment's change date.",
      "format": "date-time"
    },
    "custom_fields": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {},
      "description": "The Entity's custom field data."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ContactReference": {
      "type": "object",
      "properties": {
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "The contact's email address."
        },
        "contact_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The related contact's ID."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The contact's full name."
        }
      },
      "additionalProperties": false,
      "description": "Represents related Contact information."
    },
    "IdCodeDescription": {
      "type": "object",
      "properties": {
        "classification_id": {
          "type": "integer",
          "description": "Classification's ID.",
          "format": "int32"
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "Classification's code."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Classification's description."
        }
      },
      "additionalProperties": false,
      "description": "Represents a Classification value."
    },
    "OrganizationReference": {
      "type": "object",
      "properties": {
        "organization_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The related Organization's ID."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Related Organization's name."
        }
      },
      "additionalProperties": false,
      "description": "Represents related Contact information."
    },
    "RequestReference": {
      "type": "object",
      "properties": {
        "request_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The related request's ID."
        },
        "project_title": {
          "type": [
            "string",
            "null"
          ],
          "description": "The request's project title."
        },
        "disposition": {
          "type": [
            "string",
            "null"
          ],
          "description": "The request's disposition."
        }
      },
      "additionalProperties": false,
      "description": "Represents related Request information"
    }
  }
}