Certificados
Crea un nuevo certificado
post/certificates
Request
- Base URL: https://api.datil.com (the document declares no server; this is the origin it was published from)
- URL: https://api.datil.com/certificates
- Auth: none declared
Request body
Example request
{
"type": "ec/individual",
"validity": "365",
"password": "clave-de-pruebas",
"principal": {
"first_name": "Juan",
"middle_name": "Andres",
"last_name": "Martinez",
"second_last_name": "Lopez",
"email": "prueba@prueba.com",
"mobile_phone": "0999999999",
"legal_id_type": "ec-cedula",
"legal_id": "0922288828",
"position": "Gerente General",
"tax_id_type": "ec-ruc",
"tax_id": "0922288828",
"address": {
"line_1": "Calle A",
"locality": "Lima",
"administrative_district_level_1": "Miraflores",
"administrative_district_level_2": "Lima",
"city": "Lima",
"province": "Lima",
"tax_code": "0000",
"country": "PE"
},
"selfie_photo": "abcd",
"id_service_photo": "abcd",
"ip_address": "10.0.0.1",
"user_agent": "WhatsApp",
"proof_of_id": "https://portal.com/id/12345"
},
"organization": {
"legal_name": "Empresa S.A.",
"tax_id_type": "ec-ruc",
"tax_id": "0922288828",
"address": {
"line_1": "Calle A",
"locality": "Lima",
"administrative_district_level_1": "Miraflores",
"administrative_district_level_2": "Lima",
"city": "Lima",
"province": "Lima",
"tax_code": "0000",
"country": "PE"
},
"position": "Gerente General"
}
}Response
OK
Example response
{
"id": "0ca049e5-8d05-4d65-871a-82b6bdf508f7",
"validity": 365,
"created": "2022-01-01T00:00:00Z",
"issued": "2022-01-01T00:00:00Z",
"expiry": "2025-01-01T00:00:00Z",
"serial_number": "11:22:22:22:00:22",
"principal": {
"first_name": "Juan",
"middle_name": "Andres",
"last_name": "Martinez",
"second_last_name": "Lopez",
"email": "prueba@prueba.com",
"mobile_phone": "0999999999",
"legal_id": "0922288828",
"legal_id_type": {
"type": "pe-ruc",
"code": "6",
"name": "RUC"
},
"position": "Gerente General",
"tax_id": "0922288828001",
"tax_id_type": {
"type": "pe-ruc",
"code": "6",
"name": "RUC"
},
"address": {
"line_1": "Calle A",
"locality": "Lima",
"administrative_district_level_1": "Miraflores",
"administrative_district_level_2": "Lima",
"city": "Lima",
"province": "Lima",
"tax_code": "0000",
"country": {
"code": "PE",
"name": "Perú"
}
},
"ip_address": "10.0.0.1",
"user_agent": "WhatsApp",
"proof_of_id": "https://portal.com/id/12345"
},
"status": "issued",
"organization": {
"legal_name": "Empresa S.A.",
"tax_id_type": {
"type": "pe-ruc",
"code": "6",
"name": "RUC"
},
"tax_id": "0922288828",
"address": {
"line_1": "Calle A",
"locality": "Lima",
"administrative_district_level_1": "Miraflores",
"administrative_district_level_2": "Lima",
"city": "Lima",
"province": "Lima",
"tax_code": "0000",
"country": {
"code": "PE",
"name": "Perú"
}
},
"position": "Gerente General"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.