{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monite/json-schema/monite-payments-batch-payment-response-schema.json",
  "title": "PaymentsBatchPaymentResponse",
  "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/PaymentsBatchPaymentResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "error": {
      "type": "object"
    },
    "payer_bank_account_id": {
      "type": "string",
      "format": "uuid"
    },
    "payment_intents": {
      "items": {
        "$ref": "#/$defs/SinglePaymentIntentResponse"
      },
      "type": "array",
      "minItems": 1
    },
    "payment_method": {
      "type": "string",
      "enum": [
        "us_ach"
      ]
    },
    "status": {
      "$ref": "#/$defs/PaymentsBatchPaymentStatus"
    },
    "total_amount": {
      "type": "integer"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id",
    "created_at",
    "payer_bank_account_id",
    "payment_intents",
    "payment_method",
    "status"
  ],
  "$defs": {
    "CurrencyEnum": {
      "type": "string",
      "enum": [
        "AED",
        "AFN",
        "ALL",
        "AMD",
        "ANG",
        "AOA",
        "ARS",
        "AUD",
        "AWG",
        "AZN",
        "BAM",
        "BBD",
        "BDT",
        "BGN",
        "BHD",
        "BIF",
        "BMD",
        "BND",
        "BOB",
        "BRL",
        "BSD",
        "BTN",
        "BWP",
        "BYN",
        "BZD",
        "CAD",
        "CDF",
        "CHF",
        "CLP",
        "CNY",
        "COP",
        "CRC",
        "CVE",
        "CZK",
        "DJF",
        "DKK",
        "DOP",
        "DZD",
        "EGP",
        "ETB",
        "EUR",
        "FJD",
        "FKP",
        "GBP",
        "GEL",
        "GHS",
        "GIP",
        "GMD",
        "GNF",
        "GTQ",
        "GYD",
        "HKD",
        "HNL",
        "HTG",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "IQD",
        "ISK",
        "JMD",
        "JOD",
        "JPY",
        "KES",
        "KGS",
        "KHR",
        "KMF",
        "KRW",
        "KWD",
        "KYD",
        "KZT",
        "LAK",
        "LBP",
        "LKR",
        "LRD",
        "LSL",
        "LYD",
        "MAD",
        "MDL",
        "MGA",
        "MKD",
        "MMK",
        "MNT",
        "MOP",
        "MUR",
        "MVR",
        "MWK",
        "MXN",
        "MYR",
        "MZN",
        "NAD",
        "NGN",
        "NIO",
        "NOK",
        "NPR",
        "NZD",
        "OMR",
        "PAB",
        "PEN",
        "PGK",
        "PHP",
        "PKR",
        "PLN",
        "PYG",
        "QAR",
        "RON",
        "RSD",
        "RUB",
        "RWF",
        "SAR",
        "SBD",
        "SCR",
        "SEK",
        "SGD",
        "SHP",
        "SLE",
        "SOS",
        "SRD",
        "SSP",
        "SVC",
        "SZL",
        "THB",
        "TJS",
        "TMT",
        "TND",
        "TOP",
        "TRY",
        "TTD",
        "TWD",
        "TZS",
        "UAH",
        "UGX",
        "USD",
        "UYU",
        "UZS",
        "VND",
        "VUV",
        "WST",
        "XAF",
        "XCD",
        "XOF",
        "XPF",
        "YER",
        "ZAR",
        "ZMW"
      ]
    },
    "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"
      ]
    },
    "PaymentsBatchPaymentStatus": {
      "type": "string",
      "enum": [
        "created",
        "processing",
        "partially_successful",
        "succeeded",
        "failed",
        "expired"
      ]
    },
    "SinglePaymentIntentResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "amount": {
          "type": "integer"
        },
        "currency": {
          "$ref": "#/$defs/CurrencyEnum"
        },
        "error": {
          "type": "object"
        },
        "object": {
          "$ref": "#/$defs/PaymentObjectPayable"
        },
        "payment_reference": {
          "type": "string"
        },
        "recipient": {
          "$ref": "#/$defs/PaymentIntentsRecipient"
        },
        "status": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "created_at",
        "amount",
        "currency",
        "object",
        "payment_reference",
        "recipient",
        "status"
      ]
    }
  }
}