---
updatedAt: 2025-05-26T08:19:18.000Z
agentTools:
  projectIndex: https://platform.toq.io/llms.txt
---

# Update company kyb document status

This endpoint allows to update company kyb document status

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Compliance endpoints",
    "description": "Endpoints to manage the compliance status and user status",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.sandbox.toq.io/iam/api",
      "description": "Simulation environment"
    },
    {
      "url": "https://api.toq.io/iam/api",
      "description": "Production environment"
    }
  ],
  "paths": {
    "/iam/api/customers/{customerId}/merchant/{clientId}/kybDocuments/status": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update company kyb document status",
        "description": "This endpoint allows to update company kyb document status",
        "operationId": "updateCompanyKybDocumentsStatus",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "Toqios customer ID",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "path",
            "description": "Toqios client ID",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "updateCompanyKybDocumentsDTO",
            "in": "query",
            "description": "List of documents to update",
            "required": true,
            "explode": false,
            "schema": {
              "$ref": "#/components/schemas/UpdateCompanyKyxDocumentsDTO"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "deprecated": false,
        "security": [
          {
            "clientCredentials": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "StatusDocumentDTO": {
        "title": "StatusDocumentDTO",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "id of the document"
          },
          "externalId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "IN_PROGRESS",
              "UNDER_REVIEW",
              "COMPLETED",
              "DECLINED"
            ]
          },
          "errorMessage": {
            "type": "string"
          }
        }
      },
      "UpdateCompanyKyxDocumentsDTO": {
        "title": "UpdateCompanyKyxDocumentsDTO",
        "type": "object",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusDocumentDTO"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "clientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://api.toq.io/iam/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```