DocumentWithUpload

Schema #/components/schemas/DocumentWithUpload of contract 1.0.0-draft.17.

  • id Uuidrequiredread-only

    Fields of id
  • kind stringrequired

    One of: "kyb_company", "kyb_person_id", "kyb_proof_of_address", "kyb_ownership", "kyb_other", "attachment", "bulk_payments", "statement", "confirmation", "export", "other", "reconciliation_statement", "crypto-statement"

  • fileName stringrequired

    max length 255

  • contentType stringrequired

    One of: "application/pdf", "image/png", "image/jpeg", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"

  • size integerrequired

    Bytes.

    min 1 · max 20971520

  • sha256 stringread-only

    pattern ^[a-f0-9]{64}$

  • scanStatus DocumentScanStatusrequiredread-only

    Fields of scanStatus
  • status DocumentStatusrequiredread-only

    Fields of status
  • uploadedBy string | null (uuid)read-only

    Uploading user; null for platform-generated documents.

  • createdAt Timestamprequiredread-only

    Fields of createdAt
  • description string | nullrequiredread-only

    Staff note on the document (at most 200 characters); null when none.

    max length 200

  • visibility stringrequiredread-only

    customer: listed and downloadable by the customer. internal: operator staff only (customers get 404). Documents uploaded by staff on a customer default to internal.

    One of: "customer", "internal"

  • upload UploadInstructionsrequired