Consultar una clave de catálogo

GET
/v1/catalogs/{name}/{key}

Every entry of a key in a SAT catalog. Any other query parameter filters by a column, named as in the SAT's catalog (?c_CodigoPostal=01000).

Autorización

headerAuthorizationBearer <token>

An API key from the dashboard (/keys), cdc_….

Parámetros de ruta

name*string

The SAT catalog, such as c_UsoCFDI or RegimenFiscal; the c_ prefix is optional.

Longitud1 <= length <= 64
key*string

The entry's key, such as S01 or 601.

Longitud1 <= length <= 64

Respuesta

The key's entries.

application/json
  1. response
data*
meta*
Petición de ejemplo
curl -X GET 'https://codice.io/v1/catalogs/string/string'
Respuesta de ejemplo
{
  "data": {
    "catalog": "string",
    "key": "string",
    "entries": [
      {
        "fields": {
          "property1": "string",
          "property2": "string"
        },
        "validFrom": "string",
        "validUntil": "string"
      }
    ],
    "source": {
      "id": "string",
      "title": "string",
      "authority": "string",
      "url": "string",
      "sha256": "string",
      "publishedAt": "string",
      "retrievedAt": "string",
      "validFrom": "string",
      "validUntil": "string"
    }
  },
  "meta": {
    "requestId": "string"
  }
}