Application Documents
Overview
Most applications get approved automatically without any document verification. Some applications cannot be approved or declined based on the initial data provided by the customer, and require document verification.
Once an application moves to an awaitingDocuments status (you can identify these cases by listening to the relevant webhook event), the customer would need to provide the required application documents.
When that happens, Mansar automatically creates Application document resources, that represent the documents that need to be collected for the application to be evaluated.
Their initial status is always Required. The documents will be different in the case of individual and business applications.
You can find out what documents are required using the list application documents endpoint.
Application Document Status
Required
The document is required for the application to be evaluated.
ReceivedBack
Back-side of the document was received. Front-side is still required. Only relevant for IdDocument document type.
ReceivedFront
Front-side of the document was received. Back-side is still required. Only relevant for IdDocument document type.
Invalid
The document is invalid. You may re-upload the correct document for the application to be evaluated.
Approved
The document is approved.
PendingReview
The document is currently undergoing review.
Document Types
IdDocument
An individual's Drivers License or National ID. Both front-side and back-side are required.
Passport
An individual's passport.
AddressVerification
An individual's document to verify address. Document may be a utility bill, bank statement, lease agreement or current pay stub.
SocialSecurityCard
An individual's social security card.
CertificateOfIncorporation
A business's certificate of incorporation. A certificate of assumed name will also be accepted.
EmployerIdentificationNumberConfirmation
A business's EIN confirmation document.
ClientRequested
Client requested customer document.
SelfieVerification
Selfie verification document.
Upload Document
Uploads a document file. Supported file types are pdf, jpeg or png.
Verb
PUT
Url
https://api.s.usemansar.xyz/applications/{applicationId}/documents/{documentId}
Required Scope
applications-write
Timeout (Seconds)
120
Headers
Content-Type
One of image/png, image/jpeg, or application/pdf.
Response
Response is a JSON:API document.
200 OK
data
ApplicationDocument
The target resource after the operation was completed.
Example Response:
Upload Document Back-Side
Uploads the back-side of a document. Supported file types are pdf, jpeg or png.
Verb
PUT
Url
https://api.s.usemansar.xyz/applications/{applicationId}/documents/{documentId}/back
Required Scope
applications-write
Timeout (Seconds)
120
NOTE
This operation is only relevant to driver's licenses.
Headers
Content-Type
One of image/png, image/jpeg, or application/pdf.
Response
Response is a JSON:API document.
200 OK
data
ApplicationDocument
The target resource after the operation was completed.
Example Response:
List
List application documents.
Verb
GET
Url
https://api.s.usemansar.xyz/applications/{applicationId}/documents
Required Scope
applications
Timeout (Seconds)
5
INFO
You can also list the application documents via Get Application by Id, the documents will be included in the response included top-level field.
Response
Response is a JSON:API document.
200 OK
data
Array of ApplicationDocument Resource
Array of application documents.
Example Response:
Download Document
Download the application document file.
Verb
GET
Url
https://api.s.usemansar.xyz/applications/{applicationId}/documents/{documentId}/download
Timeout (Seconds)
5
Example Request:
Download Document Back-Side
Download the application document back-side file.
Verb
GET
Url
https://api.s.usemansar.xyz/applications/{applicationId}/documents/{documentId}/download/back
Timeout (Seconds)
5
Example Request:
Create Document
Mansar allows you to create (and store) custom documents. This feature allows you to run additional document verifications on your side - these are documents that are not required by Mansar for the evaluation of the application. Once you create a custom document resource, you can upload and store the document by using the relevant endpoints.
Verb
POST
Url
https://api.s.usemansar.xyz/applications/{applicationId}/documents/
Required Scope
applications-write
Timeout (Seconds)
5
Response
Response is a JSON:API document.
200 OK
Example Response:
Verify Document
Verify Selfie Verification document
Verb
POST
Url
https://api.s.usemansar.xyz/application/:id/documents/:id/verify
Required Scope
applications-write
Timeout (Seconds)
5
Attributes
jobId
string
Verification job identifier
Response
Response is a JSON:API document.
200 OK
data
Document
The updated Document resource.
Last updated