Download a proforma as PDF
GET
/v1/proformas/{id}/pdf
const url = 'https://api.emite.cr/v1/proformas/example/pdf?disposition=attachment&locale=es';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.emite.cr/v1/proformas/example/pdf?disposition=attachment&locale=es' \ --header 'Authorization: Bearer <token>'Renders the proforma with tenant logo/branding, a "PROFORMA" banner, the proforma number + validity, and a non-fiscal footer (no Hacienda QR, no legal resolution).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Proforma UUID
Query Parameters
Section titled “Query Parameters”disposition
string
Content-Disposition: attachment (default) downloads, inline previews in-browser.
locale
string
Responses
Section titled “Responses”The PDF, named after the proforma number (PRO-00001.pdf).
Media typeapplication/pdf
string format: binary
Headers
Section titled “Headers”Content-Disposition
string
attachment (default) or inline, as disposition asks, with the file name.
Proforma not found or belongs to a different tenant.