Create Validation Submission Document
POST/v1/validation-submission-documents
Uploads a Validation Submission document. Valid file formats for documents are jpg
, png
and pdf
. The maximum file size is 5MB.
Request​
Header Parameters
Idempotency-Key string
Idempotency key
- multipart/form-data
Body
file binaryrequired
Document to validate. Valid file formats for documents are jpg
, png
and pdf
. The maximum file size is 5MB.
validationSubmissionId stringrequired
Validation submission id
Example:
validationsubmission_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Responses​
- 200
- 400
- 401
- 403
Successfully uploaded Validation Submission document
- application/json
- Schema
- Example (from schema)
Schema
data
object
id string
Example:
validationsubmissiondocument_xxxxxxxxxxxx
validationSubmissionId string
Example:
validationsubmission_xxxxxxxxxxxx
createdAt date-time
Example:
2022-02-02T17:46:54.000Z
url url
Example:
https://s3-eu-west-1.amazonaws.com/assets.poweredbypercent.com/document.pdf
type string
Possible values: [validation_request
, agent_verification
]
object string
Example:
validation_submission_document
{
"data": {
"id": "validationsubmissiondocument_xxxxxxxxxxxx",
"validationSubmissionId": "validationsubmission_xxxxxxxxxxxx",
"createdAt": "2022-02-02T17:46:54.000Z",
"url": "https://s3-eu-west-1.amazonaws.com/assets.poweredbypercent.com/document.pdf",
"type": "validation_request"
},
"object": "validation_submission_document"
}
Bad request
- application/json
- Schema
- Example (from schema)
- FiletypeNotSupported
- FileIsMissing
- MaxFileSize
- ValidationSubmissionNotFound
- IncorrectParamsBody
- InvalidConfiguration
- OriginalCallInProgress
- SameKeyDifferentData
- KeyInUse
Schema
error
object
code string
title string
message string
reasons string[]nullable
{
"error": {
"code": "string",
"title": "string",
"message": "string",
"reasons": [
"string"
]
}
}
Upload - Filetype not supported
{
"error": {
"code": "upload/filetype_not_supported",
"title": "Bad request",
"message": "Filetype not supported. Supported types include: pdf, png, jpg"
}
}
Upload - File is missing
{
"error": {
"code": "upload/file_is_missing",
"title": "Bad request",
"message": "File is missing. File is a required field"
}
}
Upload - File exceeded max size
{
"error": {
"code": "upload/max_file_size",
"title": "Bad request",
"message": "Request size exceeded maximum for this endpoint (5242880 bytes)"
}
}
400 Bad request
{
"error": {
"code": "validation_submission_document/validation_submission_not_found",
"title": "Bad request",
"message": "validation submission not found"
}
}
400 Incorrect Parameters
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "One or more of the inputs were invalid",
"reasons": [
"pageSize must be greater than or equal to 0"
]
}
}
404 Not Found
{
"error": {
"code": "validation_submission/invalid_configuration_id",
"title": "Not Found",
"message": "Provided configurationId is not valid"
}
}
Idempotency - Original call in progress
{
"error": {
"code": "idempotency/original_call_in_progress",
"title": "Bad request",
"message": "Original call with this idempotency key is still in progress"
}
}
Idempotency - Data has changed from previous request
{
"error": {
"code": "idempotency/same_key_different_data",
"title": "Bad request",
"message": "Data has changed from previous request"
}
}
Idempotency - Key in use
{
"error": {
"code": "idempotency/key_already_in_use",
"title": "Bad request",
"message": "Idempotency Key is already in use"
}
}
Unauthorized
Forbidden (scope)
- application/json
- Schema
- Example (from schema)
Schema
error
object
code string
Example:
forbidden
title string
Example:
Forbidden
message string
Example:
Access is denied due to missing scope permissions
{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}
Loading...