{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-delete-status-response-v2-dto-schema.json",
  "title": "DeleteStatusResponseV2Dto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fis-datacontrollerv2-api-openapi.yml#/components/schemas/DeleteStatusResponseV2Dto",
  "type": "object",
  "properties": {
    "meta": {
      "$ref": "#/$defs/DeleteStatusMetaDataV2"
    },
    "data": {
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/DeleteStatusDataV2"
      }
    }
  },
  "required": [
    "meta",
    "data"
  ],
  "$defs": {
    "DeleteStatusDataV2": {
      "type": "object",
      "properties": {
        "serviceName": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "quickbooks",
            "xero",
            "freshbooks",
            "quickbooksDesktop",
            "sageIntacct",
            "sageBusinessCloud",
            "oracleNetsuite",
            "dynamicsBusinessCentral",
            "dynamics365Finance",
            "wave",
            "zohoBooks",
            "myob"
          ]
        },
        "dataType": {
          "type": "string",
          "readOnly": true
        },
        "requestedOn": {
          "format": "date-time",
          "type": "string",
          "readOnly": true
        },
        "completedOn": {
          "format": "date-time",
          "type": "string",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "success",
            "failed",
            "pending"
          ]
        },
        "responseCode": {
          "type": "number",
          "readOnly": true,
          "format": "integer"
        },
        "validation": {
          "$ref": "#/$defs/Validation"
        },
        "deleteCommunicationId": {
          "type": "string"
        }
      },
      "required": [
        "serviceName",
        "dataType",
        "requestedOn",
        "completedOn",
        "status",
        "responseCode"
      ]
    },
    "DeleteStatusMetaDataV2": {
      "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"
          ]
        },
        "count": {
          "type": "number",
          "readOnly": true,
          "format": "integer"
        }
      },
      "required": [
        "connectionUuid",
        "businessName",
        "serviceName",
        "count"
      ]
    },
    "Error": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "Validation": {
      "type": "object",
      "properties": {
        "errors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Error"
          }
        }
      }
    }
  }
}