All URIs are relative to https://api.onfido.com/v2
Method | HTTP request | Description |
---|---|---|
cancelReport | POST /checks/{check_id}/reports/{report_id}/cancel | This endpoint is for cancelling individual paused reports. |
createApplicant | POST /applicants | Create Applicant |
createCheck | POST /applicants/{applicant_id}/checks | Create a check |
createWebhook | POST /webhooks | Create a webhook |
destroyApplicant | DELETE /applicants/{applicant_id} | Delete Applicant |
downloadDocument | GET /applicants/{applicant_id}/documents/{document_id}/download | Download a documents raw data |
downloadLivePhoto | GET /live_photos/{live_photo_id}/download | Download live photo |
downloadLiveVideo | GET /live_videos/{live_video_id}/download | Download live video |
findAddresses | GET /addresses/pick | Search for addresses by postcode |
findApplicant | GET /applicants/{applicant_id} | Retrieve Applicant |
findCheck | GET /applicants/{applicant_id}/checks/{check_id} | Retrieve a Check |
findDocument | GET /applicants/{applicant_id}/documents/{document_id} | A single document can be retrieved by calling this endpoint with the document’s unique identifier. |
findLivePhoto | GET /live_photos/{live_photo_id} | Retrieve live photo |
findLiveVideo | GET /live_videos/{live_video_id} | Retrieve live video |
findReport | GET /checks/{check_id}/reports/{report_id} | A single report can be retrieved using this endpoint with the corresponding unique identifier. |
findReportTypeGroup | GET /report_type_groups/{report_type_group_id} | Retrieve single report type group object |
findWebhook | GET /webhooks/{webhook_id} | Retrieve a Webhook |
listApplicants | GET /applicants | List Applicants |
listChecks | GET /applicants/{applicant_id}/checks | Retrieve Checks |
listDocuments | GET /applicants/{applicant_id}/documents | List documents |
listLivePhotos | GET /live_photos | List live photos |
listLiveVideos | GET /live_videos | List live videos |
listReportTypeGroups | GET /report_type_groups | Retrieve all report type groups |
listReports | GET /checks/{check_id}/reports | All the reports belonging to a particular check can be listed from this endpoint. |
listWebhooks | GET /webhooks | List webhooks |
restoreApplicant | POST /applicants/{applicant_id}/restore | Restore Applicant |
resumeCheck | POST /checks/{check_id}/resume | Resume a Check |
resumeReport | POST /checks/{check_id}/reports/{report_id}/resume | This endpoint is for resuming individual paused reports. |
updateApplicant | PUT /applicants/{applicant_id} | Update Applicant |
uploadDocument | POST /applicants/{applicant_id}/documents | Upload a document |
uploadLivePhoto | POST /live_photos | Upload live photo |
cancelReport(checkId, reportId)
This endpoint is for cancelling individual paused reports.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val checkId : kotlin.String = checkId_example // kotlin.String |
val reportId : kotlin.String = reportId_example // kotlin.String |
try {
apiInstance.cancelReport(checkId, reportId)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#cancelReport")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#cancelReport")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
checkId | kotlin.String | [default to null] | |
reportId | kotlin.String | [default to null] |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Applicant createApplicant(applicant)
Create Applicant
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicant : Applicant = // Applicant |
try {
val result : Applicant = apiInstance.createApplicant(applicant)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#createApplicant")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#createApplicant")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicant | Applicant |
- Content-Type: application/json
- Accept: application/json
Check createCheck(applicantId, check)
Create a check
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
val check : Check = // Check |
try {
val result : Check = apiInstance.createCheck(applicantId, check)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#createCheck")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#createCheck")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] | |
check | Check |
- Content-Type: application/json
- Accept: application/json
Webhook createWebhook(webhook)
Create a webhook
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val webhook : Webhook = // Webhook |
try {
val result : Webhook = apiInstance.createWebhook(webhook)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#createWebhook")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#createWebhook")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
webhook | Webhook |
- Content-Type: application/json
- Accept: application/json
destroyApplicant(applicantId)
Delete Applicant
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
try {
apiInstance.destroyApplicant(applicantId)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#destroyApplicant")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#destroyApplicant")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
java.io.File downloadDocument(applicantId, documentId)
Download a documents raw data
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
val documentId : kotlin.String = documentId_example // kotlin.String |
try {
val result : java.io.File = apiInstance.downloadDocument(applicantId, documentId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#downloadDocument")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#downloadDocument")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] | |
documentId | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: /, application/json
java.io.File downloadLivePhoto(livePhotoId)
Download live photo
Live photos are downloaded using this endpoint.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val livePhotoId : kotlin.String = livePhotoId_example // kotlin.String | The live photo’s unique identifier.
try {
val result : java.io.File = apiInstance.downloadLivePhoto(livePhotoId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#downloadLivePhoto")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#downloadLivePhoto")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
livePhotoId | kotlin.String | The live photo’s unique identifier. | [default to null] |
- Content-Type: Not defined
- Accept: /, application/json
java.io.File downloadLiveVideo(liveVideoId)
Download live video
Live videos are downloaded using this endpoint.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val liveVideoId : kotlin.String = liveVideoId_example // kotlin.String | The live video’s unique identifier.
try {
val result : java.io.File = apiInstance.downloadLiveVideo(liveVideoId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#downloadLiveVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#downloadLiveVideo")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
liveVideoId | kotlin.String | The live video’s unique identifier. | [default to null] |
- Content-Type: Not defined
- Accept: /, application/json
GenericAddressesList findAddresses(postcode)
Search for addresses by postcode
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val postcode : kotlin.String = postcode_example // kotlin.String |
try {
val result : GenericAddressesList = apiInstance.findAddresses(postcode)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#findAddresses")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#findAddresses")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
postcode | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: application/json
Applicant findApplicant(applicantId)
Retrieve Applicant
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
try {
val result : Applicant = apiInstance.findApplicant(applicantId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#findApplicant")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#findApplicant")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: application/json
CheckWithReportIds findCheck(applicantId, checkId)
Retrieve a Check
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
val checkId : kotlin.String = checkId_example // kotlin.String |
try {
val result : CheckWithReportIds = apiInstance.findCheck(applicantId, checkId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#findCheck")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#findCheck")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] | |
checkId | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: application/json
Document findDocument(applicantId, documentId)
A single document can be retrieved by calling this endpoint with the document’s unique identifier.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
val documentId : kotlin.String = documentId_example // kotlin.String |
try {
val result : Document = apiInstance.findDocument(applicantId, documentId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#findDocument")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#findDocument")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] | |
documentId | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: application/json
LivePhoto findLivePhoto(livePhotoId)
Retrieve live photo
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val livePhotoId : kotlin.String = livePhotoId_example // kotlin.String | The live photo’s unique identifier.
try {
val result : LivePhoto = apiInstance.findLivePhoto(livePhotoId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#findLivePhoto")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#findLivePhoto")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
livePhotoId | kotlin.String | The live photo’s unique identifier. | [default to null] |
- Content-Type: Not defined
- Accept: application/json
LiveVideo findLiveVideo(liveVideoId)
Retrieve live video
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val liveVideoId : kotlin.String = liveVideoId_example // kotlin.String | The live video’s unique identifier.
try {
val result : LiveVideo = apiInstance.findLiveVideo(liveVideoId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#findLiveVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#findLiveVideo")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
liveVideoId | kotlin.String | The live video’s unique identifier. | [default to null] |
- Content-Type: Not defined
- Accept: application/json
Report findReport(checkId, reportId)
A single report can be retrieved using this endpoint with the corresponding unique identifier.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val checkId : kotlin.String = checkId_example // kotlin.String |
val reportId : kotlin.String = reportId_example // kotlin.String |
try {
val result : Report = apiInstance.findReport(checkId, reportId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#findReport")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#findReport")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
checkId | kotlin.String | [default to null] | |
reportId | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: application/json
ReportTypeGroup findReportTypeGroup(reportTypeGroupId)
Retrieve single report type group object
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val reportTypeGroupId : kotlin.String = reportTypeGroupId_example // kotlin.String |
try {
val result : ReportTypeGroup = apiInstance.findReportTypeGroup(reportTypeGroupId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#findReportTypeGroup")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#findReportTypeGroup")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
reportTypeGroupId | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: application/json
Webhook findWebhook(webhookId)
Retrieve a Webhook
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val webhookId : kotlin.String = webhookId_example // kotlin.String |
try {
val result : Webhook = apiInstance.findWebhook(webhookId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#findWebhook")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#findWebhook")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
webhookId | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: application/json
ApplicantsList listApplicants(page, perPage, includeDeleted)
List Applicants
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val page : kotlin.Int = 56 // kotlin.Int | The page to return. The first page is `page=1`
val perPage : kotlin.Int = 56 // kotlin.Int | The number of objects per page.
val includeDeleted : kotlin.Boolean = true // kotlin.Boolean | Whether to also include applicants scheduled for deletion.
try {
val result : ApplicantsList = apiInstance.listApplicants(page, perPage, includeDeleted)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#listApplicants")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#listApplicants")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
page | kotlin.Int | The page to return. The first page is `page=1` | [optional] [default to 1] |
perPage | kotlin.Int | The number of objects per page. | [optional] [default to 20] |
includeDeleted | kotlin.Boolean | Whether to also include applicants scheduled for deletion. | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
ChecksList listChecks(applicantId, page, perPage)
Retrieve Checks
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
val page : kotlin.Int = 56 // kotlin.Int | The page to return. The first page is `page=1`.
val perPage : kotlin.Int = 56 // kotlin.Int | The number of objects per page.
try {
val result : ChecksList = apiInstance.listChecks(applicantId, page, perPage)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#listChecks")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#listChecks")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] | |
page | kotlin.Int | The page to return. The first page is `page=1`. | [optional] [default to 1] |
perPage | kotlin.Int | The number of objects per page. | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
DocumentsList listDocuments(applicantId)
List documents
All documents belonging to an applicant can be listed from this endpoint
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
try {
val result : DocumentsList = apiInstance.listDocuments(applicantId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#listDocuments")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#listDocuments")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: application/json
LivePhotosList listLivePhotos(applicantId)
List live photos
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String | The id of the applicant the live photos belong to.
try {
val result : LivePhotosList = apiInstance.listLivePhotos(applicantId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#listLivePhotos")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#listLivePhotos")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | The id of the applicant the live photos belong to. | [default to null] |
- Content-Type: Not defined
- Accept: application/json
LiveVideosList listLiveVideos(applicantId)
List live videos
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String | The id of the applicant the live videos belong to.
try {
val result : LiveVideosList = apiInstance.listLiveVideos(applicantId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#listLiveVideos")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#listLiveVideos")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | The id of the applicant the live videos belong to. | [default to null] |
- Content-Type: Not defined
- Accept: application/json
ReportTypeGroupsList listReportTypeGroups()
Retrieve all report type groups
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
try {
val result : ReportTypeGroupsList = apiInstance.listReportTypeGroups()
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#listReportTypeGroups")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#listReportTypeGroups")
e.printStackTrace()
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
ReportsList listReports(checkId)
All the reports belonging to a particular check can be listed from this endpoint.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val checkId : kotlin.String = checkId_example // kotlin.String |
try {
val result : ReportsList = apiInstance.listReports(checkId)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#listReports")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#listReports")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
checkId | kotlin.String | [default to null] |
- Content-Type: Not defined
- Accept: application/json
WebhooksList listWebhooks()
List webhooks
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
try {
val result : WebhooksList = apiInstance.listWebhooks()
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#listWebhooks")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#listWebhooks")
e.printStackTrace()
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
restoreApplicant(applicantId)
Restore Applicant
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
try {
apiInstance.restoreApplicant(applicantId)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#restoreApplicant")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#restoreApplicant")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
resumeCheck(checkId)
Resume a Check
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val checkId : kotlin.String = checkId_example // kotlin.String |
try {
apiInstance.resumeCheck(checkId)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#resumeCheck")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#resumeCheck")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
checkId | kotlin.String | [default to null] |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
resumeReport(checkId, reportId)
This endpoint is for resuming individual paused reports.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val checkId : kotlin.String = checkId_example // kotlin.String |
val reportId : kotlin.String = reportId_example // kotlin.String |
try {
apiInstance.resumeReport(checkId, reportId)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#resumeReport")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#resumeReport")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
checkId | kotlin.String | [default to null] | |
reportId | kotlin.String | [default to null] |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Applicant updateApplicant(applicantId, applicant)
Update Applicant
Allows updating of an applicant’s information before any checks are created. - Partial updates - Addresses and ID numbers present will replace existing ones - Same applicant validations to create applicant
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
val applicant : Applicant = // Applicant |
try {
val result : Applicant = apiInstance.updateApplicant(applicantId, applicant)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#updateApplicant")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#updateApplicant")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] | |
applicant | Applicant |
- Content-Type: application/json
- Accept: application/json
Document uploadDocument(applicantId, type, file, side)
Upload a document
Documents are uploaded using this endpoint. Along with the file upload the relevant document type must be specified. Documents must be uploaded as a multipart form. The valid file types are: jpg, png and pdf. The file size must be between 2KB and 3MB.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
val type : kotlin.String = type_example // kotlin.String | The type of document.
val file : java.io.File = BINARY_DATA_HERE // java.io.File | The file to be uploaded.
val side : kotlin.String = side_example // kotlin.String | Either the `front` or `back` of the document.
try {
val result : Document = apiInstance.uploadDocument(applicantId, type, file, side)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#uploadDocument")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#uploadDocument")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] | |
type | kotlin.String | The type of document. | [default to null] |
file | java.io.File | The file to be uploaded. | [default to null] |
side | kotlin.String | Either the `front` or `back` of the document. | [optional] [default to null] |
- Content-Type: multipart/form-data
- Accept: application/json
LivePhoto uploadLivePhoto(applicantId, file, advancedValidation)
Upload live photo
You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
val applicantId : kotlin.String = applicantId_example // kotlin.String |
val file : java.io.File = BINARY_DATA_HERE // java.io.File | The file to be uploaded.
val advancedValidation : kotlin.Boolean = true // kotlin.Boolean | Validates that the live photo contains exactly one face.
try {
val result : LivePhoto = apiInstance.uploadLivePhoto(applicantId, file, advancedValidation)
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#uploadLivePhoto")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#uploadLivePhoto")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
applicantId | kotlin.String | [default to null] | |
file | java.io.File | The file to be uploaded. | [default to null] |
advancedValidation | kotlin.Boolean | Validates that the live photo contains exactly one face. | [optional] [default to true] |
- Content-Type: multipart/form-data
- Accept: application/json