{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blackbaud/json-schema/blackbaud-edit-payment-schema.json",
  "title": "EditPayment",
  "description": "A request for paginated payments",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-payments-api-openapi.yml#/components/schemas/EditPayment",
  "type": "object",
  "properties": {
    "scheduled_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The datetime that the payment is scheduled to be sent to processing.",
      "format": "date-time"
    },
    "budget_id": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": [
        "integer",
        "null"
      ],
      "description": "The ID of the budget that the payment amount is coming from. Note that a relationship must exist between the budget and funding source if provided.",
      "format": "int32"
    },
    "funding_source_id": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": [
        "integer",
        "null"
      ],
      "description": "The ID of the funding source that the payment amount is coming from. Note that a relationship must exist between the funding source and budget if provided.",
      "format": "int32"
    },
    "total_amount": {
      "minimum": 0,
      "type": [
        "number",
        "null"
      ],
      "description": "The total monetary amount of the payment (for cash payments).",
      "format": "double"
    },
    "total_units": {
      "maximum": 2147483647,
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ],
      "description": "The total amount of individual items in the payment (only for in-kind payments).",
      "format": "int32"
    },
    "notes": {
      "maxLength": 1000,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ],
      "description": "The notes including any additional information around the payment."
    },
    "payment_designation": {
      "maxLength": 1000,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ],
      "description": "The designation describing what the payment is for."
    },
    "care_of": {
      "maxLength": 300,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ],
      "description": "Indicates who the payment is in care of."
    },
    "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"
    },
    "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": {
    "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>"
    }
  }
}