{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wordline/main/json-schema/wordline-create-document-request-schema.json",
  "title": "CreateDocumentRequest",
  "x-generated": "2026-10-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wordline-dispute-api-openapi.yml#/components/schemas/CreateDocumentRequest",
  "type": "object",
  "required": [
    "data",
    "type",
    "fileName"
  ],
  "properties": {
    "data": {
      "type": "string",
      "description": "The issuer must provide the data of the document in Base64 encoding format that has to be attached to the Dispute Folder.\nThe maximum size per document is:\n- 10 Mo for PDF, TIFF or JPEG format (for Visa or Mastercard)\n- 15 Mo for ZIP format (only for Mastercard)"
    },
    "type": {
      "type": "string",
      "description": "The issuer must provide the document type,  Possible values:\n- 'image/jpeg':  data of attached document in JPEG format\n- 'image/tiff':  data of attached document in TIFF format\n- 'application/pdf':  data of attached document in PDF format\n- 'application/zip': data of attached document in ZIP format for Mastercard only"
    },
    "label": {
      "type": "string",
      "description": "Contains optional label to be displayed on the event generated in the Dispute Folder"
    },
    "fileName": {
      "type": "string",
      "description": "Contains Mandatory File Name of the document to be displayed on the event generated in the Dispute Folder\nOnly for a Mastercard operation, the file name must have a maximum lenght of 16 with only alpha and numeric values (no constraint for a VISA operation)"
    },
    "documentTypeId": {
      "type": "string",
      "description": "Contains optional document type Id"
    }
  }
}