Import KYC data for a user
Import KYC data for a user from a share token. Currently only supports importing using Sumsub Shared KYC. Returns the user id and onboarding status; read GET /users/{userId}/requirements to confirm the KYC requirement is satisfied. When Sumsub has not finished reviewing the shared applicant yet, the import is accepted with 202; the user is verified automatically if Sumsub approves the applicant, or placed in manual review if it does not. Poll GET /users/{userId}/requirements for the outcome.
Authorization
ApiKeyAuth BearerAuth API key for integrator authentication
In: header
JWT token for user authentication
In: header
Path Parameters
Header Parameters
API key for authentication
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
import { PaytrieAPI, configure } from '@paytrie/sdk'configure({ headers: { 'x-api-key': process.env.PAYTRIE_API_KEY! } })const { data } = await PaytrieAPI.importUserKyc("550e8400-e29b-41d4-a716-446655440000", {}){ "success": true, "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "accessibleBy": [ "jwt" ], "status": "initial" }}{ "success": true, "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "accessibleBy": [ "jwt" ], "status": "initial" }}{ "success": false, "errors": [ { "message": "User is already KYC verified" } ]}{ "success": false, "errors": [ { "field": "string", "message": "string", "code": "string" } ]}{ "success": false, "errors": [ { "field": "string", "message": "string", "code": "string" } ]}{ "success": false, "errors": [ { "message": "The share token is malformed or expired. Generate a new share token and retry." } ]}