To verify the identity of a person and match the data they have provided with the document it is required to upload an image of a document.
Post to: https://api.basisid.com/auth/send-document
Query parameters:
-
User_hash (string) - Required
User hash (received in the /base-check step).
2. Check_id (string) - Required
User registration ID (received in the /base-check step).
3. Step (string) - Required
Document side numeration. "1" by default. For the second side of ID card specify "2".
4. File (file <binary>) - Required
Attached image file (jpg/jpeg/png/gif/tiff).
Example:
curl \
-F "user_hash=c3732a00d5e297ba5a83504dfe1f2cdb310d0f80" \
-F "check_id=8905" \
-F "step=1" \
-F "file=@/path/to/img.jpg" \
https://api.basisid.com/auth/send-document
Responses:
- 200 Status 200
- 400 Bad request (could not parse JSON input request/ unacceptable file format)
- 404 Not Found (invalid check_id/user_hash values)
- 500 Internal server error (contact support team)
Status 200 OK system response:
- Status (string) - Required
Upload status. Value: ok.
2. File (string) - Required
Server address of the uploaded file
Example:
{
"status":"ok",
"file":"/eu/passport/3fe8d3e4-e605-4f78-bf69-b409dda14dc0.jpg"
}
Comments
0 comments
Please sign in to leave a comment.