Set the organization's base currency (OWNER only)
const url = 'https://api.invogi.com/v1/organizations/current/base-currency';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"base_currency":"GBP"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.invogi.com/v1/organizations/current/base-currency \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "base_currency": "GBP" }'The currency amounts are rolled up into and cross-currency controls convert to. Must be EUR, an ECB reference currency, or a currency with a fixed parity (for example AED, SAR, QAR, BHD); other currencies are rejected because Invogi has no rate to convert them. Invoices keep the base currency their stored amounts were converted into, so changing it never rewrites history.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Request Bodyrequired
Section titled “Request Bodyrequired”object
ISO 4217 alphabetic currency code, case-insensitive and stored upper-case. A code that is not a currency suppliers invoice in (including XXX, funds and precious-metal codes) is rejected with INVALID_REQUEST. Invoices whose currency cannot be read from an uploaded document are stored with the ISO placeholder XXX and raise a CURRENCY_UNKNOWN finding.
Example
GBPResponses
Section titled “Responses”Setting updated and audit event recorded
object
Example generated
{ "baseCurrency": "example"}Invalid request
Missing or invalid API key
API key lacks required scope/role