Check Document

You can check document status and get back signed document with this request.
You need to use access token that you've got Authentication section in this request.

Request

Syntax:

GET /check_document_state/{ GUID } HTTP/1.1
Host: ServiceURL
Authorization: Bearer token
Connection: keep-alive

Response

Success:


    {
        "success": true,
        "GUID": "82f13f65-7829-4511-92d6-25d9351683ed,
        "Description": "Test document",
        "Signed": true,
        "Download_URL": "https://firma.legale.cl/media/documents/test.pdf",
        "Base64_Document": "Base64 string of signed document",
        "Base64_National_ID_front": "Base64 string of national ID card frond image",
        "Base64_National_ID_back": "Base64 string of national ID card back image",
        "Base64_Signature": "Base64 string of signature image",
        "Base64_Fingerprint": "Base64 string of fingerprint image",
        "Biometric_Fingerprint": "Biometric Data of fingerprint",
        "debug": ""
    }

                    

Error:


    {
        "success": false,
        "document_id": "",
        "Description": "",
        "Signed": false,
        "Download_URL": "",
        "Base64_Document": "",
        "Base64_National_ID_front": "",
        "Base64_National_ID_back": "",
        "Base64_Signature": "",
        "Base64_Fingerprint": "",
        "Biometric_Fingerprint": "",
        "debug": "Invalid Argument"
    }

                    

Other errors are following typical Restful API rules.