Skip to content

List parties (customers and/or suppliers) for the tenant

GET
/v1/tenants/{tenantId}/parties
curl --request GET \
--url 'https://api.emite.cr/v1/tenants/example/parties?role=customer&search=roble&limit=50&offset=0' \
--header 'Authorization: Bearer <token>'

The company's contacts, newest first, with the total that match. role keeps only customers or suppliers (a contact can be both); search matches the legal or commercial name by its words, ignoring accents, or the start of the identification number. Paginated with limit (default 50, at most 200) and offset.

tenantId
required
string

Tenant UUID (must equal the caller's scope).

role
string
Allowed values: customer supplier both

customer: only contacts you sell to; supplier: only contacts you buy from. both, or omitting it, lists every contact (a contact can be both).

search
string
<= 100 characters
Example
roble

Matches the legal or commercial name by its words, ignoring accents and case ("mario carranza" finds "Mario Alberto Carranza Mena"), or the start of the identification number.

limit
number
default: 50 >= 1 <= 200

Page size: at most 200 (a larger value is lowered to 200).

offset
number
0

How many contacts to skip; the list goes from the newest to the oldest.

Media typeapplication/json
object
parties
required

The contacts of this page, newest first.

Array<object>
object
id
required

Id of the contact — the receiverId a document names it by.

string format: uuid
identificationType
required

Hacienda identification type: 01 cédula física, 02 cédula jurídica, 03 DIMEX, 04 NITE, 05 foreigner not domiciled, 06 non-contributor. Fixed once created.

string
Allowed values: 01 02 03 04 05 06
identificationNumber
required

Identification number, upper case and without spaces. Unique per type within the company, and fixed once created.

string
name
required

Legal name of the person or company (<Nombre>).

string
commercialName
required

Trade name (<NombreComercial>); null when it has none.

string
nullable
email
required

Email address documents carry (<CorreoElectronico>) and accepted documents are emailed to; null when it has none.

string
nullable
additionalEmails
required

More email addresses, kept for reference only; null when there are none.

Array<string>
nullable
phoneCountryCode
required

Country calling code, digits only; null when not set.

string
nullable
phoneNumber
required

Phone number, digits only; null when not set.

string
nullable
location
required

Address in Costa Rica (<Ubicacion>); null when the contact has none.

object
provincia
required

Provincia code, one digit (GET /v1/catalogs/locations).

string
canton
required

Cantón code, two digits.

string
distrito
required

Distrito code, two digits.

string
barrio
required

Neighborhood (barrio), by name; null when not set.

string
nullable
otrasSenas
required

The rest of the address, free text; null when not set.

string
nullable
otrasSenasExtranjero
required

Address abroad of a foreign (05) contact; null when not set.

string
nullable
isCustomer
required

Whether the contact can be the customer of the documents the company issues.

boolean
isSupplier
required

Whether the contact is a supplier (the counterpart of a purchase invoice, FEC).

boolean
notes
required

Internal notes; null when there are none.

string
nullable
createdAt
required

When the contact was created (a reactivation keeps the original date).

string format: date-time
updatedAt
required

When the contact last changed.

string format: date-time
total
required

How many contacts match the filters in all, ignoring limit and offset.

number
limit
required

The page size applied (the requested limit, at most 200; 50 by default).

number
offset
required

How many contacts were skipped (the requested offset; 0 by default).

number
Example
{
"parties": [
{
"identificationType": "01",
"identificationNumber": "3101234567",
"name": "Distribuidora La Nacional S.A.",
"commercialName": "La Nacional",
"email": "compras@lanacional.cr",
"additionalEmails": [
"contabilidad@lanacional.cr"
],
"phoneCountryCode": "506",
"phoneNumber": "22223333",
"location": {
"provincia": "1",
"canton": "01",
"distrito": "01",
"barrio": "Carmen",
"otrasSenas": "50 metros norte de la iglesia, edificio azul"
},
"otrasSenasExtranjero": "1234 Ocean Ave, Miami, FL 33101, USA",
"notes": "Cliente preferencial — descuento 5%"
}
],
"total": 134,
"limit": 50,
"offset": 0
}

Invalid query parameter, or tenantId not a UUID.

Missing or invalid JWT / API key

Tenant boundary violation or insufficient scope.