Integration scope
This guide covers retrieving and recording a rate. The API does not determine an invoice’s taxes, withholdings or fiscal requirements. Configure those rules separately for the transaction and jurisdiction; do not reuse Venezuelan rules for Australia or Argentina.Query BCV
Usereference for USD and eur_reference for EUR. Conversion returns the applied rate and, for BCV, effective_date. updated_at describes the update; the value date describes when the publication applies.
Run these examples on your server. JavaScript and Python use the clients in the quickstart; configure COTIZAVE_API_KEY there.
Prepare a traceable record
Server example using the quickstart client. Produces a candidate record: before issuing an invoice, validate the value date for the relevant date and transaction, then persist it transactionally with the document.stale: false is a technical check, not invoice approval. An earlier value date may remain applicable over non-business days; do not require it to always equal the query date. Tax amounts and their rounding belong to your invoicing engine.