Document status

StatusDescription
setupDocument is currently in a setup state
awaiting_signaturesDocument is awaiting signatures
completeDocument has completed being signed
conversion_errorAn error occurred when creating the document
var STATUS = {
  "setup":"setup",
  "awaiting_signatures":"awaiting_signatures",
  "complete":"complete",
  "conversion_error":"conversion_error"
};

Document type

typeDescription
documentDocument that can be signed
templateA special kind of document that can be copied and used to make new documents
var DOCUMENT_TYPE = {
   template:"template",
   document:"document"
};

DataField type

TypeDescription
signatureSignature field, where a user can enter a signature
textAny free form text
dateA special kind of text field that accepts date
initialA signature field intended for initials
checkA checkbox field. Note: data for check field is either checked or unchecked
blockA field used for blocking out content e.g. a clause that doesn’t apply to the user
fileA Field used for upload files.
choiceA field used for allocating a set number of options for a field.
var DATA_FIELD_TYPE = {
    "signature":"signature",
    "text":"text",
    "date":"date",
    "initial":"initial",
    "check":"check",
    "block":"block",
    "file":"file",
    "choice": "choice"

};

Signatory status

StatusDescription
setupSignature request hasn’t been sent to the user
awaiting_signaturesSignature request has been sent
completeUser has and completed
var STATUS = {
  "setup":"setup",
  "awaiting_signatures":"awaiting_signatures",
  "complete":"complete"
  };

Error Codes

Error codeDescription
bad_requestGeneric error code if we don’t specify the error code. More information will be found in the error message.
unauthorisedDo not have permission to perform an operation or the credentials you supplied are invalid.
invalid_access_tokenAccess token is no longer valid or has been revoked.
conversion_failedDocument failed to convert. This can either be when creating the final pdf or when converting the initial pdf to images
status_change_deniedReturned when trying to update status of a document to another status
operation_deniedReturned when an entity is no longer allowed to be deleted or updated
signatory_detail_errorThere could be missing contact details, name or duplicate details
conflict_errorEntity has been updated previously and QuicklySign can’t determine which version to use. This is based on date_updated
not_supportedThe functionality currently isn’t supported.
insufficient_fundsApi client doesn’t have funds to perform the operation.
service_unavailableThis should never happen :) However, if it’s down for maintenance, we’ll return this code
not_foundEntity could not be found.
internal_server_errorInternal server error. Contact [email protected] if this happens.
var ERROR_CODES ={
    "bad_request" : "bad_request",
    "unauthorized" : "unauthorized",
    "invalid_access_token" : "invalid_access_token",
    "conversion_failed" : "conversion_failed",
    "status_change_denied" : "status_change_denied",
    "operation_denied" : "operation_denied",
    "signatory_detail_error" : "signatory_detail_error",
    "conflict_error" : "conflict_error",
    "not_supported" : "not_supported",

    "insufficient_funds" : "insufficient_funds",
    "service_unavailable" : "service_unavailable",

    "unknown_error" : "unknown_error",
    "not_found" : "not_found",
    "method_not_supported" : "method_not_supported",
    "internal_server_error" : "internal_server_error"
};

Subscription Callback events

Callback EventDescription
entity_updatedThe entity you subscribed to has been updated
document_status_changedThe status of the document has changed
audit_trail_updatedThe audit trail has been updated
signatory_updatedSignatory details have been updated. E.g. email send count
data_field_updatedData field has been updated.
final_document_generatedEvent raised when final document has been generated
var CALLBACK_EVENT= {
  "entity_updated":"entity_updated",
  "document_status_changed":"document_status_changed",
  "final_document_generated":"final_document_generated",
  "audit_trail_updated":"audit_trail_updated"
  };

Audit Trail Entry types

Audit entry typeDescription
signature_request_sentIndicates a signature request was sent
signature_request_reminder_sentIndicates a reminder to sign was sent.
user_details_changedWhen details changed then this entry is inserted into the log. It indicates that name or email or mobile number changed.
sms_deliveredOtp was delivered
sms_sentOtp was sent
sms_failureOtp failed to deliver
email_failureEmail failed to deliver
email_tracking_infoGeneral tracking info, where applicable, it will indicate that the mail arrived at server, was opened etc.
document_status_changedEntry for when status changes. E.g. Complete, awaiting_signatures
document_createdDocument created (when a user creates a document)
document_openedDocument opened (a user opens the document)
document_completedDocument has been signed and marked as complete.
document_uploadedDocument uploaded
document_deletedDocument deleted.
user_signeda user completed signing
user_signed_in_personA user signed in-person
user_opted_to_sign_laterA user opted to sign later
logA generic entry for when none of the other audit log types will suffice
entered_incorrect_otpIncorrect otp entered. Multiple of these in the audit trail could indicate brute force attack.
entered_correct_otpCorrect otp entered.
in_person_signing_link_generatedIn person signing link generated
document_downloadedCompleted document is downloaded.
document_preview_generatedA preview of the final document was generated
document_preview_downloadedA preview of the final document was downloaded
document_opened_via_in_person_signing_linkAn in-person signing link was used to open the document.