Signt (stable)
Download OpenAPI specification:Download
Descripción
Servicio para generar documentos digitales totalmente customizables y poder firmarlos con NOM 151
Con estos endpoint se manejan todos los templates que son la base para la construcción de documentos, desde la creación de la base a través de un documento PDF así como el nombre y la descripción del propósito de este template.
Obtener una lista de templates
Authorizations:
query Parameters
search | string Example: search=test |
Responses
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test",
- "description": "Template test",
- "pages": 5,
- "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z"
}
]
}
}
Crear un nuevo templete
Authorizations:
Request Body schema: multipart/form-data
Una petición multipart/form-data para crear un template
name | string Nombre del template |
description | string Descripción del template |
template | string <binary> El archivo PDF del template |
template_tmp_id | string <uuid> Uuid del archivo si se subio con el api de archivos temporales |
Responses
Response samples
- 201
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test",
- "description": "Template test",
- "pages": 5,
- "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z",
}
}
Obtener los detalles de un template
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del template |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test",
- "description": "Template test",
- "pages": 5,
- "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z",
- "elements": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Campo 2",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": 1,
- "page": 1,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20,
- "default_value": "Valor por defecto",
- "metadata": {
- "font": "times",
- "font_size": 12,
- "font_style": "BI",
- "text_align": "J",
- "vertical_align": "C",
- "line_height": 1.25,
- "font_color_rgb": [
- 0,
- 0,
- 0
]
}, - "rules": [
- "required",
- "string",
- "max:50"
], - "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z"
}
]
}
}
Actualizar un template
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del template |
Request Body schema: multipart/form-data
Una petición multipart/form-data para actualizar template
name | string |
description | string |
template | string <binary> |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test",
- "description": "Template test",
- "pages": 5,
- "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z",
- "elements": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Campo 2",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": 1,
- "page": 1,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20,
- "default_value": "Valor por defecto",
- "metadata": {
- "font": "times",
- "font_size": 12,
- "font_style": "BI",
- "text_align": "J",
- "vertical_align": "C",
- "line_height": 1.25,
- "font_color_rgb": [
- 0,
- 0,
- 0
]
}, - "rules": [
- "required",
- "string",
- "max:50"
], - "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z"
}
]
}
}
Cambiar el archivo base de un template
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del template |
Request Body schema: multipart/form-data
Una petición multipart/form-data para cambiar el archivo base del template
template | string <binary> |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test",
- "description": "Template test",
- "pages": 5,
- "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z",
}
}
Con estos endpoint se manejan todos los elementos de los templates para indicar los campos personalizables de los documentos, desde imágenes, texto y hasta firmas así como las posiciones en el documento de estos.
Obtener una lista de elementos de template
Authorizations:
query Parameters
template_id | string Example: template_id=51319186-a4a0-4497-a3c9-ebdbdaca0159 Template relacionado |
Responses
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Campo 2",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": 1,
- "page": 1,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20,
- "default_value": "Valor por defecto",
- "metadata": {
- "font": "times",
- "font_size": 12,
- "font_style": "BI",
- "text_align": "J",
- "vertical_align": "C",
- "line_height": 1.25,
- "font_color_rgb": [
- 0,
- 0,
- 0
]
}, - "rules": [
- "required",
- "string",
- "max:50"
], - "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z"
}
]
}
}
Crear un elemento de template
Authorizations:
Request Body schema: application/json
Una petición application/json para crear un elemento de template
name | string Nombre del elemento de template |
Texto (1) (integer) or Imagen (2) (integer) or Firma (3) (integer) | |
page | integer >= 1 Pagina donde se insertará el elemento del template |
top | number >= 0 Posición desde arriba para insertar el elemento en la página |
left | number >= 0 Posición desde la izquierda para insertar el elemento en la página |
width | number >= 0 Ancho que ocupará el elemento en la página |
height | number >= 0 Altura que ocupará el elemento en la página |
object Metadata de un elemento de tipo Texto | |
rules | Array of strings Reglas de validación para el valor del elemento, referirse a la validación de laravel |
template_id | string El ID del template relacionado |
Responses
Request samples
- Payload
{- "name": "Campo Nombre",
- "type": 3,
- "page": 1,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20,
- "metadata": {
- "font": "string",
- "font_size": 12,
- "font_style": "BI",
- "text_align": "J",
- "line_height": 1.25,
- "font_color_rgb": [
- 0,
- 0,
- 0
]
}, - "rules": [
- "required",
- "string",
- "max:10"
], - "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159"
}
Response samples
- 201
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Campo 2",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": 1,
- "page": 1,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20,
- "default_value": "Valor por defecto",
- "metadata": {
- "font": "times",
- "font_size": 12,
- "font_style": "BI",
- "text_align": "J",
- "vertical_align": "C",
- "line_height": 1.25,
- "font_color_rgb": [
- 0,
- 0,
- 0
]
}, - "rules": [
- "required",
- "string",
- "max:50"
], - "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z"
}
}
Obtener los detalles de un elemento de template
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del elemento de template |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Campo 2",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": 1,
- "page": 1,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20,
- "default_value": "Valor por defecto",
- "metadata": {
- "font": "times",
- "font_size": 12,
- "font_style": "BI",
- "text_align": "J",
- "vertical_align": "C",
- "line_height": 1.25,
- "font_color_rgb": [
- 0,
- 0,
- 0
]
}, - "rules": [
- "required",
- "string",
- "max:50"
], - "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z"
}
}
Actualizar un elemento de template
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del elementos template |
Request Body schema: application/json
Una petición application/json para actualizar un elemento de template
name | string Nombre del elemento de template |
type | integer Tipo de elemento de template type 1 = Text, type 2 = Image, type 3 = Firma |
page | integer >= 1 Pagina donde se insertará el elemento del template |
top | number >= 0 Posición desde arriba para insertar el elemento en la página |
left | number >= 0 Posición desde la izquierda para insertar el elemento en la página |
width | number >= 0 Ancho que ocupará el elemento en la página |
height | number >= 0 Altura que ocupará el elemento en la página |
object Metadata de un elemento de tipo Texto | |
rules | Array of strings Reglas de validación para el valor del elemento, referirse a la validación de laravel |
template_id | string El ID del template relacionado |
Responses
Request samples
- Payload
{- "name": "Campo Nombre",
- "type": 1,
- "page": 1,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20,
- "metadata": {
- "font": "string",
- "font_size": 12,
- "font_style": "BI",
- "text_align": "J",
- "line_height": 1.25,
- "font_color_rgb": [
- 0,
- 0,
- 0
]
}, - "rules": [
- "required",
- "max:50"
], - "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159"
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Campo 2",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": 1,
- "page": 1,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20,
- "default_value": "Valor por defecto",
- "metadata": {
- "font": "times",
- "font_size": 12,
- "font_style": "BI",
- "text_align": "J",
- "vertical_align": "C",
- "line_height": 1.25,
- "font_color_rgb": [
- 0,
- 0,
- 0
]
}, - "rules": [
- "required",
- "string",
- "max:50"
], - "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z"
}
}
Establecer una imagen por defecto para un elemento de template
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del elemento de template, debe ser de tipo imagen |
Request Body schema: application/json
Una petición multipart/form-data para establecer una imagen por defecto
default_value | string <binary> La imagen a establecer como por defecto |
Responses
Request samples
- Payload
{- "default_value": "string"
}
Response samples
- 200
- 400
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Campo 2",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": 1,
- "page": 1,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20,
- "default_value": "Valor por defecto",
- "metadata": {
- "font": "times",
- "font_size": 12,
- "font_style": "BI",
- "text_align": "J",
- "vertical_align": "C",
- "line_height": 1.25,
- "font_color_rgb": [
- 0,
- 0,
- 0
]
}, - "rules": [
- "required",
- "string",
- "max:50"
], - "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z"
}
}
Obtener una lista de documentos
Authorizations:
query Parameters
search | string Example: search=test |
Responses
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
]
}
}
Crear un nuevo documento
Authorizations:
Request Body schema: application/json
Una petición application/json para crear un document
name | string El nombre del Documento |
template_id | string El ID del template relacionado con el documento |
send_email | boolean Envía un email a todos los firmantes registrados después de sellar con nom 151 |
autosigning | boolean Bandera que indica si se firmara con NOM 151 el documento al terminar los usuarios de firmar |
callback_url | string URL en caso de que se quiera hacer llegar el documento al terminar el firmado de NOM 151. |
expires_in | integer Tiempo en minutos que durarán los tokens vinculados a este documento |
Array of objects Elementos del documento llenados, solo tipo Text |
Responses
Request samples
- Payload
{- "name": "Documento ejemplo",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "send_email": true,
- "autosigning": false,
- "expires_in": 15,
- "elements": [
- {
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "value": "%16"
}
]
}
Response samples
- 201
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string",
- "elements": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "value": "Texto ejemplo",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z"
}
]
}
}
Verificar documento firmado con FIEL
Authorizations:
Request Body schema: multipart/form-data
file | string <binary> archivo pdf a verificar, tamaño maximo 2mb |
Responses
Response samples
- 200
- 400
- 404
{- "success": true,
- "result": {
- "match": true,
- "hash": "f65cf09147392b539fd7fb12d6d8c2b6ffd3f403166e577bcfa04ec9fe0aadde",
- "timestamp_info": "signer cert serial number: 2A\r\nsigner cert issuer: L=Alvaro Obregon,ST=Ciudad de Mexico,C=MX,PostalCode=01030,STREET=Insurgentes Sur 1940\\, Col. Florida,CN=Autoridad Certificadora Raiz Segunda de Secretaria de Economia,OU=Direccion General de Normatividad Mercantil,O=Secretaria de Economia,E=acr2se@economia.gob.mx\r\ngenTime: 2021-08-24T21:28:57Z\r\ncertificates count: 1\r\nall certificates: EMAILADDRESS=acedicommx@edicomgroup.com, O=Edicomunicaciones Mexico S.A. de C.V., OU=TSA, CN=TSAEDICOMMX, STREET=Avda. Paseo de la Reforma 483 Pisos 25-27 Cuauhtemoc, OID.2.5.4.17=06500, C=MX, ST=Ciudad de Mexico, L=Cuauhtemoc; SKI=c2c859d69b38a1c13aa1bdab038e60bb32300210\r\nembedded certificate: EMAILADDRESS=acedicommx@edicomgroup.com, O=Edicomunicaciones Mexico S.A. de C.V., OU=TSA, CN=TSAEDICOMMX, STREET=Avda. Paseo de la Reforma 483 Pisos 25-27 Cuauhtemoc, OID.2.5.4.17=06500, C=MX, ST=Ciudad de Mexico, L=Cuauhtemoc; SKI=c2c859d69b38a1c13aa1bdab038e60bb32300210\r\nadding to certificate chain: EMAILADDRESS=acedicommx@edicomgroup.com, O=Edicomunicaciones Mexico S.A. de C.V., OU=TSA, CN=TSAEDICOMMX, STREET=Avda. Paseo de la Reforma 483 Pisos 25-27 Cuauhtemoc, OID.2.5.4.17=06500, C=MX, ST=Ciudad de Mexico, L=Cuauhtemoc\r\n1.2.840.113549.1.9.4=<Set oid='1.2.840.113549.1.9.4' name='pkcs9_messageDigest'></Set>\r\n1.2.840.113549.1.9.3=<Set oid='1.2.840.113549.1.9.3' name='pkcs9_contentType'></Set>\r\n1.2.840.113549.1.9.52=<Set oid='1.2.840.113549.1.9.52'></Set>\r\n1.2.840.113549.1.9.5=<Set oid='1.2.840.113549.1.9.5' name='pkcs9_signingTime'></Set>\r\n1.2.840.113549.1.9.16.2.47=<Set oid='1.2.840.113549.1.9.16.2.47' name='id_aa_signingCertificateV2'></Set>\r\n",
- "document": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
}
}
Verificar firma FIEL en un documento
Authorizations:
Request Body schema: multipart/form-data
signature | string <base64> Sello digital de la firma FIEL que aparece en el documento descriptivo |
cer | string <binary> Archivo .cer de la FIEL que se desea validar |
fiel_document | string <binary> Archivo pdf que se firma con la fiel |
fiel_doc_tmp_id | string <uuid> Uuid del archivo si se subio con el api de archivos temporales |
Responses
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "match": true
}
}
Obtener los detalles de un documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del Documento |
query Parameters
with_template_elems | boolean Example: with_template_elems=false |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string",
- "elements": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "value": "Texto ejemplo",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z"
}
}
]
}
Actualizar un document
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del Documento |
Request Body schema: application/json
Una petición application/json para actualizar un documento
name | string El nombre del Documento |
template_id | string El ID del template relacionado a este documento |
send_email | boolean Envía un email a todos los firmantes registrados después de sellar con nom 151 |
autosigning | boolean Bandera que indica si se firmara con NOM 151 el documento al terminar los usuarios de firmar |
callback_url | string URL en caso de que se quiera hacer llegar el documento al terminar el firmado de NOM 151. |
expires_in | integer Tiempo en minutos que durarán los tokens vinculados a este documento |
Responses
Request samples
- Payload
{- "name": "Documento ejemplo",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "send_email": true,
- "autosigning": false,
- "expires_in": 15
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
}
Obtener un token para acceder temporalmente a un documento de manera pública
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del Documento |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "token": "123|wWriJkT0VrduQAGHsNbiw5sG7tig5Z2BGu0kzWSR",
- "expiration": "2021-04-07T15:14:19.000000Z"
}
}
Si el documento ya ha sido firmado con NOM 151 se renviaran los archivos por email a los firmantes
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El id para Identificar el Documento |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": "Ok"
}
Llenar los elementos de texto del documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El id para Identificar el Documento |
Request Body schema: application/json
Una peticion application/json para llenar los elementos de tipo texto del document en batch
fields | object Objeto donde las key son los id del elemento del template y el value es el valor del elemento para el documento |
Responses
Request samples
- Payload
{- "fields": {
- "1319186-a4a0-4497-a3c9-ebdbdaca0159": "Test"
}
}
Response samples
- 200
- 400
{- "success": true,
- "result": [
- {
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "value": "Texto ejemplo"
}
]
}
Agregar firmantes permanentes al documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El id para Identificar el Documento |
Request Body schema: application/json
Array of objects | |||||||||||||
Array
|
Responses
Request samples
- Payload
{- "signers": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "password": "12345",
- "expires_in": 15,
- "only_digital_signature": false,
- "is_fiel_signature": false,
- "elements": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "78932121-c7b0-4497-c9c4-abdfcaca9874"
]
}
]
}
Response samples
- 200
- 400
{- "success": true,
- "result": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false
}
]
}
Remover firmante del documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El id para Identificar el Documento |
query Parameters
signer_id required | string Example: signer_id=51319186-a4a0-4497-a3c9-ebdbdaca0159 Id del firmante que se desea quitar del documento |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": "Ok"
}
Duplicar un documento existente creado desde un archivo
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El id para Identificar el Documento a duplicar |
Request Body schema: application/json
Una petición application/json para duplicar un documento
duplicate_signers | boolean Indica si se deben duplicar los firmantes del documento original |
document_name | string Nombre del nuevo documento duplicado |
send_email | boolean Indica si se debe enviar un email a los firmantes del documento duplicado |
expires_in | integer Tiempo en minutos que durarán los tokens vinculados a los firmantes del documento duplicado |
callback_url | string URL a la que se enviará una notificación cuando el documento sea firmado |
autosigning | boolean Indica si el documento debe ser firmado automáticamente por los firmantes |
Responses
Request samples
- Payload
{- "duplicate_signers": true,
- "document_name": "Documento Duplicado",
- "send_email": true,
- "expires_in": 15,
- "autosigning": false
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "signersDuplicated": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false
}
], - "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
}
Obtener una lista de aprobaciones de un documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string",
- "approvals": [
- {
- "id": 1,
- "reviewer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_type": "App\\Models\\Document",
- "status": "approved",
- "comment": "Aprobado sin cambios",
- "metadata": null,
- "approved_at": "2021-07-29T18:29:05.000000Z",
- "rejected_at": null,
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z",
- "reviewer": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Revisor de prueba",
- "email": "revisor@ejemplo.com",
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
]
}
]
}
Enviar solicitudes de aprobación para un documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El id para Identificar el Documento |
Request Body schema: application/json
Una petición application/json para enviar solicitudes de aprobación
time_to_approve | integer Tiempo en minutos que el revisor tiene para aprobar el documento |
reset_approvals | boolean Indica si se deben reiniciar las aprobaciones existentes |
Responses
Request samples
- Payload
{- "time_to_approve": 86400,
- "reset_approvals": false
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "message": "Approval requests sent successfully",
- "reviewers_count": 5
}
}
Apartado para el manejo de los valores que toman los campos a llenar de un template para un documento en específico
Obtener una lista de elementos de documentos
Authorizations:
query Parameters
document_id | string Example: document_id=51319186-a4a0-4497-a3c9-ebdbdaca0159 |
Responses
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "value": "Texto ejemplo",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z"
}
]
}
}
Crear un nuevo elemento de documento
Authorizations:
Request Body schema: multipart/form-data
Una petición multipart/form-data para crear un elemento de documento
template_element_id | string El ID del elemento del template relacionado |
document_id | string El ID del documento relacionado |
value | string <binary> La imagen a insertar en el documento |
Responses
Response samples
- 201
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "value": "Texto ejemplo",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z"
}
}
Obtener los detalles de un elemento de documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del elemento de documento |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "value": "Texto ejemplo",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z"
}
}
Actualizar un elemento de documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del elemento de documento |
Request Body schema: application/json
Una petición application/json para actualizar un elemento de documento
template_element_id | string El ID del elemento del template relacionado |
document_id | string El ID del documento relacionado |
value | string <binary> La imagen a insertar en el documento |
Responses
Request samples
- Payload
{- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "value": "Texto ejemplo"
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "value": "Texto ejemplo",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z"
}
}
En este apartado se pueden modificar los elementos del historial de eventos que aparecen en la hoja extra de los documentos certificados con NOM 151, estos pueden incluir texto acompañado de imágenes para una mejor interpretación.
Obtener los eventos del documento
Authorizations:
query Parameters
document_id | string Example: document_id=51319186-a4a0-4497-a3c9-ebdbdaca0159 Id del documento de los eventos |
Responses
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "next_page_url": null,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "description": "Validación ine",
- "event_timestamp": "2021-03-10T19:57:06.000000Z",
- "created_at": "2021-03-10T19:57:06.000000Z",
- "updated_at": "2021-03-10T19:57:06.000000Z"
}
]
}
}
Crea un evento que aparecerá en el historial del documento
Authorizations:
Request Body schema: multipart/form-data
Una petición multipart/form-data para crear eventos con imágenes
document_id | string |
description | string |
images | Array of strings <binary> <= 3 items |
event_timestamp | string |
Responses
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "description": "Validación ine",
- "event_timestamp": "2021-03-10T19:57:06.000000Z",
- "created_at": "2021-03-10T19:57:06.000000Z",
- "updated_at": "2021-03-10T19:57:06.000000Z"
}
}
Obtener el detalle del evento solicitado
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 Id del evento |
Responses
Response samples
- 200
- 404
{- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "description": "Validación ine",
- "event_timestamp": "2021-03-10T19:57:06.000000Z",
- "created_at": "2021-03-10T19:57:06.000000Z",
- "updated_at": "2021-03-10T19:57:06.000000Z"
}
Actualiza la información de un evento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 Id del evento |
Request Body schema: application/json
Una petición application/json para actualizar un evento
document_id | string |
description | string |
event_timestamp | string |
Responses
Request samples
- Payload
{- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "description": "Validación ine",
- "event_timestamp": "2021-03-10T19:57:06.000000Z"
}
Response samples
- 200
- 400
- 404
{- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "description": "Validación ine",
- "event_timestamp": "2021-03-10T19:57:06.000000Z",
- "created_at": "2021-03-10T19:57:06.000000Z",
- "updated_at": "2021-03-10T19:57:06.000000Z"
}
En este apartado se se crean documentos a partir de PDFs ya generados, solo para que se añadan las firmas de los firmantes.
Crear un nuevo documento en base a un archivo
Authorizations:
Request Body schema: multipart/form-data
Una petición multipart/form-data para crear un documento
document_name | string |
file | string <binary> |
send_email | boolean |
autosigning | boolean Bandera que indica si se firmara con NOM 151 el documento al terminar los usuarios de firmar |
callback_url | string URL en caso de que se quiera hacer llegar el documento al terminar el firmado de NOM 151. |
expires_in | integer |
Responses
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
}
Agrega campos de firma a un documento creado desde un archivo
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El id para Identificar el Documento públicamente |
Request Body schema: application/json
Una petición application/json para crear los firmantes del documento creado desde PDF
Array of objects | |||||||||||||||||||||||||
Array
|
Responses
Request samples
- Payload
{- "signers": [
- {
- "name": "Juan Perez",
- "email": "test@test.com",
- "country": "MX",
- "state": "Ciudad de México",
- "locality": "Xochimilco",
- "organization": "Comp_Test",
- "is_fiel_signature": false,
- "password": "123456",
- "include_name_in_signature": false,
- "expires_in": 15,
- "external_person_id": null,
- "meta_signs": [
- {
- "page": 1,
- "is_default": false,
- "top": 20,
- "left": 20,
- "width": 50,
- "height": 20
}
]
}
]
}
Response samples
- 200
- 400
{- "success": true,
- "result": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Signer",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "token": "126|O0mzWkpVauNj6kXy3HFBvwa7mJnfDAqKZCF4sCFL",
- "expiration_date": "2021-04-07T15:14:19.000000Z"
}
]
}
Verifica que un documento haya sido firmado
Authorizations:
Request Body schema: multipart/form-data
Una petición multipart/form-data con el documento a validar
file | string <binary> Archivo PDF a verificar |
file_tmp_id | string <uuid> Uuid del archivo si se subio con el api de archivos temporales |
sha256 | string <sha256> |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "match": true,
- "hash": "f65cf09147392b539fd7fb12d6d8c2b6ffd3f403166e577bcfa04ec9fe0aadde",
- "timestamp_info": "signer cert serial number: 2A\r\nsigner cert issuer: L=Alvaro Obregon,ST=Ciudad de Mexico,C=MX,PostalCode=01030,STREET=Insurgentes Sur 1940\\, Col. Florida,CN=Autoridad Certificadora Raiz Segunda de Secretaria de Economia,OU=Direccion General de Normatividad Mercantil,O=Secretaria de Economia,E=acr2se@economia.gob.mx\r\ngenTime: 2021-08-24T21:28:57Z\r\ncertificates count: 1\r\nall certificates: EMAILADDRESS=acedicommx@edicomgroup.com, O=Edicomunicaciones Mexico S.A. de C.V., OU=TSA, CN=TSAEDICOMMX, STREET=Avda. Paseo de la Reforma 483 Pisos 25-27 Cuauhtemoc, OID.2.5.4.17=06500, C=MX, ST=Ciudad de Mexico, L=Cuauhtemoc; SKI=c2c859d69b38a1c13aa1bdab038e60bb32300210\r\nembedded certificate: EMAILADDRESS=acedicommx@edicomgroup.com, O=Edicomunicaciones Mexico S.A. de C.V., OU=TSA, CN=TSAEDICOMMX, STREET=Avda. Paseo de la Reforma 483 Pisos 25-27 Cuauhtemoc, OID.2.5.4.17=06500, C=MX, ST=Ciudad de Mexico, L=Cuauhtemoc; SKI=c2c859d69b38a1c13aa1bdab038e60bb32300210\r\nadding to certificate chain: EMAILADDRESS=acedicommx@edicomgroup.com, O=Edicomunicaciones Mexico S.A. de C.V., OU=TSA, CN=TSAEDICOMMX, STREET=Avda. Paseo de la Reforma 483 Pisos 25-27 Cuauhtemoc, OID.2.5.4.17=06500, C=MX, ST=Ciudad de Mexico, L=Cuauhtemoc\r\n1.2.840.113549.1.9.4=<Set oid='1.2.840.113549.1.9.4' name='pkcs9_messageDigest'></Set>\r\n1.2.840.113549.1.9.3=<Set oid='1.2.840.113549.1.9.3' name='pkcs9_contentType'></Set>\r\n1.2.840.113549.1.9.52=<Set oid='1.2.840.113549.1.9.52'></Set>\r\n1.2.840.113549.1.9.5=<Set oid='1.2.840.113549.1.9.5' name='pkcs9_signingTime'></Set>\r\n1.2.840.113549.1.9.16.2.47=<Set oid='1.2.840.113549.1.9.16.2.47' name='id_aa_signingCertificateV2'></Set>\r\n",
- "document": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
}
}
Firma un documento con la NOM 151
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del documento |
Responses
Response samples
- 200
- 400
- 404
{- "success": true,
- "result": {
- "asn1_base64": "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"
}
}
Agrega la firma digital de este firmante al documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante |
Request Body schema: multipart/form-data
Una petición application/json para crear la firma
value | string <binary> La imagen a insertar en el documento, formatos aceptados png,jpg,jpeg,svg |
password | string Clave para del certificado del usuario |
Responses
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false
}
}
Firmar con FIEL
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante |
Request Body schema: multipart/form-data
password | string Contraseña de la FIEL |
cer | string <binary> Archivo .cer de la FIEL |
key | string <binary> Archivo .key de la FIEL |
message | string <html> Mensaje custom que aparecera junto a los detalles de la firma |
Responses
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false
}
}
En este apartado se manejan los firmantes para cada documento así como la creación de token para el uso de los accesos públicos
Obtener una lista de todos los firmantes registrados
Authorizations:
query Parameters
document_id | string Example: document_id=51319186-a4a0-4497-a3c9-ebdbdaca0159 |
is_permanent | string Enum: "true" "false" Filtrar los firmantes si son permanentes o temporales |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false,
- "fillable_elements": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filled_at": "2021-08-04T15:14:56.000000Z",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z"
}
]
}
]
}
}
Crea un nuevo firmante para un documento
Authorizations:
Request Body schema: application/json
Una petición application/json para crear un firmante
document_id | string Identificador del documento relacionado al firmante if null se creara un firmante permanente |
name | string |
string | |
password | string Contraseña para proteger el certificado de la firma digital |
expires_in | integer Tiempo en minutos que durarán los tokens vinculados a este firmante |
public_key | string Clave pública de la wallet (Eclipse Network) del firmante, para realizar o recibir endosos |
country | string = 2 characters |
state | string |
locality | string |
organization | string |
person_id | string <uuid> Id de una persona registrada en la plataforma people vinculada al mismo cliente, en caso de estar presente se tomaran los datos de nombre y email de la misma, en caso de estar dispinibles. |
external_person_id | string |
only_digital_signature | boolean true en caso de que la firma autografa no se ponga en el documento |
include_name_in_signature | boolean true en caso de que el nombre del firmante se incluya en la firma |
is_fiel_signature | boolean true si la forma de firmar para este firmante es con FIEL |
elements | Array of strings Arreglo de elementos que el firmante debe firmar |
Responses
Request samples
- Payload
{- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "password": "12345",
- "expires_in": 15,
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "country": "MX",
- "state": "México City",
- "locality": "Iztapalapa",
- "organization": "rem-tools",
- "person_id": "51234686-a4a0-4497-a3c9-ebdbdaca0159",
- "external_person_id": "1a3sd51fsd32g1sdg5",
- "only_digital_signature": false,
- "include_name_in_signature": false,
- "is_fiel_signature": false,
- "elements": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "78932121-c7b0-4497-c9c4-abdfcaca9874"
]
}
Response samples
- 201
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false,
- "fillable_elements": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filled_at": "2021-08-04T15:14:56.000000Z",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z"
}
]
}
}
Obtener una lista de todos los firmantes con el id externo
Authorizations:
query Parameters
external_id required | string Example: external_id=lsdgbsjdfnpqwe |
Responses
Response samples
- 200
{- "success": true,
- "result": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false,
- "document": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
}
]
}
Obtener una lista de todos los firmantes con el id externo
Authorizations:
query Parameters
external_id required | string Example: external_id=lsdgbsjdfnpqwe |
Responses
Response samples
- 200
{- "success": true,
- "result": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false,
- "document": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
}
]
}
Obtener los detalles de un firmante
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false,
- "document": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
}
]
}
Actualiza los detalles de un firmante
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante |
Request Body schema: application/json
name | string Nombre del firmante |
string | |
expires_in | integer Tiempo en minutos que durarán los tokens vinculados a este firmante |
public_key | string Clave pública de la wallet (Eclipse Network) del firmante, para realizar o recibir endosos |
Responses
Request samples
- Payload
{- "name": "Test Firmante",
- "email": "test@example.com",
- "expires_in": 15,
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3"
}
Response samples
- 200
- 400
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false
}
}
Obtiene los documentos de los firmantes permanentes
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante permanente |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "next_page_url": null,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}
]
}
}
Crea un token de acceso público para este firmante
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false,
- "token": "125|Nghx5nhUndSnCjQVQqNd4iKeTfaxbg86mBpSktKS",
- "expiration_token": "2021-08-04T15:14:56.000000Z",
- "fillable_elements": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filled_at": "2021-08-04T15:14:56.000000Z",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z"
}
]
}
}
Agrega la firma digital de este firmante al documento
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante |
Request Body schema: multipart/form-data
Una petición application/json para crear la firma
value | string <binary> La imagen a insertar en el documento, formatos aceptados png,jpg,jpeg,svg |
password | string Clave para del certificado del usuario |
Responses
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false
}
}
Firmar con FIEL
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante |
Request Body schema: multipart/form-data
password | string Contraseña de la FIEL |
cer | string <binary> Archivo .cer de la FIEL |
key | string <binary> Archivo .key de la FIEL |
message | string <html> Mensaje custom que aparecera junto a los detalles de la firma |
Responses
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false
}
}
Firmar un endoso
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante |
Request Body schema: multipart/form-data
Una petición application/json para endosar un firmante
endorsement_id | string Id del endoso que se desea aplicar al firmante |
wallet_private_key | string Clave privada de la wallet del firmante |
fiel_password | string Clave de la FIEL del firmante |
cer | string <binary> Archivo .cer de la FIEL del firmante |
key | string <binary> Archivo .key de la FIEL del firmante |
message | string <html> Mensaje custom que aparecera junto a los detalles de la firma |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Endoso de prueba",
- "type": "Endoso de prueba",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "auto_certify": false,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "original_document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "status": "pending",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "certified_at": "2021-07-29T18:29:05.000000Z",
- "blockchain_metadata": null,
- "certificate_base64": "MIIC..."
}
}
En este apartado se manejan los revisores para cada documento, estos pueden ser asignados a un documento para que puedan aprobarlo o rechazarlo, así como el tiempo que tienen para aprobarlo.
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Revisor de prueba",
- "email": "revisor@ejemplo.com",
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
]
}
}
Crea un nuevo revisor
Authorizations:
Request Body schema: application/json
Una petición application/json para crear un revisor
name | string |
string | |
type | string Enum: "document" "endorsement" (Opcional) Tipo de revisor, puede ser document o endorsement |
reviewable_id | string (Opcional) Id del documento o endoso que el revisor revisará |
Responses
Request samples
- Payload
{- "name": "Test Revisor",
- "email": "test.revisor@example.com",
- "type": "document",
- "reviewable_id": "12345678-1234-1234-1234-123456789012"
}
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Revisor de prueba",
- "email": "revisor@ejemplo.com",
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
Obtener los detalles de un revisor
Authorizations:
path Parameters
id required | string Example: 12345678-1234-1234-1234-123456789012 El ID del revisor |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Revisor de prueba",
- "email": "revisor@ejemplo.com",
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
Actualiza los detalles de un revisor
Authorizations:
path Parameters
id required | string Example: 12345678-1234-1234-1234-123456789012 El ID del revisor |
Request Body schema: application/json
Una petición application/json para actualizar un revisor
name | string |
string <email> [ 5 .. 100 ] characters |
Responses
Request samples
- Payload
{- "name": "Test Revisor Actualizado",
- "email": "test.revisor@ejemplo.com"
}
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Revisor de prueba",
- "email": "revisor@ejemplo.com",
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
Agrega un revisor a un documento
Authorizations:
path Parameters
id required | string Example: 12345678-1234-1234-1234-123456789012 El ID del revisor |
Request Body schema: application/json
Una petición application/json para agregar un revisor a un documento
document_id | string Id del documento al que se agregará el revisor |
Responses
Request samples
- Payload
{- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159"
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": 1,
- "reviewer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_type": "App\\Models\\Document",
- "status": "approved",
- "comment": "Aprobado sin cambios",
- "metadata": null,
- "approved_at": "2021-07-29T18:29:05.000000Z",
- "rejected_at": null,
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
Elimina un revisor de un documento
Authorizations:
path Parameters
id required | string Example: 12345678-1234-1234-1234-123456789012 El ID del revisor |
Request Body schema: application/json
Una petición application/json para eliminar un revisor de un documento
document_id | string Id del documento del que se eliminará el revisor |
Responses
Request samples
- Payload
{- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159"
}
Response samples
- 200
- 404
{- "success": true,
- "result": "Ok"
}
Agrega un revisor a una aprobación de endoso
Authorizations:
path Parameters
id required | string Example: 12345678-1234-1234-1234-123456789012 El ID del revisor |
Request Body schema: application/json
Una petición application/json para agregar un revisor a una aprobación de endoso
endorsement_id | string Id del endoso al que se agregará el revisor |
Responses
Request samples
- Payload
{- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159"
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": 1,
- "reviewer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_type": "App\\Models\\Document",
- "status": "approved",
- "comment": "Aprobado sin cambios",
- "metadata": null,
- "approved_at": "2021-07-29T18:29:05.000000Z",
- "rejected_at": null,
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
Elimina un revisor de una aprobación de endoso
Authorizations:
path Parameters
id required | string Example: 12345678-1234-1234-1234-123456789012 El ID del revisor |
Request Body schema: application/json
Una petición application/json para eliminar un revisor de una aprobación de endoso
endorsement_id | string Id del endoso del que se eliminará el revisor |
Responses
Request samples
- Payload
{- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159"
}
Response samples
- 200
- 404
{- "success": true,
- "result": "Ok"
}
Envía una solicitud de aprobación a un revisor
Authorizations:
path Parameters
id required | string Example: 12345678-1234-1234-1234-123456789012 El ID del revisor |
Request Body schema: application/json
Una petición application/json para enviar una solicitud de aprobación al revisor
time_to_approve | integer Tiempo en minutos que el revisor tiene para aprobar el documento |
Responses
Request samples
- Payload
{- "time_to_approve": 86400
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": 1,
- "reviewer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_type": "App\\Models\\Document",
- "status": "approved",
- "comment": "Aprobado sin cambios",
- "metadata": null,
- "approved_at": "2021-07-29T18:29:05.000000Z",
- "rejected_at": null,
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
En este apartado se sellan documentos solo con los certificados y no se almacena ningún archivo de los documentos sellados, solo se guardan los datos referentes a los certificados y los hash de los documentos
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filename": "Contrato_prueba.pdf",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "asn1_base64": "string",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "created_at": "2021-07-29T18:29:03.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
]
}
}
Genera un documento sellado con NOM 151 y certificados digitales para cada firmante
Authorizations:
Request Body schema: multipart/form-data
Una petición multipart/form-data para sellar un archivo con NOM 151
file | string <binary> Archivo que se desea firmar |
file_tmp_id | string <uuid> Uuid del archivo si se subio con el api de archivos temporales |
Array of objects Firmantes de este documento |
Responses
Response samples
- 400
{- "success": false,
- "error": {
- "file": [
- "The file field is required"
]
}
}
Crea una constancia de NOM 151 para el sha256 de la peticion
Authorizations:
Request Body schema: application/json
sha256 | string <sha256> = 64 characters |
filename | string <= 255 characters |
Responses
Request samples
- Payload
{- "sha256": "stringstringstringstringstringstringstringstringstringstringstri",
- "filename": "string"
}
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filename": "Contrato_prueba.pdf",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "asn1_base64": "string",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "created_at": "2021-07-29T18:29:03.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
Obtener un documento correspondiente al sha256
Authorizations:
path Parameters
sha256 required | string Example: 65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9 Hash sha256 del archivo PDF |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filename": "Contrato_prueba.pdf",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "asn1_base64": "string",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "created_at": "2021-07-29T18:29:03.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
Borra un documento correspondiente al sha256
Authorizations:
path Parameters
sha256 required | string Example: 65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9 Hash sha256 del archivo PDF |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": "Ok"
}
Verifica que el documento enviado corresponda con uno registrado
Authorizations:
Request Body schema: multipart/form-data
Una petición multipart/form-data con el documento a validar
file | string <binary> Archivo que se desea validar |
file_tmp_id | string <uuid> Uuid del archivo si se subio con el api de archivos temporales |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "match": true,
- "document_hash": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "document": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filename": "Contrato_prueba.pdf",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "asn1_base64": "string",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "created_at": "2021-07-29T18:29:03.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
}
Verifica la constancia digital a partir de el sha256 del documento
Authorizations:
Request Body schema: multipart/form-data
Peticion application/json post
sha256 | string <sha256> |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "valid": true,
- "hash": "f65cf09147392b539fd7fb12d6d8c2b6ffd3f403166e577bcfa04ec9fe0aadde",
- "timestamp_info": "signer cert serial number: 2A\r\nsigner cert issuer: L=Alvaro Obregon,ST=Ciudad de Mexico,C=MX,PostalCode=01030,STREET=Insurgentes Sur 1940\\, Col. Florida,CN=Autoridad Certificadora Raiz Segunda de Secretaria de Economia,OU=Direccion General de Normatividad Mercantil,O=Secretaria de Economia,E=acr2se@economia.gob.mx\r\ngenTime: 2021-08-24T21:28:57Z\r\ncertificates count: 1\r\nall certificates: EMAILADDRESS=acedicommx@edicomgroup.com, O=Edicomunicaciones Mexico S.A. de C.V., OU=TSA, CN=TSAEDICOMMX, STREET=Avda. Paseo de la Reforma 483 Pisos 25-27 Cuauhtemoc, OID.2.5.4.17=06500, C=MX, ST=Ciudad de Mexico, L=Cuauhtemoc; SKI=c2c859d69b38a1c13aa1bdab038e60bb32300210\r\nembedded certificate: EMAILADDRESS=acedicommx@edicomgroup.com, O=Edicomunicaciones Mexico S.A. de C.V., OU=TSA, CN=TSAEDICOMMX, STREET=Avda. Paseo de la Reforma 483 Pisos 25-27 Cuauhtemoc, OID.2.5.4.17=06500, C=MX, ST=Ciudad de Mexico, L=Cuauhtemoc; SKI=c2c859d69b38a1c13aa1bdab038e60bb32300210\r\nadding to certificate chain: EMAILADDRESS=acedicommx@edicomgroup.com, O=Edicomunicaciones Mexico S.A. de C.V., OU=TSA, CN=TSAEDICOMMX, STREET=Avda. Paseo de la Reforma 483 Pisos 25-27 Cuauhtemoc, OID.2.5.4.17=06500, C=MX, ST=Ciudad de Mexico, L=Cuauhtemoc\r\n1.2.840.113549.1.9.4=<Set oid='1.2.840.113549.1.9.4' name='pkcs9_messageDigest'></Set>\r\n1.2.840.113549.1.9.3=<Set oid='1.2.840.113549.1.9.3' name='pkcs9_contentType'></Set>\r\n1.2.840.113549.1.9.52=<Set oid='1.2.840.113549.1.9.52'></Set>\r\n1.2.840.113549.1.9.5=<Set oid='1.2.840.113549.1.9.5' name='pkcs9_signingTime'></Set>\r\n1.2.840.113549.1.9.16.2.47=<Set oid='1.2.840.113549.1.9.16.2.47' name='id_aa_signingCertificateV2'></Set>\r\n",
- "document": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filename": "Contrato_prueba.pdf",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "asn1_base64": "string",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "created_at": "2021-07-29T18:29:03.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
}
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": "document",
- "status": "pending"
}
]
}
}
Crea un nuevo proceso por lotes para firmar documentos con FIEL
Authorizations:
Request Body schema: application/json
Una petición application/json para crear un proceso por lotes
name | string Nombre del proceso por lotes |
type | string Enum: "document" "endorsement" Tipo de proceso por lotes |
signer_id | string ID del firmante |
document_ids | Array of strings IDs de los documentos a procesar por lotes para el tipo de documento |
endorsement_ids | Array of strings IDs de los endosos a procesar por lotes para el tipo de endoso |
Responses
Request samples
- Payload
{- "name": "Proceso por lotes de prueba",
- "type": "batch_process_type",
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_ids": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
], - "endorsement_ids": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
]
}
Response samples
- 201
- 422
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": "document",
- "status": "pending"
}
}
Obtener el detalle del proceso por lotes solicitado
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del proceso por lotes |
Responses
Response samples
- 200
- 404
{- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": "document",
- "status": "pending"
}
Actualiza la información de un proceso por lotes
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del proceso por lotes |
Request Body schema: application/json
Una petición application/json para actualizar un proceso por lotes
name | string Nombre del proceso por lotes |
type | string Tipo de proceso por lotes |
signer_id | string ID del firmante |
document_ids | Array of strings IDs de los documentos a procesar por lotes para el tipo de documento |
endorsement_ids | Array of strings IDs de los endosos a procesar por lotes para el tipo de endoso |
Responses
Request samples
- Payload
{- "name": "Proceso por lotes de prueba actualizado",
- "type": "batch_process_type_updated",
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_ids": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
], - "endorsement_ids": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
]
}
Response samples
- 200
- 404
- 422
{- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": "document",
- "status": "pending"
}
Procesa un proceso por lotes
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del proceso por lotes |
Request Body schema: multipart/form-data
wallet_private_key | string <binary> Clave privada de la wallet para firmar endosos |
fiel_password | string Clave de la FIEL del firmante |
cer | string <binary> Archivo .cer de la FIEL del firmante |
key | string <binary> Archivo .key de la FIEL del firmante |
message | string <html> Mensaje custom que aparecera junto a los detalles de la firma |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "status": "processing",
- "completed": {
- "count": 10,
- "documents": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
]
}, - "errors": [
- {
- "message": "Error al procesar el documento 51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "code": 701
}
]
}
}
Descarga un proceso por lotes en formato PDF
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del proceso por lotes |
Request Body schema: application/json
string Correo electrónico del usuario que solicita la descarga |
Responses
Request samples
- Payload
{- "email": "test@example.com"
}
Response samples
- 200
- 404
{- "success": true,
- "result": "Creating zip file in background, you will receive an email when it is ready"
}
Agrega la firma del firmante al documento
Authorizations:
Request Body schema: multipart/form-data
Una petición multipart/form-data para crear la firma
value | string <binary> La imagen a insertar en el documento, formatos aceptados png,jpg,jpeg,svg |
finish | boolean Caduca el token público, 0 o 1 |
password | string Clave para del certificado del usuario |
Responses
Response samples
- 201
- 403
{- "success": true,
- "result": "Ok"
}
Firmar publicamente con la FIEL del firmante
Authorizations:
Request Body schema: multipart/form-data
Una petición multipart/form-data para crear la firma FIEL
password | string Contraseña de la FIEL del firmante |
cer | string <binary> Archivo .cer que es parte de la FIEL |
key | string <binary> Archivo .key que es parte de la FIEL |
message | string Mensaje que acompaña la fecha en que se firmo el documento en el historial de eventos, no requerido |
Responses
Response samples
- 200
- 400
- 403
{- "success": true,
- "result": "Ok"
}
Obtiene la información del documento para el firmante
Authorizations:
Responses
Response samples
- 200
- 403
{- "success": true,
- "result": {
- "document": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string"
}, - "sign_elements": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filled_at": "2021-08-04T15:14:56.000000Z",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z"
}
]
}
}
Adjunta archivos a un documento
Authorizations:
Request Body schema: application/json
Una petición application/json con un arreglo de URLs
urls | Array of strings |
paths | Array of strings |
collection | string |
Responses
Request samples
- Payload
{- "paths": [
- "/path/to/file.jpg"
], - "collection": "ine"
}
Response samples
- 200
- 400
- 403
{- "success": true,
- "result": "Files saved"
}
Crea un firmante para este documento con un token para acceso público
Authorizations:
Request Body schema: application/json
Una petición application/json para crear un firmante
name | string |
string | |
password | string Contraseña para proteger el certificado de la firma digital |
country | string = 2 characters |
state | string |
locality | string |
organization | string |
external_person_id | string |
expires_in | integer Tiempo de expiración en minutos de los token vinculados, si es 0 no expiran |
metadata | object |
elements | Array of strings |
Responses
Request samples
- Payload
{- "name": "Test Firmante",
- "email": "test@example.com",
- "password": "12345",
- "country": "MX",
- "state": "México City",
- "locality": "Iztapalapa",
- "organization": "rem-tools",
- "external_person_id": "1a3sd51fsd32g1sdg5",
- "expires_in": 15,
- "metadata": null,
- "elements": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "78932121-c7b0-4497-c9c4-abdfcaca9874"
]
}
Response samples
- 200
- 400
- 403
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false,
- "fillable_elements": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_element_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "filled_at": "2021-08-04T15:14:56.000000Z",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z"
}
]
}
}
Documento terminado Webhook
Webhook que se envia cuando se ha configurado el autosigning y callback_url en la creación del documento
Request Body schema: application/json
Una petición application/json con la información del documento firmado
resource | string Tipo de recurso |
event | string Tipo de evento |
resource_id | string Identificador del recurso |
Document (object) or Document (object) (Document) Información del evento |
Responses
Request samples
- Payload
{- "resource": "Document",
- "event": "Finish",
- "resource_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "payload": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "template_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Documento ejemplo",
- "send_email": false,
- "autosigning": false,
- "expires_in": 15,
- "from_file": false,
- "created_at": "2021-02-26T01:06:59.000000Z",
- "updated_at": "2021-02-26T01:06:59.000000Z",
- "last_generated_at": "2021-02-26T01:06:59.000000Z",
- "signed_at": null,
- "fiel_sign_started_at": "2021-02-26T01:06:59.000000Z",
- "fiel_doc_hash": "string",
- "asn1_base64": "string",
- "sha256": "string",
- "signers": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false
}
], - "template": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test",
- "description": "Template test",
- "pages": 5,
- "created_at": "2021-03-10T00:09:30.000000Z",
- "updated_at": "2021-03-10T00:09:30.000000Z"
}
}
}
Firmante ha firmado Webhook
Webhook que se envia cuando se ha configurado el callback_url y un firmante ha firmado de manera pública con el parámetro finish igual a 1
Request Body schema: application/json
Una petición application/json con la información del firmante
resource | string Tipo de recurso |
event | string Tipo de evento |
resource_id | string Identificador del recurso |
Temporary Signer (object) or Permanent Signer (object) Información del evento |
Responses
Request samples
- Payload
{- "resource": "Signer",
- "event": "Sign",
- "resource_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "payload": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Test Firmante",
- "email": "test@example.com",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "created_at": "2021-04-07T15:14:19.000000Z",
- "updated_at": "2021-04-07T15:14:19.000000Z",
- "signed_at": "2021-04-07T15:14:19.000000Z",
- "person_id": "51456456-a4a0-4497-a3c9-ebdbdaca0159",
- "public_key": "sd123cb1x3c2b1n3vb2m1v32b1mv3213cb8m312m1bn3",
- "external_person_id": null,
- "include_name_in_signature": false,
- "expires_in": 15,
- "metadata": null,
- "is_fiel_signature": false,
- "is_permanent": false
}
}
En este apartado se pueden crear los endosos para los documentos, para que estos puedan ser transmitidos a otras personas o empresas, así como la creación de un token en blockchain para la verificación de estos endosos.
Firmar un endoso
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 El ID del firmante |
Request Body schema: multipart/form-data
Una petición application/json para endosar un firmante
endorsement_id | string Id del endoso que se desea aplicar al firmante |
wallet_private_key | string Clave privada de la wallet del firmante |
fiel_password | string Clave de la FIEL del firmante |
cer | string <binary> Archivo .cer de la FIEL del firmante |
key | string <binary> Archivo .key de la FIEL del firmante |
message | string <html> Mensaje custom que aparecera junto a los detalles de la firma |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Endoso de prueba",
- "type": "Endoso de prueba",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "auto_certify": false,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "original_document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "status": "pending",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "certified_at": "2021-07-29T18:29:05.000000Z",
- "blockchain_metadata": null,
- "certificate_base64": "MIIC..."
}
}
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Endoso de prueba",
- "type": "Endoso de prueba",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "auto_certify": false,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "original_document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "status": "pending",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "certified_at": "2021-07-29T18:29:05.000000Z",
- "blockchain_metadata": null,
- "certificate_base64": "MIIC..."
}
]
}
}
Crea un endoso
Authorizations:
Request Body schema: application/json
Una petición application/json para crear un endoso
name | string Nombre del endoso |
type | string Enum: "guarantee" "collection" "ownership" Tipo de endoso |
auto_certify | boolean Indica si el endoso se certifica automáticamente |
signer_id | string ID del firmante |
document_id | string ID del documento al que se le aplicará el endoso |
endorsement_id | string ID del endoso al que se le aplicará el endoso |
endorsee_id | string ID del endosatario (Signer) |
Responses
Request samples
- Payload
{- "name": "Endoso de prueba",
- "type": "guarantee",
- "auto_certify": true,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159"
}
Response samples
- 201
- 422
{- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Endoso de prueba",
- "type": "Endoso de prueba",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "auto_certify": false,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "original_document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "status": "pending",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "certified_at": "2021-07-29T18:29:05.000000Z",
- "blockchain_metadata": null,
- "certificate_base64": "MIIC..."
}
Obtener el detalle del endoso solicitado
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del endoso |
Responses
Response samples
- 200
- 404
{- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Endoso de prueba",
- "type": "Endoso de prueba",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "auto_certify": false,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "original_document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "status": "pending",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "certified_at": "2021-07-29T18:29:05.000000Z",
- "blockchain_metadata": null,
- "certificate_base64": "MIIC..."
}
Actualiza la información de un endoso
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del endoso |
Request Body schema: application/json
Una petición application/json para actualizar un endoso
name | string Nombre del endoso |
type | string Tipo de endoso |
auto_certify | boolean Indica si el endoso se certifica automáticamente |
signer_id | string ID del firmante |
document_id | string ID del documento al que se le aplicará el endoso |
endorsement_id | string ID del endoso al que se le aplicará el endoso |
endorsee_name | string Nombre del endosatario |
endorsee_public_id | string ID público del endosatario CURP o RFC |
endorsee_public_key | string Clave pública del endosatario |
endorsee_contact | string Información de contacto del endosatario |
Responses
Request samples
- Payload
{- "name": "Endoso de prueba actualizado",
- "type": "endorsement_updated",
- "auto_certify": false,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_name": "Endosatario de prueba actualizado",
- "endorsee_public_id": "XAXX010101HNEXXXA",
- "endorsee_public_key": "as4cv1d25v15xdv1x32b1c5b1dfb32n1gf58mg1h32m1gh8k4g2sd3vgsdg523sd1g8",
- "endorsee_contact": "test@example.com"
}
Response samples
- 200
- 404
- 422
{- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Endoso de prueba",
- "type": "Endoso de prueba",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "auto_certify": false,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "original_document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "status": "pending",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "certified_at": "2021-07-29T18:29:05.000000Z",
- "blockchain_metadata": null,
- "certificate_base64": "MIIC..."
}
Certifica un endoso
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del endoso |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Endoso de prueba",
- "type": "Endoso de prueba",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "auto_certify": false,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "original_document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "status": "pending",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "certified_at": "2021-07-29T18:29:05.000000Z",
- "blockchain_metadata": null,
- "certificate_base64": "MIIC..."
}
}
Obtener las aprobaciones de un endoso
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del endoso |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Endoso de prueba",
- "type": "Endoso de prueba",
- "sha256": "65f45505a560f8aefbfc0ac31ffcddab1183b144b607df41c7b3c3424c05d4e9",
- "auto_certify": false,
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsement_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "original_document_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "endorsee_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "status": "pending",
- "metadata": null,
- "signed_at": "2021-07-29T18:29:05.000000Z",
- "certified_at": "2021-07-29T18:29:05.000000Z",
- "blockchain_metadata": null,
- "certificate_base64": "MIIC...",
- "approvals": [
- {
- "id": 1,
- "reviewer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "approvalable_type": "App\\Models\\Document",
- "status": "approved",
- "comment": "Aprobado sin cambios",
- "metadata": null,
- "approved_at": "2021-07-29T18:29:05.000000Z",
- "rejected_at": null,
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z",
- "reviewer": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "name": "Revisor de prueba",
- "email": "revisor@ejemplo.com",
- "created_at": "2021-07-29T18:29:05.000000Z",
- "updated_at": "2021-07-29T18:29:05.000000Z"
}
}
]
}
]
}
Envía una solicitud de aprobación para un endoso
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del endoso |
Request Body schema: application/json
Una petición application/json para enviar solicitudes de aprobación
time_to_approve | integer Tiempo en minutos que el revisor tiene para aprobar el documento |
reset_approvals | boolean Indica si se deben reiniciar las aprobaciones existentes |
Responses
Request samples
- Payload
{- "time_to_approve": 86400,
- "reset_approvals": false
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "message": "Solicitud de aprobación enviada con éxito",
- "reviewers_count": 3
}
}
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "from": 1,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "data": [
- {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": "document",
- "status": "pending"
}
]
}
}
Crea un nuevo proceso por lotes para firmar documentos con FIEL
Authorizations:
Request Body schema: application/json
Una petición application/json para crear un proceso por lotes
name | string Nombre del proceso por lotes |
type | string Enum: "document" "endorsement" Tipo de proceso por lotes |
signer_id | string ID del firmante |
document_ids | Array of strings IDs de los documentos a procesar por lotes para el tipo de documento |
endorsement_ids | Array of strings IDs de los endosos a procesar por lotes para el tipo de endoso |
Responses
Request samples
- Payload
{- "name": "Proceso por lotes de prueba",
- "type": "batch_process_type",
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_ids": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
], - "endorsement_ids": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
]
}
Response samples
- 201
- 422
{- "success": true,
- "result": {
- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": "document",
- "status": "pending"
}
}
Obtener el detalle del proceso por lotes solicitado
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del proceso por lotes |
Responses
Response samples
- 200
- 404
{- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": "document",
- "status": "pending"
}
Actualiza la información de un proceso por lotes
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del proceso por lotes |
Request Body schema: application/json
Una petición application/json para actualizar un proceso por lotes
name | string Nombre del proceso por lotes |
type | string Tipo de proceso por lotes |
signer_id | string ID del firmante |
document_ids | Array of strings IDs de los documentos a procesar por lotes para el tipo de documento |
endorsement_ids | Array of strings IDs de los endosos a procesar por lotes para el tipo de endoso |
Responses
Request samples
- Payload
{- "name": "Proceso por lotes de prueba actualizado",
- "type": "batch_process_type_updated",
- "signer_id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "document_ids": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
], - "endorsement_ids": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
]
}
Response samples
- 200
- 404
- 422
{- "id": "51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "type": "document",
- "status": "pending"
}
Procesa un proceso por lotes
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del proceso por lotes |
Request Body schema: multipart/form-data
wallet_private_key | string <binary> Clave privada de la wallet para firmar endosos |
fiel_password | string Clave de la FIEL del firmante |
cer | string <binary> Archivo .cer de la FIEL del firmante |
key | string <binary> Archivo .key de la FIEL del firmante |
message | string <html> Mensaje custom que aparecera junto a los detalles de la firma |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "status": "processing",
- "completed": {
- "count": 10,
- "documents": [
- "51319186-a4a0-4497-a3c9-ebdbdaca0159"
]
}, - "errors": [
- {
- "message": "Error al procesar el documento 51319186-a4a0-4497-a3c9-ebdbdaca0159",
- "code": 701
}
]
}
}
Descarga un proceso por lotes en formato PDF
Authorizations:
path Parameters
id required | string Example: 51319186-a4a0-4497-a3c9-ebdbdaca0159 ID del proceso por lotes |
Request Body schema: application/json
string Correo electrónico del usuario que solicita la descarga |
Responses
Request samples
- Payload
{- "email": "test@example.com"
}
Response samples
- 200
- 404
{- "success": true,
- "result": "Creating zip file in background, you will receive an email when it is ready"
}