Skip to content

Get tenant settings

GET
/v1/tenants/me/settings
curl --request GET \
--url https://api.emite.cr/v1/tenants/me/settings \
--header 'Authorization: Bearer <token>'

Returns { enabledCurrencies, defaultCurrency, notificationPreferences, formatPreferences, pdfBranding }, every value effective: a notice switch the company never set reads as its default, and every PDF branding field the company never changed is filled with the default look. Used by the web /settings/preferences and /settings/notifications pages.

Media typeapplication/json
object
enabledCurrencies
required

Currencies the company works in (ISO 4217): the ones its documents and item prices may use. At least one.

Array<string>
Allowed values: AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYR BZD CAD CDF CHE CHF CHW CLF CLP CNY COP COU CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRO MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD SSP STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UZS VEF VND VUV WST XAF XCD XDR XOF XPF XSU XUA YER ZAR ZMW ZWL
defaultCurrency
required

Currency new invoices and items start in; always one of enabledCurrencies.

string
Allowed values: AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYR BZD CAD CDF CHE CHF CHW CLF CLP CNY COP COU CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRO MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD SSP STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UZS VEF VND VUV WST XAF XCD XDR XOF XPF XSU XUA YER ZAR ZMW ZWL
notificationPreferences
required

The email and WhatsApp notice switches, every one with its effective value (a switch never written reads as its default: true, and daily for invoiceAcceptedEmisor).

object
invoiceRejected
required

Email the company's notification address when Hacienda rejects one of its documents.

boolean
invoiceTimeout
required

Email the company when Hacienda has not answered about a document in 24 hours.

boolean
invoiceError
required

Email the company when one of its documents ends in error.

boolean
recipientUndeliverable
required

Email the company when the customer's copy of an accepted document cannot be sent because the customer's email address is invalid.

boolean
invoiceAcceptedReceiver
required

Email the CUSTOMER (the receiver) each accepted document, with its PDF, signed XML and Hacienda's response. false leaves the delivery to the company.

boolean
recurringFailed
required

Email the company when a run of a recurring invoice schedule fails for good (the schedule pauses itself).

boolean
importCompleted
required

Email the company when an XML bulk-import batch finishes (it also governs the WhatsApp summary of batches that arrive through the inbound mailbox).

boolean
scheduledSendFailed
required

Email the company when the scheduled send of a draft fails (no credentials, quota exhausted, signing error…).

boolean
invoiceAcceptedEmisor
required

When the company hears that Hacienda accepted one of its documents: each (one email per document, PDF and XML attached), daily (a morning summary of the previous day, the default) or off.

string
Allowed values: each daily off
invoiceAcceptedReceiverCopyToSelf
required

Deprecated: has no effect, and the settings read always answers false.

boolean
whatsappEnabled
required

Company-wide switch for WhatsApp notifications: false silences them for every member, whatever each one chose on the phone they linked (opt-in per member, off by default).

boolean
acceptanceReminders
required

Remind the company, by email and on WhatsApp, of purchase documents whose acceptance deadline is near (3 days, 1 day and the last day of the deadline). A document left unanswered is presumed fully accepted.

boolean
fiscalReminders
required

Email the company ahead of its tax-calendar deadlines (7, 3 and 1 days before, and on the day).

boolean
archiveReminders
required

Remind the owner and the administrators, once a quarter, to download the XML backup of the documents the company issued and received in production in that quarter.

boolean
formatPreferences
required

How numbers, money and dates are written on its PDFs, emails and screens.

object
formatLocale
required

Locale that writes numbers, money and dates on the PDFs, emails and screens — independent of the language of the text. es-CR by default.

string
Allowed values: es-CR es-MX es-AR es-ES en-US en-GB pt-BR fr-FR
dateStyle
required

Length of dates, as Intl.DateTimeFormat's dateStyle in that locale. short by default.

string
Allowed values: short medium long
timeStyle
required

Clock used for times. 24h by default.

string
Allowed values: 12h 24h
currencyDisplay
required

How amounts name their currency, as Intl.NumberFormat's currencyDisplay: code (e.g. CRC), symbol, narrowSymbol (e.g. ₡, the default) or name (the currency's name).

string
Allowed values: code symbol narrowSymbol name
pdfBranding
required

The look of the company's PDFs, every field with its effective value (the default where the company changed nothing). The logo has its own endpoint.

object
accentColor
required

Accent color (#RRGGBB) of the «Total a pagar» bar and the card accents.

string
headerBandMode
required

Color of the dark surfaces (title band, header row of the lines table): accent uses accentColor, ink a neutral navy. headerBandColor overrides both.

string
Allowed values: accent ink
headerBandColor
required

Explicit #RRGGBB for those dark surfaces; null = follow headerBandMode.

string
nullable
fontFamily
required

Typeface of the whole document.

string
Allowed values: roboto lora inter montserrat opensans merriweather
logoPosition
required

Where the logo sits in the header, relative to the company's details.

string
Allowed values: left center right
logoSize
required

Box the logo is fitted into: sm 80×50 pt, md 110×70 pt, lg 140×90 pt.

string
Allowed values: sm md lg
tableDensity
required

Row padding of the lines and other-charges tables.

string
Allowed values: compact normal comfortable
tableRowStripe
required

Alternate-row striping in those tables.

boolean
showQr
required

Deprecated: always true — every fiscal document carries the Hacienda QR.

boolean
showCabys
required

Print the CAByS code under each line.

boolean
showEconomicActivity
required

Print the company's economic activity in the header.

boolean
showColonesEquivalent
required

On a foreign-currency document, print the colones equivalent (the «Total en colones» row and the exchange rate).

boolean
taglineEs
required

Tagline under the company's name on PDFs in Spanish; null = none.

string
nullable
taglineEn
required

The tagline on PDFs in English; null = none.

string
nullable
footerNoteEs
required

Note in the page footer of PDFs in Spanish, before the legal footer; null = none.

string
nullable
footerNoteEn
required

The footer note on PDFs in English; null = none.

string
nullable
thankYouEs
required

Message between the lines table and the totals on PDFs in Spanish; null = none.

string
nullable
thankYouEn
required

The thank-you message on PDFs in English; null = none.

string
nullable
watermarkTextEs
required

Faint diagonal text on every page of PDFs in Spanish; null = no watermark.

string
nullable
watermarkTextEn
required

The watermark on PDFs in English; null = no watermark.

string
nullable
Example
{
"enabledCurrencies": [
"CRC",
"USD"
],
"defaultCurrency": "AED",
"notificationPreferences": {
"invoiceAcceptedEmisor": "each"
},
"formatPreferences": {
"formatLocale": "es-CR",
"dateStyle": "short",
"timeStyle": "12h",
"currencyDisplay": "code"
},
"pdfBranding": {
"accentColor": "#2563EB",
"headerBandMode": "accent",
"fontFamily": "roboto",
"logoPosition": "left",
"logoSize": "sm",
"tableDensity": "compact"
}
}

Missing or invalid JWT / API key.