Skip to content

Search the CAByS catalog by free-text query

GET
/v1/cabys/search
curl --request GET \
--url 'https://api.emite.cr/v1/cabys/search?q=consultor%C3%ADa' \
--header 'Authorization: Bearer <token>'

Searches the copy of the CAByS catalog (BCCR) that EmiteCR ships, without calling Hacienda. A query of 1 to 12 digits matches the start of the code; any other query matches descriptions that contain every word of it, ignoring case and accents (words like «surtido», «combo» or «paquete» bring the surtido codes first). Results come in code order, at most top. A code missing from this copy (published very recently) is still valid: check it with GET /v1/cabys/:codigo, which asks Hacienda.

q
required
string
Example
consultoría

Search query (min 2 chars).

top
number

Max results (1-50, default 20).

Media typeapplication/json
object
items
required

Catalog entries that match the query, at most top. The search runs on the copy of the catalog EmiteCR ships for discovery, so a code published very recently can be missing; GET /v1/cabys/:codigo checks any code against Hacienda.

Array<object>
object
codigo
required

13-digit CAByS code.

string
descripcion
required

Description of the good or service as the CAByS catalog publishes it (Spanish).

string
impuesto
required

IVA rate (%) of the code: as Hacienda publishes it now in GET /v1/cabys/:codigo, and as EmiteCR's bundled copy of the catalog has it in search results.

number
Example
{
"items": [
{
"codigo": "8399000000000",
"descripcion": "Servicios de consultoría en gestión empresarial",
"impuesto": 13
}
]
}

Missing/short query or top out of range.