Skip to content

list-kyc-document ​

Method: GET
Path: /store/kyc-document

Tags: KYC documents

Summary ​

List KYC documents

Description ​

Retrieves the list of KYC document types required for the store. Returns an array of Kyc Document objects defining document types, mandatory flags, and verification settings.

Storefront SDK Usage ​

SDK Method: sdk.store.listKycDocument()

Example:

typescript
const { data, error } = await sdk.store.listKycDocument({});

TypeScript Definition ​

typescript
"list-kyc-document": {
        parameters: {
            query?: {
                /** @description Search document titles, verification types and document types. */
                search?: string;
            };
            header?: never;
            path?: never;
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description OK */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        message?: string;
                        success?: boolean;
                        content?: {
                            kyc_documents?: components["schemas"]["KycDocumentConfig"][];
                            /** @default false */
                            is_kyc_enabled: $Read<boolean>;
                            is_customer_group_enabled?: boolean;
                        };
                    };
                };
            };
            401: components["responses"]["Unauthorized"];
            403: components["responses"]["Forbidden"];
            500: components["responses"]["InternalServerError"];
        };
    };

Component References ​

ReferenceResolves To
components["schemas"]["KycDocumentConfig"]KycDocumentConfig
components["responses"]["Unauthorized"]Unauthorized
components["responses"]["Forbidden"]Forbidden
components["responses"]["InternalServerError"]InternalServerError

Parameters ​

  • search (query): Search document titles, verification types and document types.

Responses ​

200 ​

OK

401 ​

Authentication failed. Codes include token-required, token-expired and token_not_valid for an invalid or expired token.

403 ​

Access denied. token-required requires an authenticated session; permission-denied means the caller cannot access this resource. On POS, session-expired requires signing in again.

500 ​

The request failed because of an unexpected error.

OpenAPI Definition ​

json
{
  "tags": [
    "KYC documents"
  ],
  "operationId": "list-kyc-document",
  "summary": "List KYC documents",
  "description": "Retrieves the list of KYC document types required for the store. Returns an array of `Kyc Document` objects defining document types, mandatory flags, and verification settings.",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/operations/list-kyc-document",
    "description": "API reference for the list-kyc-document operation"
  },
  "parameters": [
    {
      "name": "search",
      "in": "query",
      "description": "Search document titles, verification types and document types.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "success": {
                "type": "boolean"
              },
              "content": {
                "properties": {
                  "kyc_documents": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/KycDocumentConfig"
                    }
                  },
                  "is_kyc_enabled": {
                    "type": "boolean",
                    "default": false,
                    "readOnly": true
                  },
                  "is_customer_group_enabled": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          }
        }
      }
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "403": {
      "$ref": "#/components/responses/Forbidden"
    },
    "500": {
      "$ref": "#/components/responses/InternalServerError"
    }
  },
  "security": [
    {
      "X-Api-Key": []
    },
    {
      "Authorization": []
    }
  ],
  "x-speakeasy-group": "store",
  "x-speakeasy-ignore": true,
  "x-speakeasy-name-override": "listKycDocuments"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: