API reference, Electronic signature

Attach signature on annotation

POSThttps://demo-api.incodesmile.com/omni/attach-signature-on-annotation

Attach signature from interview to previously uploaded PDF contracts at all places annotated with text from request, with desired height on pdf. Annotations must contain text with either preselected values, or alternative can be supplied. If user wishes to use signature supplied during onboarding, DEFAULT signature type should be used.

Preselected values are: DEFAULT, INITIALS, PATIENTS_SIGNATURE, NON_MEDICAL_SIGNATURE_1, NON_MEDICAL_SIGNATURE_2, MEDICAL_SIGNATURE_1, MEDICAL_SIGNATURE_2

Endpoint is intended to be used as fluent api. One call to the api gives in responses id of the signed document which can then be used in the subsequent call to continuously add another signature on a different annotation.

Query parameters

interviewIdstring

Headers

api-versionstringrequiredDefaults to 1.0

Request body

application/json

contractIdstringrequired

IDs of previously added contract (ID is returned on /add/document?imageType=contract)

signedContractIdstring

IDs of previously signed contract (ID is returned as response from the previous /attach/signature/on/annotation)

signatureTypestring

One of the preselected values for annotation text

enumDEFAULTINITIALSPATIENTS_SIGNATURENON_MEDICAL_SIGNATURE_1NON_MEDICAL_SIGNATURE_2MEDICAL_SIGNATURE_1MEDICAL_SIGNATURE_2MEDICAL_SIGNATURE_3PATIENTS_SIGNATURE_NAMENON_MEDICAL_SIGNATURE_1_NAMENON_MEDICAL_SIGNATURE_2_NAMEMEDICAL_SIGNATURE_1_NAMEMEDICAL_SIGNATURE_2_NAME
alternativeSignatureTypestring

If annotation text is none of the preselected values, pass in here the alternative value (signature must be inserted with the alternative value into database as it's signature type)

Responses