Defining Signature Fields (Signature routine)
Signature Routine tasks use the same field definition methods as Single Tasks, with three additional required fields on every signature position object:
ClientId
int
The specific signer this field belongs to
SignatureRoutineSignerNumber
int
Signing order (1 = first to sign, 2 = second, etc.)
IsSignatureRoutine
bool
Must be true on all fields
For all other field options, see Defining Signature Fields - Single Task.
Method 1 - Coordinates Array (SignaturePositions)
Each object in the array is assigned to a specific signer via ClientId and SignatureRoutineSignerNumber. A single document can have multiple signers, each with their own field.
{
"SignaturePositions": [
{
"X": 20,
"Y": 100,
"Width": 30,
"Height": 20,
"Page": 1,
"SignaturePositionTypeId": 1,
"SignaturePositionStageTypeId": 0,
"SignaturePositionFieldType": 0,
"IsMultipleOptionsCheckbox": false,
"PositionTextContent": null,
"CheckBoxSelected": false,
"ClientId": 49728,
"SignatureRoutineSignerNumber": 1,
"IsSignatureRoutine": true
},
{
"X": 20,
"Y": 140,
"Width": 30,
"Height": 20,
"Page": 1,
"SignaturePositionTypeId": 1,
"SignaturePositionStageTypeId": 0,
"SignaturePositionFieldType": 0,
"IsMultipleOptionsCheckbox": false,
"PositionTextContent": null,
"CheckBoxSelected": false,
"ClientId": 49729,
"SignatureRoutineSignerNumber": 2,
"IsSignatureRoutine": true
}
]
}Method 2 — ASCII Marker
Use this method when the PDF already contains marker characters instead of fixed coordinates.
The system scans the document for each SearchCharSignature value and creates the signer field where that marker appears.
Each object inside SearchWordForSignatureRoutine maps:
one marker in the PDF
one signer in the routine
one signer order value
Two supported signer modes
You can identify the signer in two ways:
by existing
ClientIdby inline signer details with
ClientId: null
Example 1 - Existing clients by ClientId
Use this when the signers already exist in your account.
The marker is linked to a saved client record through ClientId. You do not need to send ClientPhones or ClientEmails in the field object when the existing client record already identifies the signer.
In this example:
every
###marker is assigned to client686185every
@@@marker is assigned to client569520SignerNumberInRoutinemaps each marker to signer1and signer2
This is the best option when your routine uses known clients and you already have their IDs.
Example 2 - No ClientId, signer details sent in the request
Use this when the signers do not have saved client records, or when you want to send to one-time recipients directly from the request.
Set ClientId to null, then provide the signer details in the same object. In this mode, include ClientName and at least one delivery channel such as ClientEmails or ClientPhones.
In this example:
$creates the field for the first signer^creates the field for the second signerthe recipient details come directly from
ClientName,ClientEmails, andClientPhones
This is useful for ad hoc routines where you do not want to create or look up client records first.
Last updated