{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/q2/json-schema/q2-customer-document-object200-response-schema.json",
  "title": "CustomerDocumentObject200Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/q2-customer-document-api-openapi.yml#/components/schemas/CustomerDocumentObject200Response",
  "allOf": [
    {
      "$ref": "#/$defs/0"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "allOf": [
            {
              "type": "object",
              "properties": {
                "documentId": {
                  "$ref": "#/$defs/HelixId"
                },
                "downloadUrl": {
                  "type": "string"
                }
              }
            },
            {
              "$ref": "#/$defs/CustomerDocumentUploadRequest"
            }
          ]
        }
      }
    }
  ],
  "$defs": {
    "CustomerDocumentUploadRequest": {
      "type": "object",
      "required": [
        "customerId",
        "documentType",
        "reasonType",
        "documentName",
        "documentContent"
      ],
      "properties": {
        "customerId": {
          "$ref": "#/$defs/HelixId"
        },
        "customField1": {
          "type": "string",
          "maxLength": 50
        },
        "customField2": {
          "type": "string",
          "maxLength": 50
        },
        "customField3": {
          "type": "string",
          "maxLength": 50
        },
        "customField4": {
          "type": "string",
          "maxLength": 50
        },
        "customField5": {
          "type": "string",
          "maxLength": 50
        },
        "documentContent": {
          "type": "string",
          "format": "byte",
          "writeOnly": true
        },
        "documentName": {
          "type": "string",
          "maxLength": 50
        },
        "documentType": {
          "type": "string",
          "enum": [
            "DriversLicense",
            "UtilityBill",
            "BankStatement",
            "NameChangeAffidavit",
            "WrittenStatementOfUnauthorizedDebit",
            "Unspecified",
            "VerificationSummary",
            "DisputeDocumentation",
            "HoldNotice",
            "DriversLicenseBack",
            "PassportFront",
            "PassportBack",
            "UnspecifiedIdCardFront",
            "UnspecifiedIdCardBack",
            "SelfPortrait",
            "DBAStatementOfFiling",
            "FictitiousBusinessName",
            "BusinessLicenseShowingCurrent",
            "AttestationDocument",
            "CertificateOfPartnership",
            "PartnershipAgreement",
            "ProofOfAddress",
            "ArticlesOfOrganization",
            "CertificateOfFormation",
            "CertificateOfOrganization",
            "SecretaryOfStateRegistration",
            "ProofOfGoodStanding",
            "CorporateAuthorization",
            "EINLetter",
            "ArticlesOfIncorporation",
            "Charter",
            "TrustDocuments",
            "CurrentSecretaryOfStateRegistration",
            "CourtDocuments",
            "TrustCertificate",
            "BirthCertificate",
            "SocialSecurityCardFront",
            "SocialSecurityCardBack",
            "SchoolIDFront",
            "SchoolIDBack",
            "DeathCertificate",
            "PowerOfAttorney",
            "ProofOfAuthorization"
          ]
        },
        "reasonType": {
          "type": "string",
          "enum": [
            "NameChange",
            "AddressChange",
            "RequestForNewExternalAccount",
            "Unspecified",
            "ManualReview",
            "ReturnOnTransaction",
            "VerificationSummary",
            "DisputeDocumentation",
            "HoldPlaced",
            "AutomatedReview",
            "Remediation Document"
          ]
        },
        "tag": {
          "$ref": "#/$defs/TagProperty"
        }
      }
    },
    "HelixId": {
      "type": "integer",
      "format": "int32",
      "minimum": 1
    },
    "TagProperty": {
      "type": "string",
      "maxLength": 50
    }
  }
}