Certificados

Lista tus certificados

get/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

Query parameters

fromstring

Fecha inicial

tostring

Fecha final

statusstring

Estados de los certificados a consultar: draft, processing, issued, revoked, rejected o expired

Response

OK

objectstring required

Tipo de objeto

countnumber double required

Total de objetos consultados.

limitnumber double required

Límite de cantidad de objetos a consultas. El límite predeterminado es 25.

offsetnumber double required

Offset de consulta.

totalnumber double required

Total de objetos en la lista.

Example response

{
  "object": "list",
  "data": [
    {
      "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"
      }
    }
  ],
  "count": 1,
  "limit": 25,
  "total": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.