Skip to content
developers

Catalogs

List document types

GET/v1/document-typesSandbox · coming soon

Base URL
Sandboxhttps://sandbox.zulu.com.co/v1
Not in production yet: it arrives with this same signature. Try it in the sandbox.

Returns the document types zulu recognizes for beneficiaries and payers, sorted by code, and which entity type uses each. Filter with entityType. PAS is accepted as an alias of PASS (passport) and is not listed on its own.

Authentication

Authorization: Bearer <access_token> (401 when missing or expired) and X-API-Key (403 when missing or not matching).

Request

Query parameters

  • entityTypestringoptional
    Only those of this entity type.

    Values

    • personNatural person (an individual).
    • companyCompany (legal entity).

Responses

  • 200Document types.

    Body
    • codestringrequired
      Document type code.
      Example: "CC"
    • namestringrequired
      Official name (in Spanish).
      Example: "Cédula de ciudadanía"
    • entityTypesarray<string>required
      Entity types that use it.
      Example: ["person"]
  • 400Invalid request: the body is not JSON, a field has another type or fails its validation.

  • 401The access token is missing, invalid or expired.

  • 403The `X-API-Key` is missing, invalid or does not match the token.

  • 429Too many requests: wait the seconds in `Retry-After`.

  • 500Internal error.

Errors

The exact causes this operation can answer, from the error catalog. Compare error and the HTTP status; the cause text is stable but meant for people.

HTTPerrorcauseDescription
400BadRequestApiErrorerror in struct validationOne or more fields fail their validation. values carries one message per field, keyed by its JSON path, naming the Go validator that failed.

Also, like every authenticated endpoint: 401 Unauthorized, 403 Forbidden, 429 Too Many Requests (with Retry-After) and 500.

Examples

Documents of people200

Request

curl "https://sandbox.zulu.com.co/v1/document-types?entityType=person" \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"

Response 200

[
  {
    "code": "CC",
    "name": "Cédula de ciudadanía",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "CD",
    "name": "Carné diplomático",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "CE",
    "name": "Cédula de extranjería",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "PASS",
    "name": "Pasaporte",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "PEP",
    "name": "Permiso Especial de Permanencia",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "PPT",
    "name": "Permiso por Protección Temporal",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "RC",
    "name": "Registro civil",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "SC",
    "name": "Salvoconducto de permanencia",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "TI",
    "name": "Tarjeta de identidad",
    "entityTypes": [
      "person"
    ]
  }
]
All200

Request

curl https://sandbox.zulu.com.co/v1/document-types \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"

Response 200

[
  {
    "code": "CC",
    "name": "Cédula de ciudadanía",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "CD",
    "name": "Carné diplomático",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "CE",
    "name": "Cédula de extranjería",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "NIT",
    "name": "Número de Identificación Tributaria (NIT)",
    "entityTypes": [
      "company"
    ]
  },
  {
    "code": "PASS",
    "name": "Pasaporte",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "PEP",
    "name": "Permiso Especial de Permanencia",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "PPT",
    "name": "Permiso por Protección Temporal",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "RC",
    "name": "Registro civil",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "SC",
    "name": "Salvoconducto de permanencia",
    "entityTypes": [
      "person"
    ]
  },
  {
    "code": "TI",
    "name": "Tarjeta de identidad",
    "entityTypes": [
      "person"
    ]
  }
]
Unknown entity type400

Request

curl "https://sandbox.zulu.com.co/v1/document-types?entityType=robot" \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"

Response 400

{
  "error": "BadRequestApiError",
  "cause": "error in struct validation",
  "values": {
    "entityType": "failed validation on the \"oneof\" tag with value required \"person company\""
  }
}