Skip to content

Document ​

Type: schema

TypeScript Definition ​

typescript
Document: {{
            id: $Read<string>;
            document_number: string;
            /** @description Document type slug from the store configuration. Populated for newly created documents in every store; legacy documents may have a null value. */
            document_type_slug: $Read<string | null>;
            document_type_id: $Read<string | null>;
            /** @description ULID of the user who created the document. */
            created_by_user_id: $Read<string>;
            /** @description ULID of the user who last modified the document. */
            modified_by_user_id: $Read<string | null>;
            note: string | null;
            /**
             * Format: binary
             * @description file attachment will be required or optional as per store setting.
             */
            file?: $Write<string>;
            /** @enum {unknown} */
            status: $Read<"submitted" | "approved" | "rejected" | "expired">;
            title: $Read<string>;
            file_url: $Read<string | null>;
            /** @enum {unknown} */
            verification_type: $Read<"auto" | "manual">;
            is_verified: $Read<boolean>;
            /** Format: date-time */
            verified_at: $Read<string | null>;
            created_by: $Read<string | null>;
            /** Format: date-time */
            created_at: $Read<string>;
            modified_by: $Read<string | null>;
            /** Format: date-time */
            modified_at: $Read<string>;
            modified_reason: $Read<string | null>;
            /** Format: date */
            expires_at: $Read<string | null>;
        } & {
            [key: string]: unknown;
        };
        /** FixedAmountDiscountRule */
}

OpenAPI Schema ​

json
{
  "title": "Document",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/Document",
    "description": "API reference for the Document schema"
  },
  "required": [
    "id",
    "document_number",
    "document_type_slug",
    "document_type_id",
    "created_by_user_id",
    "modified_by_user_id",
    "note",
    "status",
    "title",
    "file_url",
    "verification_type",
    "is_verified",
    "verified_at",
    "created_by",
    "created_at",
    "modified_by",
    "modified_at",
    "modified_reason",
    "expires_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true
    },
    "document_number": {
      "type": "string"
    },
    "document_type_slug": {
      "description": "Document type slug from the store configuration. Populated for newly created documents in every store; legacy documents may have a null value.",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "document_type_id": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "created_by_user_id": {
      "description": "ULID of the user who created the document.",
      "type": "string",
      "readOnly": true
    },
    "modified_by_user_id": {
      "description": "ULID of the user who last modified the document.",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "note": {
      "type": [
        "string",
        "null"
      ]
    },
    "file": {
      "description": "file attachment will be required or optional as per store setting.",
      "type": "string",
      "format": "binary",
      "writeOnly": true
    },
    "status": {
      "enum": [
        "submitted",
        "approved",
        "rejected",
        "expired"
      ],
      "readOnly": true
    },
    "title": {
      "type": "string",
      "readOnly": true
    },
    "file_url": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "verification_type": {
      "enum": [
        "auto",
        "manual"
      ],
      "readOnly": true
    },
    "is_verified": {
      "type": "boolean",
      "readOnly": true
    },
    "verified_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true
    },
    "created_by": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modified_by": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modified_reason": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "readOnly": true
    }
  },
  "additionalProperties": true,
  "x-tags": [
    "KYC"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: