Skip to content

List branches (sucursales) for the tenant

GET
/v1/tenants/{tenantId}/branches
curl --request GET \
--url https://api.emite.cr/v1/tenants/example/branches \
--header 'Authorization: Bearer <token>'

Each branch has a 3-digit code (001, 002, ...) that prefixes the invoice consecutivo. Casa Matriz 001 is created automatically at onboarding (/setup).

tenantId
required
string

Tenant UUID.

Media typeapplication/json
Array<object>
object
id
required

Id of the branch — the {branchId} of the branch and terminal routes.

string format: uuid
code
required

Branch number, 3 digits: the first three digits of every consecutivo issued from it, and the branchCode a document names to be issued from it. Fixed once created.

string
name
required

Name of the branch, for the app and the API; documents do not show it.

string
isDefault
required

Whether it is the company's default branch — the one a document uses when it names no branchCode. At most one branch is the default; with none, creating a document that names no branch answers 412 TENANT_NOT_CONFIGURED.

boolean
Example
[
{
"code": "001",
"name": "Casa Matriz"
}
]

Missing or invalid JWT / API key

Tenant boundary violation or insufficient scope.