Skip to content

MngAddKycDocument

Attaches a file registered in StorageManager to a KYC profile.

The request accepts file_id; file metadata is read from storage. Do not send trusted file_name, content_type, file_size or checksum from the client.

Request

{
  "command": "MngAddKycDocument",
  "data": {
    "customer_id": 100,
    "kyc_id": 1,
    "brand": "default",
    "step_id": 10,
    "type": "passport",
    "file_id": "2d8b3e5c-5b02-43f4-8b31-1a1cc33c7d12"
  }
}

Response

{
  "document": {
    "id": 1,
    "customer_id": 100,
    "kyc_id": 1,
    "step_id": 10,
    "brand": "default",
    "type": "passport",
    "status": 0,
    "file_id": "2d8b3e5c-5b02-43f4-8b31-1a1cc33c7d12",
    "file_name": "passport.pdf",
    "content_type": "application/pdf",
    "file_size": 245000,
    "checksum": "..."
  }
}