{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blackbaud/json-schema/blackbaud-create-payment-schema.json",
  "title": "CreatePayment",
  "description": "Specifies the details of the payment being created.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-payments-api-openapi.yml#/components/schemas/CreatePayment",
  "required": [
    "application_id",
    "award_id",
    "budget_id",
    "funding_source_id",
    "funding_source_type",
    "scheduled_date"
  ],
  "type": "object",
  "properties": {
    "application_id": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": "integer",
      "description": "The identifier of the application.",
      "format": "int32"
    },
    "award_id": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": "integer",
      "description": "The identifier of the award associated with the payment.",
      "format": "int32"
    },
    "scheduled_date": {
      "type": "string",
      "description": "The date and time the payment is scheduled to be sent to processing. Time zone is UTC.",
      "format": "date-time"
    },
    "budget_id": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": "integer",
      "description": "The identifier of the budget from which to pull funds.",
      "format": "int32"
    },
    "funding_source_id": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": "integer",
      "description": "The identifier of the funding source for the budget.",
      "format": "int32"
    },
    "funding_source_type": {
      "$ref": "#/$defs/FundingSourceTypes"
    },
    "total_amount": {
      "minimum": 0,
      "type": [
        "number",
        "null"
      ],
      "description": "The total monetary value of the payment. Cash payments only.",
      "format": "double"
    },
    "total_units": {
      "maximum": 2147483647,
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ],
      "description": "The total number of units for in-kind items in the payment. In-kind payments only.",
      "format": "int32"
    },
    "notes": {
      "maxLength": 1000,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ],
      "description": "Additional information about the payment. Note is not visible to applicants. Character limit: 1000."
    },
    "payment_designation": {
      "maxLength": 1000,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ],
      "description": "The recipient or purpose of the payment. Designation is visible to applicants. Character limit: 1000."
    },
    "currency_requested": {
      "maxLength": 5,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ],
      "description": "The currency the applicant requested be used for the payment."
    },
    "total_amount_equivalent": {
      "minimum": 1,
      "type": [
        "number",
        "null"
      ],
      "description": "The total payment amount in requested currency.",
      "format": "double"
    },
    "in_kind_items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AddInKindItems"
      },
      "description": "The in-kind items included in the payment. In-kind payments only."
    },
    "care_of": {
      "maxLength": 300,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ],
      "description": "The name of the person, department, or other entity the payment is in care of."
    },
    "payment_status": {
      "$ref": "#/$defs/PaymentStatus"
    },
    "status_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date and time the payment status was last set. Time zone is UTC.",
      "format": "date-time"
    },
    "payment_number": {
      "maxLength": 50,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ],
      "description": "The identifier of the payment in the payment processing system."
    },
    "issued_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date and time the payment was issued. Time zone is UTC.",
      "format": "date-time"
    },
    "cleared_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date and time the payment was cleared. Time zone is UTC.",
      "format": "date-time"
    },
    "external_payment_id": {
      "maxLength": 50,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ],
      "description": "The identifier of the payment if imported from an external system."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AddInKindItems": {
      "required": [
        "count",
        "item_identification",
        "value"
      ],
      "type": "object",
      "properties": {
        "item_identification": {
          "maxLength": 50,
          "minLength": 0,
          "type": "string",
          "description": "The identification for the in-kind item. This may be a combination of text and numbers."
        },
        "count": {
          "maximum": 2147483647,
          "minimum": 0,
          "type": "integer",
          "description": "The number of in-kind items included in the payment.",
          "format": "int32"
        },
        "value": {
          "minimum": 0,
          "type": "number",
          "description": "The monetary value of a single in-kind item.",
          "format": "double"
        }
      },
      "additionalProperties": false,
      "description": "Specifies the details of in-kind items to create. These items are used when creating in-kind payments."
    },
    "FundingSourceTypes": {
      "enum": [
        "Cash",
        "InKind"
      ],
      "type": "string",
      "description": "The types of funding sources that may be used to fund awards and payments<p>Available values:</p><ul><li><i>Cash</i></li><li><i>InKind</i></li></ul>"
    },
    "PaymentStatus": {
      "enum": [
        "Pending",
        "Scheduled",
        "Processing",
        "Outstanding",
        "Cleared",
        "Voided",
        "Fulfilled",
        "ProcessingHold",
        "SentToPartner",
        "Invoiced"
      ],
      "type": "string",
      "description": "The status of a payment<p>Available values:</p><ul><li><i>Pending</i></li><li><i>Scheduled</i></li><li><i>Processing</i></li><li><i>Outstanding</i></li><li><i>Cleared</i></li><li><i>Voided</i></li><li><i>Fulfilled</i></li><li><i>ProcessingHold</i></li><li><i>SentToPartner</i></li><li><i>Invoiced</i></li></ul>"
    }
  }
}