Listar un catálogo

GET
/v1/catalogs/{name}

A SAT catalog in the SAT's order, at most 500 entries. With q, a search of the catalog by description instead: the entries whose key or descriptions hold every word of q (or, when none does, the most of them), best first, from D1's full-text index.

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

Parámetros de consulta

q?string

Words of the entry's description, accents optional, such as servicios de consultoría (c_ClaveProdServ), kilogramo (c_ClaveUnidad) or gastos médicos (c_UsoCFDI). A key matches too.

Longitud1 <= length <= 200
limit?integer

How many entries to return; 10 by default.

Rango1 <= value <= 50

Respuesta

The catalog; with q, the matching entries.

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