Listar un catálogo
GET
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.
header
AuthorizationBearer <token>An API key from the dashboard (/keys), cdc_….
name*stringThe SAT catalog, such as c_UsoCFDI or RegimenFiscal; the c_ prefix is optional.
Longitud
1 <= length <= 64q?stringWords 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.
Longitud
1 <= length <= 200limit?integerHow many entries to return; 10 by default.
Rango
1 <= value <= 50The catalog; with q, the matching entries.
application/json- response
data*|meta*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"
}
}