{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monite/json-schema/monite-payments-batch-payment-request-schema.json",
  "title": "PaymentsBatchPaymentRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monite-batch-payments-api-openapi.yml#/components/schemas/PaymentsBatchPaymentRequest",
  "properties": {
    "payer_bank_account_id": {
      "type": "string",
      "format": "uuid"
    },
    "payment_intents": {
      "items": {
        "$ref": "#/$defs/SinglePaymentIntent"
      },
      "type": "array",
      "minItems": 1
    },
    "payment_method": {
      "type": "string",
      "enum": [
        "us_ach"
      ]
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "payer_bank_account_id",
    "payment_intents",
    "payment_method"
  ],
  "$defs": {
    "PaymentIntentPayoutMethod": {
      "type": "string",
      "enum": [
        "bank_account",
        "paper_check",
        "us_ach",
        "wire"
      ]
    },
    "PaymentIntentsRecipient": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "bank_account_id": {
          "type": "string",
          "format": "uuid"
        },
        "payout_method": {
          "allOf": [
            {
              "$ref": "#/$defs/PaymentIntentPayoutMethod"
            }
          ],
          "default": "bank_account"
        },
        "type": {
          "type": "string",
          "enum": [
            "counterpart"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type"
      ]
    },
    "PaymentObjectPayable": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string",
          "enum": [
            "payable"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type"
      ]
    },
    "SinglePaymentIntent": {
      "properties": {
        "object": {
          "$ref": "#/$defs/PaymentObjectPayable"
        },
        "payment_reference": {
          "type": "string",
          "description": "Must be provided if payable's document id is missing."
        },
        "recipient": {
          "$ref": "#/$defs/PaymentIntentsRecipient"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "object",
        "recipient"
      ]
    }
  }
}