Signature type per signer
Beta
This feature is in beta. For now it is available only to some users. We will release it gradually to more accounts once testing ends. If you want to use it, ask your JAAK contact for access.
Description
Each signer of a document can sign with a different signature type. For example, the client signs with a simple signature, the company's representative with e.firma (SAT) and the witnesses with a simple signature. Each signer only goes through the steps their type requires, and quota is charged by type.
Any mix of types is allowed.
Signature types
| Value | Meaning |
|---|---|
simple | Simple signature. |
advanced | Advanced signature. |
biometric | Biometric signature. |
advanced_biometric | Advanced biometric signature. |
notarial | Notarial signature. |
efirma_sat | e.firma (SAT). |
"" (empty) | In the template: the role uses the template's type. |
at_send | Template only: the type is defined on each send. |
In the template
Each role of the template can have:
- Same as the template (empty value). All existing templates have this. Everything works as before.
- A fixed type, for example
efirma_sat. - Define on send (
at_send).
It is saved with role_signature_types, a map from role to type. Use PUT /api/v1/templates/{id}:
curl -X PUT https://signa.sandbox.jaak.ai/api/v1/templates/1234 \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"role_signature_types": {
"EL PRESTADOR": "efirma_sat",
"EL CLIENTE": "at_send",
"TESTIGO 1": ""
}
}'
- An empty or absent map keeps the stored values.
- A listed role receives the given value. An empty value returns it to "same as the template".
- You can also send
role_signature_typeswhen you create a tagged template. See Templates with tags.
In the JAAK Platform, the template editor shows one selector per role with the same options.
On each send
Each signer accepts an optional signature_type in POST /api/v1/submissions:
curl -X POST https://signa.sandbox.jaak.ai/api/v1/submissions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"template_id": 1234,
"send_email": false,
"submitters": [
{ "role": "EL PRESTADOR", "name": "Representante Demo", "email": "representante@ejemplo.com" },
{ "role": "EL CLIENTE", "name": "Ana Ejemplo Pérez", "email": "ana.ejemplo@ejemplo.com", "signature_type": "advanced" }
]
}'
The type of each signer is resolved in this order:
- The signer's
signature_typein the send, if you send it. - The fixed type of the role in the template.
- The type of the template.
The value in the send applies only to that send. The template is not modified. If you send again without the field, the signer goes back to the template's type.
Errors
| Situation | Response |
|---|---|
The role is at_send and the send has no signature_type | 400: signature type required for role <role> |
| A value is not one of the types in the table | Rejected as an invalid argument. |
role_signature_types includes a role the template does not have | Rejected as an invalid argument. |
| The company has no quota for the chosen type | Rejected with the usual quota error (402). |
A send never stores at_send: it always stores the resolved type of each signer.