List terminals (cajas/POS) under a branch
const url = 'https://api.emite.cr/v1/tenants/example/branches/example/terminals';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/tenants/example/branches/example/terminals \ --header 'Authorization: Bearer <token>'Each terminal has a 5-digit code (00001, 00002, ...) that follows the branch code in the invoice consecutivo. Terminal Principal 00001 is created automatically per branch at onboarding.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant UUID.
Parent branch UUID.
Responses
Section titled “Responses”object
Id of the terminal — the {terminalId} of the terminal routes.
Id of the branch the terminal belongs to.
Terminal number, 5 digits: the five digits after the branch code in every consecutivo issued from it, and the terminalCode a document names to be issued from it. Unique within its branch; fixed once created.
Name of the terminal, for the app and the API; documents do not show it.
Whether it is its branch's default terminal — the one a document of that branch uses when it names no terminalCode. At most one per branch; with none, creating a document of that branch that names no terminal answers 412 TENANT_NOT_CONFIGURED.
Example
[ { "code": "00001", "name": "Terminal Principal" }]Missing or invalid JWT / API key
Tenant boundary violation or insufficient scope.
Branch not found in the company.