{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-post-bill-payment-request-response-v2-dto-schema.json",
  "title": "PostBillPaymentRequestResponseV2Dto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fis-billcontrollerv2-api-openapi.yml#/components/schemas/PostBillPaymentRequestResponseV2Dto",
  "type": "object",
  "properties": {
    "connectionUuid": {
      "type": "string",
      "readOnly": true
    },
    "businessName": {
      "type": "string",
      "readOnly": true
    },
    "serviceName": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "freshbooks",
        "quickbooks",
        "quickbooksDesktop",
        "xero",
        "oracleNetsuite",
        "sageBusinessCloud",
        "sageIntacct",
        "dynamicsBusinessCentral",
        "dynamics365Finance",
        "wave",
        "myob",
        "zohoBooks",
        "byod"
      ]
    },
    "pushCommunicationId": {
      "type": "string",
      "readOnly": true
    },
    "requestedOn": {
      "type": "string",
      "readOnly": true,
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "success",
        "failed",
        "pending"
      ]
    },
    "data": {
      "readOnly": true,
      "allOf": [
        {
          "$ref": "#/$defs/PostBillPaymentRequestV2"
        }
      ]
    }
  },
  "required": [
    "connectionUuid",
    "businessName",
    "serviceName",
    "pushCommunicationId",
    "requestedOn",
    "status",
    "data"
  ],
  "$defs": {
    "BankAccountRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "BillPaymentRequestLinks": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "format": "float"
        },
        "id": {
          "type": "string"
        }
      },
      "required": [
        "amount",
        "id"
      ]
    },
    "PaymentRequestPaymentMethodRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "unknown",
            "cash",
            "printedCheck",
            "manualCheck",
            "creditCard",
            "debitCard",
            "bankTransfer",
            "giftCard",
            "automatedClearingHouse",
            "other"
          ]
        }
      }
    },
    "PostBillPaymentRequestV2": {
      "type": "object",
      "properties": {
        "vendorRef": {
          "$ref": "#/$defs/VendorRefDto"
        },
        "paymentNumber": {
          "type": "string"
        },
        "paymentCode": {
          "type": "string"
        },
        "paymentDate": {
          "type": "string",
          "format": "date"
        },
        "bankAccountRef": {
          "$ref": "#/$defs/BankAccountRefDto"
        },
        "currency": {
          "type": "string"
        },
        "totalAmount": {
          "type": "number",
          "format": "decimal"
        },
        "paymentMethodRef": {
          "$ref": "#/$defs/PaymentRequestPaymentMethodRefDto"
        },
        "memo": {
          "type": "string"
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BillPaymentRequestLinks"
          }
        }
      },
      "required": [
        "bankAccountRef",
        "links"
      ]
    },
    "VendorRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    }
  }
}