Lookup a single CAByS entry by exact 13-digit code
GET
/v1/cabys/{codigo}
const url = 'https://api.emite.cr/v1/cabys/8399000000000';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.emite.cr/v1/cabys/8399000000000 \ --header 'Authorization: Bearer <token>'Returns the description and the IVA rate Hacienda publishes for the code, read from Hacienda's CAByS service (https://api.hacienda.go.cr/fe/cabys?codigo=) and cached for one hour. For the matching IVA option (tax code, rate code, label), use GET /:codigo/suggested-iva.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”codigo
required
string
Example
839900000000013-digit CAByS code
Responses
Section titled “Responses”Media typeapplication/json
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
{ "codigo": "8399000000000", "descripcion": "Servicios de consultoría en gestión empresarial", "impuesto": 13}Code is not 13 digits.
Code unknown in Hacienda's catalog.
Hacienda's CAByS service answered an error.
Hacienda's CAByS service could not be reached.