details[].lineNumber (1..N) es el nroItem para notas47/48. Solo viene en GET /invoices/{id} y /cuf/{cuf}, no en listados.
idempotencyKey: la Idempotency-Key de la emisión (null sin ella). Búsqueda directa: GET /api/v3/invoices/by-idempotency-key/{key} (URL-encoded; 404 si no existe).
Por CUF
GET /api/v3/invoices/cuf/{cuf}
cURL
curl -X GET https://sandbox.cucu.bo/api/v3/invoices/cuf/2872F7294502332E637FABFBC3654EA82202AD48E0969F14EBEB8AF74 \ -H "X-API-Key: YOUR_API_KEY"
Misma respuesta que por ID.
Descargar documentos
GET /api/v3/invoices/{id}/documents/{tipo}GET /api/v3/invoices/cuf/{cuf}/documents/{tipo}
Auth: API Key sk_* (todo el tenant), o ck_svc_ con X-Company-ID y permiso INVOICE_READ: la credencial de
servicio sólo baja documentos de facturas de esa empresa (credenciales de servicio).
Solo para el tenant dueño.
tipo
Contenido
Content-Type
Archivo
a4
PDF tamaño general (representación gráfica)
application/pdf
factura_{n}_A4.pdf
ticket
PDF rollo 80 mm (representación gráfica)
application/pdf
factura_{n}_ticket.pdf
ticketsiat
PDF rollo formato SIAT (el mismo que ticket si sale del formato oficial, ver abajo)
application/pdf
factura_{n}_ticketsiat.pdf
chititicket
PDF mini factura
application/pdf
factura_{n}_chititicket.pdf
xml
XML firmado
application/xml
factura_{n}.xml
zip
ZIP con los documentos
application/zip
factura_{n}.zip
Content-Disposition: attachment, ETag débil y Cache-Control: private, no-store; If-None-Match → 304.El ETag del PDF y el ZIP incluye la versión de la representación gráfica. Cuando cambia la versión fiscal, el próximo pedido regenera el PDF con los datos emitidos. El CUF y el XML conservan su contenido.En las empresas habilitadas, los PDF de los sectores 1 (compra y venta), 5 (zona franca) y de la nota de
crédito-débito (24) siguen el Formato Gráfico oficial del SIN. Título, subtítulo, etiquetas, filas de totales y
leyendas salen de la normativa, en la versión SIAT (v2 o v3) con la que se emitió el documento. Si el documento ocupa
más de una hoja, se numera “Página X de N” (RND 102100000011, Art. 70-IV). El rollo usa letra de 8 puntos como mínimo
(Art. 71), y en esos documentos ticket y ticketsiat entregan el mismo rollo. Cuando cambia la norma o el diseño de
un sector, sus documentos se vuelven a armar: cambia el ETag y la URL sigue siendo la misma. La chititicket no
cambia.Si la factura no se puede representar según la norma (por ejemplo, el tipo de documento sellado en el CUF no es el
del sector), la descarga responde 409 DOCUMENT_NOT_AVAILABLE. No se entrega un PDF con un subtítulo equivocado.
tipo desconocido (errors[0].field = "tipo", INVALID_VALUE, con los válidos)
404
NOT_FOUND
Factura inexistente, de otro tenant o, con ck_svc_, de otra empresa del tenant (mismo cuerpo en todos los casos)
409
DOCUMENT_NOT_AVAILABLE
Documento no disponible todavía (factura REJECTED, PENDING o ERROR, o sin XML), o el documento no se puede representar según el formato oficial del SIN
503
DOCUMENT_IN_PREPARATION
Se está generando; reintentar tras Retry-After
Campos documents y verificationUrl
En la respuesta de la factura (REST y MCP); documents también en los webhooksinvoice.*:
URL absoluta del endpoint autenticado de arriba. Solo en facturas con documento (VALIDATED, ACCEPTED, CANCELLED, OFFLINE_PENDING, PROCESSING)
verificationUrl
Consulta oficial del SIN (la misma URL del QR)
Campo delivery
Estado de la entrega al comprador por WhatsApp, Telegram y correo, con el destino enmascarado. Viene en la consulta de
una factura y en la respuesta de la emisión; no en los listados. Detalle y reintento en
Entrega al comprador.
Link temporal
GET | HEAD /api/v3/documents/t/{token}
Sin credencial: vive 300 s y 3 usos por defecto (HEAD no consume). 200 con el archivo, 404 si la factura no existe, 410 DOCUMENT_LINK_GONE si el token venció o se agotó. El link muere con la llave que lo emitió: si esa llave se revoca o se le suspende la lectura de documentos (protección de credenciales), o el tenant se da de baja, responde 410 aunque le queden tiempo y usos. Se obtiene con descargarDocumento.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"cucu","description":"API de facturación electrónica SIAT de cucu para Bolivia: REST /api/v3, OpenAPI y MCP. Incluye QR Simple, Crypto Checkout y tipo de cambio BCB.","colors":{"primary":"#1F2328","light":"#E7E3DD","dark":"#1F2328"},"logo":{"light":"https://mintcdn.com/cucuapillc/9IgEMJYINOS9UESI/logo/light.svg?fit=max\u0026auto=format\u0026n=9IgEMJYINOS9UESI\u0026q=85\u0026s=f6c29407d111507616023a823e057d59","dark":"https://mintcdn.com/cucuapillc/9IgEMJYINOS9UESI/logo/dark.svg?fit=max\u0026auto=format\u0026n=9IgEMJYINOS9UESI\u0026q=85\u0026s=ab8bf03cfd5e58e5fc6587e276d55985","href":"https://cucu.bo"},"favicon":"https://mintcdn.com/cucuapillc/9IgEMJYINOS9UESI/favicon.svg?fit=max\u0026auto=format\u0026n=9IgEMJYINOS9UESI\u0026q=85\u0026s=05918c51906c63d8600c14cb54c75c5e","api":{"playground":{}},"background":{"color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"https://github.com/cucuapi","type":"github"},{"icon":"envelope","href":"mailto:api@cucu.bo","label":"Soporte"}]},"footer":{"socials":{"github":"https://github.com/cucuapi","youtube":"https://youtube.com/@cucuapi","facebook":"https://facebook.com/cucubolivia"}},"fonts":{"family":"IBM Plex Sans"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":false},"contextual":{"options":["copy","view","claude","chatgpt","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cucuapillc","hasAudioNarration":false,"actualSubdomain":"cucuapillc","customDomains":["docs.cucu.bo"],"gitSource":{"type":"github","owner":"cucuapi","repo":"docs-api-facturacion-electronica","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b033fa34ca26305da2a5f83","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"REST API","count":63},{"language":"default","tag":"Endpoints","count":38},{"language":"default","tag":"Documentos sector","count":20},{"language":"default","tag":"Empezar","count":19},{"language":"default","tag":"Tipo de cambio BCB","count":16},{"language":"default","tag":"Crypto Checkout","count":14},{"language":"default","tag":"Utilidades","count":13},{"language":"default","tag":"QR Simple","count":12},{"language":"default","tag":"MCP","count":11},{"language":"default","tag":"Guías","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1iIq129k.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1isq129k.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1pUL8lJdhg.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1iAq129k.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1iEq129k.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwl1FgtIU.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwlRFgtIU.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwupkp-8tFQ.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwl9FgtIU.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwl5FgtIU.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3vAOwl1FgtIU.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3vAOwlRFgtIU.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3vAOwupkp-8tFQ.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3vAOwl9FgtIU.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3vAOwl5FgtIU.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3vAOwlBFgg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--cucu-primario: #E8650A;--cucu-primario-texto: #B54E09;--cucu-secundario: #1F2328;--cucu-fondo: #FFFFFF;--cucu-superficie: #F7F5F2;--cucu-borde: #E7E3DD;--cucu-neutro: #8A847C;--cucu-texto-secundario: #6E6860;--cucu-ok: #1E7A46;--cucu-fuente-codigo: \"IBM Plex Mono\", ui-monospace, monospace}code,pre,kbd,samp{font-family:var(--cucu-fuente-codigo)!important}::selection{background:rgba(31, 35, 40, 0.14)}.max-w-5xl{max-width:80rem!important}@media (min-width: 1024px){.lg\\:pl-24{padding-left:1.5rem!important}}.prose h2+*,.prose h3+*,article h2+*,article h3+*{margin-top:8px!important}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--cucu-borde);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--cucu-neutro)}table{width:100%;border-collapse:collapse;margin:12px 0 20px;font-variant-numeric:tabular-nums}table th{padding:8px 14px;font-size:12px;font-weight:600;white-space:nowrap;border-bottom:1px solid var(--cucu-borde);text-align:left}table td{padding:8px 14px;font-size:13px;line-height:1.5;vertical-align:top;border-bottom:1px solid var(--cucu-borde)}.dark table th,.dark table td{border-bottom-color:#262A30}table td:first-child{font-family:var(--cucu-fuente-codigo);font-size:12.5px;min-width:9rem}table td:first-child code{white-space:nowrap}table td:nth-child(2):not(:last-child){white-space:nowrap}table td:last-child:not(:first-child){min-width:12rem}table:has(th:nth-child(4)) td:first-child{min-width:8rem}table:has(th:nth-child(4)) td:last-child:not(:first-child){min-width:13rem}table:has(th:nth-child(4)) td:nth-child(3):not(:last-child){white-space:nowrap}a.nav-tabs-item,[class*=\"nav-tabs\"] a{font-weight:600!important;transition:color 0.2s ease!important}a.nav-tabs-item[aria-current=\"page\"]>div,a.nav-tabs-item[data-active=\"true\"]>div{background:var(--cucu-secundario)!important;height:2px!important}.dark a.nav-tabs-item[aria-current=\"page\"]>div,.dark a.nav-tabs-item[data-active=\"true\"]>div{background:var(--cucu-borde)!important}a.nav-tabs-item:hover>div,[class*=\"nav-tabs\"] a:hover>div{background:var(--cucu-neutro)!important;height:2px!important}[data-nav-tag=\"Gratis\"],.nav-tag-pill-text{background:transparent!important;color:#1A7F37!important;box-shadow:inset 0 0 0 1px #E7E3DD!important}.dark [data-nav-tag=\"Gratis\"],.dark .nav-tag-pill-text{color:#57AB5A!important;box-shadow:inset 0 0 0 1px #262A30!important}a.nav-tabs-item[href=\"/bcb-api\"]::after{content:\"Gratis\";background:transparent;color:#1A7F37;box-shadow:inset 0 0 0 1px #E7E3DD;font-size:0.6rem;font-weight:700;line-height:1;padding:2px 6px;border-radius:6px;margin-left:6px}.dark a.nav-tabs-item[href=\"/bcb-api\"]::after{color:#57AB5A;box-shadow:inset 0 0 0 1px #262A30}[class*=\"bg-green-400/20\"],[class*=\"bg-blue-400/20\"],[class*=\"bg-red-400/20\"],[class*=\"bg-yellow-400/20\"],[class*=\"bg-orange-400/20\"],[class*=\"bg-purple-400/20\"]{background:#F6F8FA!important;box-shadow:inset 0 0 0 1px #E7E3DD!important}[class*=\"bg-green-400/20\"]{color:#1A7F37!important}[class*=\"bg-blue-400/20\"]{color:#0969DA!important}[class*=\"bg-red-400/20\"]{color:#CF222E!important}[class*=\"bg-yellow-400/20\"],[class*=\"bg-orange-400/20\"]{color:#9A6700!important}[class*=\"bg-purple-400/20\"]{color:#8250DF!important}[class*=\"bg-[#2AB673]\"]{background:#F6F8FA!important;color:#1A7F37!important;box-shadow:inset 0 0 0 1px #1A7F37!important}.dark [class*=\"bg-[#2AB673]\"]{background:#0D1117!important;color:#57AB5A!important;box-shadow:inset 0 0 0 1px #57AB5A!important}.dark [class*=\"bg-green-400/20\"],.dark [class*=\"bg-blue-400/20\"],.dark [class*=\"bg-red-400/20\"],.dark [class*=\"bg-yellow-400/20\"],.dark [class*=\"bg-orange-400/20\"],.dark [class*=\"bg-purple-400/20\"]{background:#0D1117!important;box-shadow:inset 0 0 0 1px #262A30!important}.dark [class*=\"bg-green-400/20\"]{color:#57AB5A!important}.dark [class*=\"bg-blue-400/20\"]{color:#539BF5!important}.dark [class*=\"bg-red-400/20\"]{color:#E5534B!important}.dark [class*=\"bg-yellow-400/20\"],.dark [class*=\"bg-orange-400/20\"]{color:#C69026!important}.dark [class*=\"bg-purple-400/20\"]{color:#986EE2!important}@media (max-width: 1279px){div.flex.flex-row-reverse.gap-12{flex-direction:column-reverse!important;gap:0!important}div.flex.flex-row-reverse.gap-12>div.hidden.xl\\:flex{display:flex!important;flex-direction:column!important;position:static!important;height:auto!important;max-width:100%!important;width:100%!important;margin-top:0!important}div.flex.flex-row-reverse.gap-12>div.hidden.xl\\:flex>div{max-height:none!important;width:100%!important}div.flex.flex-row-reverse.gap-12:has(>div.grow .code-group)>div.hidden.xl\\:flex{display:none!important}}#sidebar a[aria-current=\"page\"],nav a[aria-current=\"page\"].rounded-xl{background:var(--cucu-superficie)!important;color:var(--cucu-secundario)!important}html.dark #sidebar a[aria-current=\"page\"],html.dark nav a[aria-current=\"page\"].rounded-xl{background:#0D1117!important;color:var(--cucu-fondo)!important}a[data-layout-item=\"toc-item-link\"][data-active=\"true\"]{color:var(--cucu-secundario)!important;font-weight:600}html.dark a[data-layout-item=\"toc-item-link\"][data-active=\"true\"]{color:var(--cucu-fondo)!important}#header>div.mt-2.text-lg.prose{display:none}.callout[data-callout-type]{--aviso: #0969DA;background:#F7F5F2!important;background-image:none!important;border:1px solid #E7E3DD!important;border-left:3px solid var(--aviso)!important;border-radius:10px!important}.callout[data-callout-type=\"tip\"],.callout[data-callout-type=\"check\"]{--aviso: #1A7F37}.callout[data-callout-type=\"warning\"]{--aviso: #9A6700}.callout[data-callout-type=\"danger\"]{--aviso: #CF222E}.dark .callout[data-callout-type]{--aviso: #4493F8;background:#0D1117!important;border-top-color:#262A30!important;border-right-color:#262A30!important;border-bottom-color:#262A30!important}.dark .callout[data-callout-type=\"tip\"],.dark .callout[data-callout-type=\"check\"]{--aviso: #3FB950}.dark .callout[data-callout-type=\"warning\"]{--aviso: #D29922}.dark .callout[data-callout-type=\"danger\"]{--aviso: #F85149}.callout[data-callout-type] [data-component-part=\"callout-content\"],.callout[data-callout-type] [data-component-part=\"callout-content\"] *{color:#1F2328!important}.dark .callout[data-callout-type] [data-component-part=\"callout-content\"],.dark .callout[data-callout-type] [data-component-part=\"callout-content\"] *{color:#E7E3DD!important}.callout[data-callout-type] [data-component-part=\"callout-icon\"],.callout[data-callout-type] [data-component-part=\"callout-icon\"] *{color:var(--aviso)!important}.callout[data-callout-type] code{background:#E7E3DD!important}.dark .callout[data-callout-type] code{background:#1F2328!important}.code-block-fade-overlay{display:none!important}[class*=\"bg-linear-to-b\"],[class*=\"bg-gradient-to\"]{background-image:none!important}[class*=\"bg-[#FDEAD8]\"]{background:transparent!important;color:var(--cucu-texto-secundario)!important;box-shadow:inset 0 0 0 1px var(--cucu-borde)!important}.dark [class*=\"bg-[#FDEAD8]\"]{color:#A8A29A!important;box-shadow:inset 0 0 0 1px #262A30!important}.tryit-button{background:var(--cucu-secundario)!important;color:#FFFFFF!important}.dark .tryit-button{background:var(--cucu-borde)!important;color:var(--cucu-secundario)!important}table td:last-child:not(:first-child) code{white-space:normal!important;overflow-wrap:break-word}table td:not(:first-child):not(:last-child){min-width:0!important;width:1%}.tryit-button{box-shadow:none!important}"}]}
{"page":{"pagePath":"api/get-invoice","slug":"/api/get-invoice","pageMetadata":{"title":"Obtener factura","description":"Obtiene los detalles completos de una factura por ID o por CUF.","api":"GET https://sandbox.cucu.bo/api/v3/invoices/{id}","href":"/api/get-invoice"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Obtiene los detalles completos de una factura por ID o por CUF.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`La respuesta tiene los mismos campos que la de `,_jsx(_components.a,{href:`/api/create-invoice`,children:`crear factura`}),` (incluidos `,_jsx(_components.code,{children:`clientComplement`}),` y `,_jsx(_components.code,{children:`montoGiftCard`}),` cuando se enviaron).`]}),`\n`,_jsx(Heading,{level:`2`,id:`por-id-uuid`,children:`Por ID (UUID)`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parametro`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Req`}),_jsx(_components.th,{children:`Descripcion`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Si`}),_jsx(_components.td,{children:`UUID de la factura`})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`headers`,children:`Headers`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parametro`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Req`}),_jsx(_components.th,{children:`Descripcion`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-API-Key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Si`}),_jsx(_components.td,{children:`Tu API Key`})]})})]}),`\n`,`\n`,`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`details[].lineNumber`}),` (`,_jsx(_components.code,{children:`1..N`}),`) es el `,_jsx(_components.code,{children:`nroItem`}),` para `,_jsx(_components.a,{href:`/api/credit-note`,children:`notas`}),` `,_jsx(_components.code,{children:`47`}),`/`,_jsx(_components.code,{children:`48`}),`. Solo viene en `,_jsx(_components.code,{children:`GET /invoices/{id}`}),` y `,_jsx(_components.code,{children:`/cuf/{cuf}`}),`, no en listados.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`idempotencyKey`}),`: la `,_jsx(_components.code,{children:`Idempotency-Key`}),` de la emisión (`,_jsx(_components.code,{children:`null`}),` sin ella). Búsqueda directa: `,_jsx(_components.code,{children:`GET /api/v3/invoices/by-idempotency-key/{key}`}),` (URL-encoded; `,_jsx(_components.code,{children:`404`}),` si no existe).`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`por-cuf`,children:`Por CUF`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`GET`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` /api/v3/invoices/cuf/{cuf}`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` GET`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://sandbox.cucu.bo/api/v3/invoices/cuf/2872F7294502332E637FABFBC3654EA82202AD48E0969F14EBEB8AF74`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"X-API-Key: YOUR_API_KEY\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Misma respuesta que por ID.`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`descargar-documentos`,children:`Descargar documentos`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`GET`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` /api/v3/invoices/{id}/documents/{tipo}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`GET`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` /api/v3/invoices/cuf/{cuf}/documents/{tipo}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Auth: API Key `,_jsx(_components.code,{children:`sk_*`}),` (todo el tenant), o `,_jsx(_components.code,{children:`ck_svc_`}),` con `,_jsx(_components.code,{children:`X-Company-ID`}),` y permiso `,_jsx(_components.code,{children:`INVOICE_READ`}),`: la credencial de\nservicio sólo baja documentos de facturas de `,_jsx(_components.strong,{children:`esa`}),` empresa (`,_jsx(_components.a,{href:`/authentication#credenciales-de-servicio`,children:`credenciales de servicio`}),`).\nSolo para el tenant dueño.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`tipo`})}),_jsx(_components.th,{children:`Contenido`}),_jsx(_components.th,{children:`Content-Type`}),_jsx(_components.th,{children:`Archivo`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`a4`})}),_jsx(_components.td,{children:`PDF tamaño general (representación gráfica)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/pdf`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}_A4.pdf`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ticket`})}),_jsx(_components.td,{children:`PDF rollo 80 mm (representación gráfica)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/pdf`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}_ticket.pdf`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ticketsiat`})}),_jsxs(_components.td,{children:[`PDF rollo formato SIAT (el mismo que `,_jsx(_components.code,{children:`ticket`}),` si sale del formato oficial, ver abajo)`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/pdf`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}_ticketsiat.pdf`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`chititicket`})}),_jsx(_components.td,{children:`PDF mini factura`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/pdf`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}_chititicket.pdf`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`xml`})}),_jsx(_components.td,{children:`XML firmado`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/xml`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}.xml`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`zip`})}),_jsx(_components.td,{children:`ZIP con los documentos`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/zip`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}.zip`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Content-Disposition: attachment`}),`, `,_jsx(_components.code,{children:`ETag`}),` débil y `,_jsx(_components.code,{children:`Cache-Control: private, no-store`}),`; `,_jsx(_components.code,{children:`If-None-Match`}),` → `,_jsx(_components.code,{children:`304`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`El `,_jsx(_components.code,{children:`ETag`}),` del PDF y el ZIP incluye la versión de la representación gráfica. Cuando cambia la versión fiscal, el próximo pedido regenera el PDF con los datos emitidos. El CUF y el XML conservan su contenido.`]}),`\n`,_jsxs(_components.p,{children:[`En las empresas habilitadas, los PDF de los sectores 1 (compra y venta), 5 (zona franca) y de la nota de\ncrédito-débito (24) siguen el Formato Gráfico oficial del SIN. Título, subtítulo, etiquetas, filas de totales y\nleyendas salen de la normativa, en la versión SIAT (v2 o v3) con la que se emitió el documento. Si el documento ocupa\nmás de una hoja, se numera “Página X de N” (RND 102100000011, Art. 70-IV). El rollo usa letra de 8 puntos como mínimo\n(Art. 71), y en esos documentos `,_jsx(_components.code,{children:`ticket`}),` y `,_jsx(_components.code,{children:`ticketsiat`}),` entregan el mismo rollo. Cuando cambia la norma o el diseño de\nun sector, sus documentos se vuelven a armar: cambia el `,_jsx(_components.code,{children:`ETag`}),` y la URL sigue siendo la misma. La `,_jsx(_components.code,{children:`chititicket`}),` no\ncambia.`]}),`\n`,_jsxs(_components.p,{children:[`Si la factura no se puede representar según la norma (por ejemplo, el tipo de documento sellado en el CUF no es el\ndel sector), la descarga responde `,_jsx(_components.code,{children:`409 DOCUMENT_NOT_AVAILABLE`}),`. No se entrega un PDF con un subtítulo equivocado.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -OJ`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://sandbox.cucu.bo/api/v3/invoices/cuf/{cuf}/documents/a4`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"X-API-Key: YOUR_API_KEY\"`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`Cuándo`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Sin credencial`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`tipo`}),` desconocido (`,_jsx(_components.code,{children:`errors[0].field = \"tipo\"`}),`, `,_jsx(_components.code,{children:`INVALID_VALUE`}),`, con los válidos)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NOT_FOUND`})}),_jsxs(_components.td,{children:[`Factura inexistente, de otro tenant o, con `,_jsx(_components.code,{children:`ck_svc_`}),`, de otra empresa del tenant (mismo cuerpo en todos los casos)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DOCUMENT_NOT_AVAILABLE`})}),_jsxs(_components.td,{children:[`Documento no disponible todavía (factura `,_jsx(_components.code,{children:`REJECTED`}),`, `,_jsx(_components.code,{children:`PENDING`}),` o `,_jsx(_components.code,{children:`ERROR`}),`, o sin XML), o el documento no se puede representar según el formato oficial del SIN`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DOCUMENT_IN_PREPARATION`})}),_jsxs(_components.td,{children:[`Se está generando; reintentar tras `,_jsx(_components.code,{children:`Retry-After`})]})]})]})]}),`\n`,_jsxs(Heading,{level:`3`,id:`campos-documents-y-verificationurl`,children:[`Campos `,_jsx(_components.code,{children:`documents`}),` y `,_jsx(_components.code,{children:`verificationUrl`})]}),`\n`,_jsxs(_components.p,{children:[`En la respuesta de la factura (REST y MCP); `,_jsx(_components.code,{children:`documents`}),` también en los `,_jsx(_components.a,{href:`/api/webhooks`,children:`webhooks`}),` `,_jsx(_components.code,{children:`invoice.*`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`documents.a4`}),`, `,_jsx(_components.code,{children:`.ticket`}),`, `,_jsx(_components.code,{children:`.ticketsiat`}),`, `,_jsx(_components.code,{children:`.chititicket`}),`, `,_jsx(_components.code,{children:`.xml`}),`, `,_jsx(_components.code,{children:`.zip`})]}),_jsxs(_components.td,{children:[`URL absoluta del endpoint autenticado de arriba. Solo en facturas con documento (`,_jsx(_components.code,{children:`VALIDATED`}),`, `,_jsx(_components.code,{children:`ACCEPTED`}),`, `,_jsx(_components.code,{children:`CANCELLED`}),`, `,_jsx(_components.code,{children:`OFFLINE_PENDING`}),`, `,_jsx(_components.code,{children:`PROCESSING`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`verificationUrl`})}),_jsx(_components.td,{children:`Consulta oficial del SIN (la misma URL del QR)`})]})]})]}),`\n`,_jsxs(Heading,{level:`3`,id:`campo-delivery`,children:[`Campo `,_jsx(_components.code,{children:`delivery`})]}),`\n`,_jsxs(_components.p,{children:[`Estado de la entrega al comprador por WhatsApp, Telegram y correo, con el destino enmascarado. Viene en la consulta de\nuna factura y en la respuesta de la emisión; no en los listados. Detalle y reintento en\n`,_jsx(_components.a,{href:`/api/delivery`,children:`Entrega al comprador`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`link-temporal`,children:`Link temporal`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET | HEAD /api/v3/documents/t/{token}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Sin credencial: vive 300 s y 3 usos por defecto (`,_jsx(_components.code,{children:`HEAD`}),` no consume). `,_jsx(_components.code,{children:`200`}),` con el archivo, `,_jsx(_components.code,{children:`404`}),` si la factura no existe, `,_jsx(_components.code,{children:`410 DOCUMENT_LINK_GONE`}),` si el token venció o se agotó. El link muere con la llave que lo emitió: si esa llave se revoca o se le suspende la lectura de documentos (`,_jsx(_components.a,{href:`/api/security-credentials`,children:`protección de credenciales`}),`), o el tenant se da de baja, responde `,_jsx(_components.code,{children:`410`}),` aunque le queden tiempo y usos. Se obtiene con `,_jsx(_components.a,{href:`/mcp/herramientas-facturacion#descargardocumento`,children:_jsx(_components.code,{children:`descargarDocumento`})}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Obtener factura","description":"Obtiene los detalles completos de una factura por ID o por CUF.","api":"GET https://sandbox.cucu.bo/api/v3/invoices/{id}","href":"/api/get-invoice"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,RequestExample,ResponseExample,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`La respuesta tiene los mismos campos que la de `,_jsx(_components.a,{href:`/api/create-invoice`,children:`crear factura`}),` (incluidos `,_jsx(_components.code,{children:`clientComplement`}),` y `,_jsx(_components.code,{children:`montoGiftCard`}),` cuando se enviaron).`]}),`\n`,_jsx(Heading,{level:`2`,id:`por-id-uuid`,children:`Por ID (UUID)`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parametro`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Req`}),_jsx(_components.th,{children:`Descripcion`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Si`}),_jsx(_components.td,{children:`UUID de la factura`})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`headers`,children:`Headers`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parametro`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Req`}),_jsx(_components.th,{children:`Descripcion`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-API-Key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Si`}),_jsx(_components.td,{children:`Tu API Key`})]})})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` GET`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"X-API-Key: YOUR_API_KEY\"`})]}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`47`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`47`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`true`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"invoiceNumber\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`5`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"cuf\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"2872F7294502332E637FABFBC3654EA82202AD48E0969F14EBEB8AF74\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"siatState\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"VALIDATED\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"emissionType\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ONLINE\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"siatCodeState\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`908`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"siatDescription\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"FACTURA VALIDADA\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"siatReceptionCode\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"6f1c0b8e-2a4d-4c11-9a3e-1b2c3d4e5f60\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"clientDocumentType\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`5`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"clientDocumentNumber\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"99001\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"clientBusinessName\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"EMPRESA DEMO S.R.L.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"clientEmail\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"demo@ejemplo.com\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"amountSubtotal\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`500.00`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"amountDiscount\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`0.00`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"amountTotal\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`500.00`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"amountLiteral\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Quinientos 00/100 Bolivianos\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"paymentMethodCode\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`1`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"emissionDate\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"2026-02-11T12:00:00.000-04:00\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"idempotencyKey\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"orden-2026-000123\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"lineNumber\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`1`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"activityEconomic\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"620100\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"codeProductSin\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"83141\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Servicio de desarrollo de software\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`1.0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"unitMeasure\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`58`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"priceUnit\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`500.00`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"amountDiscount\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`0.00`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"subtotal\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`500.00`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"documents\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"a4\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/a4\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"ticket\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/ticket\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"ticketsiat\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/ticketsiat\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"chititicket\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/chititicket\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"xml\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/xml\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"zip\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/zip\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"verificationUrl\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://siat.impuestos.gob.bo/consulta/QR?nit=...\u0026cuf=2872F...AF74\u0026numero=...\u0026t=2\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"2026-02-11T12:00:00.000-04:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`details[].lineNumber`}),` (`,_jsx(_components.code,{children:`1..N`}),`) es el `,_jsx(_components.code,{children:`nroItem`}),` para `,_jsx(_components.a,{href:`/api/credit-note`,children:`notas`}),` `,_jsx(_components.code,{children:`47`}),`/`,_jsx(_components.code,{children:`48`}),`. Solo viene en `,_jsx(_components.code,{children:`GET /invoices/{id}`}),` y `,_jsx(_components.code,{children:`/cuf/{cuf}`}),`, no en listados.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`idempotencyKey`}),`: la `,_jsx(_components.code,{children:`Idempotency-Key`}),` de la emisión (`,_jsx(_components.code,{children:`null`}),` sin ella). Búsqueda directa: `,_jsx(_components.code,{children:`GET /api/v3/invoices/by-idempotency-key/{key}`}),` (URL-encoded; `,_jsx(_components.code,{children:`404`}),` si no existe).`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`por-cuf`,children:`Por CUF`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`GET`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` /api/v3/invoices/cuf/{cuf}`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` GET`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://sandbox.cucu.bo/api/v3/invoices/cuf/2872F7294502332E637FABFBC3654EA82202AD48E0969F14EBEB8AF74`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"X-API-Key: YOUR_API_KEY\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Misma respuesta que por ID.`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`descargar-documentos`,children:`Descargar documentos`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`GET`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` /api/v3/invoices/{id}/documents/{tipo}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`GET`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` /api/v3/invoices/cuf/{cuf}/documents/{tipo}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Auth: API Key `,_jsx(_components.code,{children:`sk_*`}),` (todo el tenant), o `,_jsx(_components.code,{children:`ck_svc_`}),` con `,_jsx(_components.code,{children:`X-Company-ID`}),` y permiso `,_jsx(_components.code,{children:`INVOICE_READ`}),`: la credencial de\nservicio sólo baja documentos de facturas de `,_jsx(_components.strong,{children:`esa`}),` empresa (`,_jsx(_components.a,{href:`/authentication#credenciales-de-servicio`,children:`credenciales de servicio`}),`).\nSolo para el tenant dueño.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`tipo`})}),_jsx(_components.th,{children:`Contenido`}),_jsx(_components.th,{children:`Content-Type`}),_jsx(_components.th,{children:`Archivo`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`a4`})}),_jsx(_components.td,{children:`PDF tamaño general (representación gráfica)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/pdf`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}_A4.pdf`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ticket`})}),_jsx(_components.td,{children:`PDF rollo 80 mm (representación gráfica)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/pdf`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}_ticket.pdf`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ticketsiat`})}),_jsxs(_components.td,{children:[`PDF rollo formato SIAT (el mismo que `,_jsx(_components.code,{children:`ticket`}),` si sale del formato oficial, ver abajo)`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/pdf`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}_ticketsiat.pdf`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`chititicket`})}),_jsx(_components.td,{children:`PDF mini factura`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/pdf`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}_chititicket.pdf`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`xml`})}),_jsx(_components.td,{children:`XML firmado`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/xml`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}.xml`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`zip`})}),_jsx(_components.td,{children:`ZIP con los documentos`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/zip`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`factura_{n}.zip`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Content-Disposition: attachment`}),`, `,_jsx(_components.code,{children:`ETag`}),` débil y `,_jsx(_components.code,{children:`Cache-Control: private, no-store`}),`; `,_jsx(_components.code,{children:`If-None-Match`}),` → `,_jsx(_components.code,{children:`304`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`El `,_jsx(_components.code,{children:`ETag`}),` del PDF y el ZIP incluye la versión de la representación gráfica. Cuando cambia la versión fiscal, el próximo pedido regenera el PDF con los datos emitidos. El CUF y el XML conservan su contenido.`]}),`\n`,_jsxs(_components.p,{children:[`En las empresas habilitadas, los PDF de los sectores 1 (compra y venta), 5 (zona franca) y de la nota de\ncrédito-débito (24) siguen el Formato Gráfico oficial del SIN. Título, subtítulo, etiquetas, filas de totales y\nleyendas salen de la normativa, en la versión SIAT (v2 o v3) con la que se emitió el documento. Si el documento ocupa\nmás de una hoja, se numera “Página X de N” (RND 102100000011, Art. 70-IV). El rollo usa letra de 8 puntos como mínimo\n(Art. 71), y en esos documentos `,_jsx(_components.code,{children:`ticket`}),` y `,_jsx(_components.code,{children:`ticketsiat`}),` entregan el mismo rollo. Cuando cambia la norma o el diseño de\nun sector, sus documentos se vuelven a armar: cambia el `,_jsx(_components.code,{children:`ETag`}),` y la URL sigue siendo la misma. La `,_jsx(_components.code,{children:`chititicket`}),` no\ncambia.`]}),`\n`,_jsxs(_components.p,{children:[`Si la factura no se puede representar según la norma (por ejemplo, el tipo de documento sellado en el CUF no es el\ndel sector), la descarga responde `,_jsx(_components.code,{children:`409 DOCUMENT_NOT_AVAILABLE`}),`. No se entrega un PDF con un subtítulo equivocado.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -OJ`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://sandbox.cucu.bo/api/v3/invoices/cuf/{cuf}/documents/a4`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"X-API-Key: YOUR_API_KEY\"`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`Cuándo`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Sin credencial`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`tipo`}),` desconocido (`,_jsx(_components.code,{children:`errors[0].field = \"tipo\"`}),`, `,_jsx(_components.code,{children:`INVALID_VALUE`}),`, con los válidos)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NOT_FOUND`})}),_jsxs(_components.td,{children:[`Factura inexistente, de otro tenant o, con `,_jsx(_components.code,{children:`ck_svc_`}),`, de otra empresa del tenant (mismo cuerpo en todos los casos)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DOCUMENT_NOT_AVAILABLE`})}),_jsxs(_components.td,{children:[`Documento no disponible todavía (factura `,_jsx(_components.code,{children:`REJECTED`}),`, `,_jsx(_components.code,{children:`PENDING`}),` o `,_jsx(_components.code,{children:`ERROR`}),`, o sin XML), o el documento no se puede representar según el formato oficial del SIN`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DOCUMENT_IN_PREPARATION`})}),_jsxs(_components.td,{children:[`Se está generando; reintentar tras `,_jsx(_components.code,{children:`Retry-After`})]})]})]})]}),`\n`,_jsxs(Heading,{level:`3`,id:`campos-documents-y-verificationurl`,children:[`Campos `,_jsx(_components.code,{children:`documents`}),` y `,_jsx(_components.code,{children:`verificationUrl`})]}),`\n`,_jsxs(_components.p,{children:[`En la respuesta de la factura (REST y MCP); `,_jsx(_components.code,{children:`documents`}),` también en los `,_jsx(_components.a,{href:`/api/webhooks`,children:`webhooks`}),` `,_jsx(_components.code,{children:`invoice.*`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`documents.a4`}),`, `,_jsx(_components.code,{children:`.ticket`}),`, `,_jsx(_components.code,{children:`.ticketsiat`}),`, `,_jsx(_components.code,{children:`.chititicket`}),`, `,_jsx(_components.code,{children:`.xml`}),`, `,_jsx(_components.code,{children:`.zip`})]}),_jsxs(_components.td,{children:[`URL absoluta del endpoint autenticado de arriba. Solo en facturas con documento (`,_jsx(_components.code,{children:`VALIDATED`}),`, `,_jsx(_components.code,{children:`ACCEPTED`}),`, `,_jsx(_components.code,{children:`CANCELLED`}),`, `,_jsx(_components.code,{children:`OFFLINE_PENDING`}),`, `,_jsx(_components.code,{children:`PROCESSING`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`verificationUrl`})}),_jsx(_components.td,{children:`Consulta oficial del SIN (la misma URL del QR)`})]})]})]}),`\n`,_jsxs(Heading,{level:`3`,id:`campo-delivery`,children:[`Campo `,_jsx(_components.code,{children:`delivery`})]}),`\n`,_jsxs(_components.p,{children:[`Estado de la entrega al comprador por WhatsApp, Telegram y correo, con el destino enmascarado. Viene en la consulta de\nuna factura y en la respuesta de la emisión; no en los listados. Detalle y reintento en\n`,_jsx(_components.a,{href:`/api/delivery`,children:`Entrega al comprador`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`link-temporal`,children:`Link temporal`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET | HEAD /api/v3/documents/t/{token}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Sin credencial: vive 300 s y 3 usos por defecto (`,_jsx(_components.code,{children:`HEAD`}),` no consume). `,_jsx(_components.code,{children:`200`}),` con el archivo, `,_jsx(_components.code,{children:`404`}),` si la factura no existe, `,_jsx(_components.code,{children:`410 DOCUMENT_LINK_GONE`}),` si el token venció o se agotó. El link muere con la llave que lo emitió: si esa llave se revoca o se le suspende la lectura de documentos (`,_jsx(_components.a,{href:`/api/security-credentials`,children:`protección de credenciales`}),`), o el tenant se da de baja, responde `,_jsx(_components.code,{children:`410`}),` aunque le queden tiempo y usos. Se obtiene con `,_jsx(_components.a,{href:`/mcp/herramientas-facturacion#descargardocumento`,children:_jsx(_components.code,{children:`descargarDocumento`})}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Obtener factura","description":"Obtiene los detalles completos de una factura por ID o por CUF.","api":"GET https://sandbox.cucu.bo/api/v3/invoices/{id}","href":"/api/get-invoice"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Por ID (UUID)","slug":"por-id-uuid","depth":2,"children":[{"title":"Path Parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Headers","slug":"headers","depth":3,"children":[]}]},{"title":"Por CUF","slug":"por-cuf","depth":2,"children":[]},{"title":"Descargar documentos","slug":"descargar-documentos","depth":2,"children":[{"title":"Campos documents y verificationUrl","slug":"campos-documents-y-verificationurl","depth":3,"children":[]},{"title":"Campo delivery","slug":"campo-delivery","depth":3,"children":[]},{"title":"Link temporal","slug":"link-temporal","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"2\">\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#B392F0\">curl\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> -X\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> GET\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> -H\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> \"X-API-Key: YOUR_API_KEY\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"47\">\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"success\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">true\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"data\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"id\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"invoiceNumber\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">5\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"cuf\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"2872F7294502332E637FABFBC3654EA82202AD48E0969F14EBEB8AF74\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"siatState\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"VALIDATED\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"emissionType\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"ONLINE\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"siatCodeState\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">908\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"siatDescription\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"FACTURA VALIDADA\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"siatReceptionCode\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"6f1c0b8e-2a4d-4c11-9a3e-1b2c3d4e5f60\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"clientDocumentType\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">5\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"clientDocumentNumber\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"99001\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"clientBusinessName\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"EMPRESA DEMO S.R.L.\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"clientEmail\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"demo@ejemplo.com\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"amountSubtotal\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">500.00\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"amountDiscount\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">0.00\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"amountTotal\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">500.00\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"amountLiteral\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"Quinientos 00/100 Bolivianos\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"paymentMethodCode\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">1\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"emissionDate\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"2026-02-11T12:00:00.000-04:00\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"idempotencyKey\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"orden-2026-000123\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"details\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"lineNumber\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">1\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"activityEconomic\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"620100\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"codeProductSin\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"83141\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"description\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"Servicio de desarrollo de software\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"quantity\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">1.0\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"unitMeasure\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">58\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"priceUnit\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">500.00\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"amountDiscount\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">0.00\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"subtotal\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\">500.00\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"documents\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"a4\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/a4\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"ticket\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/ticket\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"ticketsiat\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/ticketsiat\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"chititicket\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/chititicket\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"xml\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/xml\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"zip\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents/zip\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"verificationUrl\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"https://siat.impuestos.gob.bo/consulta/QR?nit=...\u0026#x26;cuf=2872F...AF74\u0026#x26;numero=...\u0026#x26;t=2\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"timestamp\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"2026-02-11T12:00:00.000-04:00\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Obtener factura","path":"/api/v3/invoices/{id}","servers":[{"url":"https://sandbox.cucu.bo"}],"method":"get","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":["/_mintlify/custom/cucuapillc/1aec875b6218c4f8/floating-cta.js"],"subdomain":"cucuapillc","siteName":"cucu","title":"Obtener factura - cucu","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T22:08:40.843Z","originalFileLocation":"api/get-invoice.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Obtiene los detalles completos de una factura por ID o por CUF.\">\u003cmeta data-mint-head name=\"application-name\" content=\"cucu\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Obtener factura - cucu\">\u003cmeta data-mint-head property=\"og:description\" content=\"Obtiene los detalles completos de una factura por ID o por CUF.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"cucu\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cucu.bo/api/get-invoice\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cucuapillc.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Obtener+factura\u0026amp;description=Obtiene+los+detalles+completos+de+una+factura+por+ID+o+por+CUF.\u0026amp;theme=3f167675716c1a02901b7f3c\u0026amp;signature=d419c5a43b62aef0681f840652b94d94cf410114cdf452e2ecc84ecca1fc476a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Obtener factura - cucu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Obtiene los detalles completos de una factura por ID o por CUF.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cucuapillc.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Obtener+factura\u0026amp;description=Obtiene+los+detalles+completos+de+una+factura+por+ID+o+por+CUF.\u0026amp;theme=3f167675716c1a02901b7f3c\u0026amp;signature=d419c5a43b62aef0681f840652b94d94cf410114cdf452e2ecc84ecca1fc476a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cucuapillc/ahliaUOmG6Obs5MQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"cucu\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1F2328\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cucu.bo/api/get-invoice\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/get-invoice.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cucu.bo/#organization\",\"name\":\"cucu\",\"url\":\"https://docs.cucu.bo\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cucuapillc/9IgEMJYINOS9UESI/logo/light.svg?fit=max\u0026auto=format\u0026n=9IgEMJYINOS9UESI\u0026q=85\u0026s=f6c29407d111507616023a823e057d59\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cucu.bo#website\",\"name\":\"cucu\",\"url\":\"https://docs.cucu.bo\",\"publisher\":{\"@id\":\"https://docs.cucu.bo/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cucu.bo/api/get-invoice#webpage\",\"url\":\"https://docs.cucu.bo/api/get-invoice\",\"name\":\"Obtener factura\",\"description\":\"Obtiene los detalles completos de una factura por ID o por CUF.\",\"dateModified\":\"2026-11-20T22:08:40.843Z\",\"isPartOf\":{\"@id\":\"https://docs.cucu.bo#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cucu.bo/api/get-invoice#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cucu.bo/api/get-invoice#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.cucu.bo/api/companies\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Obtener factura\",\"item\":\"https://docs.cucu.bo/api/get-invoice\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cucu.bo/api/get-invoice#apireference\",\"headline\":\"Obtener factura\",\"name\":\"Obtener factura\",\"description\":\"Obtiene los detalles completos de una factura por ID o por CUF.\",\"url\":\"https://docs.cucu.bo/api/get-invoice\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cucu.bo/api/get-invoice#webpage\"},\"dateModified\":\"2026-11-20T22:08:40.843Z\",\"publisher\":{\"@id\":\"https://docs.cucu.bo/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cucu.bo#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"cucu\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"cucu\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/get-invoice.md","siteName":"cucu","nav":{"global":null,"tabs":[{"tab":"REST API","icon":"square-terminal","groups":[{"group":"Empezar","pages":[{"title":"Facturación electrónica","sidebarTitle":"Introducción","href":"/introduction"},{"title":"Inicio rápido","href":"/quickstart"},{"title":"Para agentes de IA","href":"/para-agentes"},{"title":"Autenticación","href":"/authentication"},{"title":"Ambientes","href":"/environments"},{"title":"Errores","href":"/errors"},{"title":"Precios","sidebarTitle":"Precios","icon":"tags","href":"/pricing"},{"title":"Changelog","href":"/changelog"}]},{"group":"Referencia","pages":[{"title":"Información general","href":"/api/informacion-general"},{"title":"Content-Type","href":"/api/content-type"},{"title":"Versionado","href":"/api/versionado"},{"title":"IVA transparente: lo que viene","href":"/api/iva-transparente"}]},{"group":"Endpoints","pages":[{"title":"Empresas y puntos de venta","sidebarTitle":"Empresas y POS","href":"/api/companies"},{"title":"Crear factura","api":"POST https://sandbox.cucu.bo/api/v3/invoices","href":"/api/create-invoice"},{"title":"Previsualizar factura","href":"/api/preview-invoice"},{"title":"Listar facturas","api":"GET https://sandbox.cucu.bo/api/v3/invoices","href":"/api/list-invoices"},{"title":"Buscar facturas (deprecado)","sidebarTitle":"Buscar (deprecado)","description":"GET /api/v3/invoices/search está deprecado hasta el 2027-05-18: usa GET /api/v3/invoices, que acepta los mismos filtros (state, from, to, clientDocument, invoiceNumber) y responde lo mismo.","api":"GET https://sandbox.cucu.bo/api/v3/invoices/search","deprecated":true,"href":"/api/search-invoices"},{"title":"Obtener factura","api":"GET https://sandbox.cucu.bo/api/v3/invoices/{id}","href":"/api/get-invoice"},{"title":"Anular factura","description":"POST /api/v3/invoices/{id}/cancel: anula una factura ante el SIAT por servicio web, dentro del plazo del SIN (día 9 del mes siguiente).","api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/cancel","href":"/api/cancel-invoice"},{"title":"Anulación administrativa (fuera de plazo)","sidebarTitle":"Anulación administrativa","api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/cancel-administrative","href":"/api/cancel-administrative"},{"title":"Nota de crédito-débito","sidebarTitle":"Crear nota","api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/credit-note","href":"/api/credit-note"},{"title":"Anular nota de crédito-débito (deprecado)","sidebarTitle":"Anular nota","deprecated":true,"api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/cancel-note","href":"/api/cancel-note"},{"title":"Revertir anulación","api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/revert-cancel","href":"/api/revert-cancel"},{"title":"Estado de la factura","sidebarTitle":"Estado","api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/refresh-status","href":"/api/invoice-status"},{"title":"Diagnóstico de rechazos","sidebarTitle":"Diagnóstico de rechazos","api":"GET https://sandbox.cucu.bo/api/v3/invoices/{id}/diagnosis","href":"/api/diagnosis"},{"title":"Confirmación humana","sidebarTitle":"Confirmación humana","api":"POST https://sandbox.cucu.bo/api/v3/confirmations/{confirmationId}","href":"/api/confirmations"},{"title":"Facturas en lote","sidebarTitle":"Lote","api":"POST /api/v3/invoices/batch","href":"/api/batch-invoices"},{"title":"Reenviar correo","api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/resend-email","href":"/api/resend-email"},{"title":"Entrega al comprador","api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/delivery/{channel}/retry","href":"/api/delivery"},{"title":"Dashboard","sidebarTitle":"Dashboard","api":"GET /api/v3/invoices/dashboard","href":"/api/dashboard"}]},{"group":"Documentos sector","pages":[{"title":"Compra venta","href":"/api/sectors/sale"},{"title":"Alquiler de inmuebles","sidebarTitle":"Alquiler","href":"/api/sectors/rent"},{"title":"Bonificaciones","sidebarTitle":"Bonificaciones","href":"/api/sectors/bonificaciones"},{"title":"Nota de crédito-débito","sidebarTitle":"Nota de crédito-débito","href":"/api/sectors/note-credit-debit"},{"title":"Exportación","href":"/api/sectors/export"},{"title":"Exportación de servicios","href":"/api/sectors/export-services"},{"title":"Exportación de minerales","href":"/api/sectors/export-minerals"},{"title":"Venta interna de minerales","sidebarTitle":"Minerales","href":"/api/sectors/minerals"},{"title":"Zona franca","href":"/api/sectors/free-zone"},{"title":"Tasa cero","href":"/api/sectors/duty-free"},{"title":"Sector educativo","sidebarTitle":"Educación","href":"/api/sectors/education"},{"title":"Servicios básicos","href":"/api/sectors/basic-service"},{"title":"Boleto aéreo","sidebarTitle":"Aerolíneas","href":"/api/sectors/airline"},{"title":"Alojamiento","sidebarTitle":"Hotel","href":"/api/sectors/hotel"},{"title":"Hospitales y clínicas","sidebarTitle":"Hospitales","href":"/api/sectors/hospital"},{"title":"Juegos de azar","href":"/api/sectors/games-luck"},{"title":"Telecomunicaciones","href":"/api/sectors/telecom"},{"title":"Entidades financieras","sidebarTitle":"Financieras","href":"/api/sectors/financial"},{"title":"Moneda extranjera","href":"/api/sectors/currency-exchange"},{"title":"Seguros","sidebarTitle":"Seguros","href":"/api/sectors/insurance"}]},{"group":"Utilidades","pages":[{"title":"Webhooks","sidebarTitle":"Webhooks","href":"/api/webhooks"},{"title":"Protección de credenciales","sidebarTitle":"Protección de credenciales","api":"POST https://sandbox.cucu.bo/api/v3/security/credentials/{kid}/resume","href":"/api/security-credentials"},{"title":"Contingencia","sidebarTitle":"Contingencia","href":"/api/events"},{"title":"Emisión masiva","href":"/api/massive-emission"},{"title":"Sucursales y Puntos de Venta","sidebarTitle":"Sucursales y POS","href":"/api/onboarding"},{"title":"Códigos SIAT","href":"/api/codes"},{"title":"Padrón de compradores","sidebarTitle":"Padrón (CI / NIT)","href":"/api/padron"},{"title":"Compras registradas en el SIN","sidebarTitle":"Compras (SIN)","href":"/api/compras"},{"title":"Subir certificado digital","sidebarTitle":"Certificado digital","href":"/api/upload-certificate"},{"title":"Cargar el token delegado del SIN","sidebarTitle":"Token delegado del SIN","href":"/api/token-delegado"},{"title":"Catálogos","href":"/api/catalogs"},{"title":"Normativa (búsqueda)","sidebarTitle":"Normativa","href":"/api/ai"},{"title":"Logo y archivos","href":"/api/storage"}]}]},{"tab":"MCP","icon":"microchip","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"QR Simple","icon":"dollar-sign","pages":[{"title":"QR Simple","href":"/payments/cobros-qr/introduccion"}]},{"tab":"Crypto Checkout","icon":"bitcoin-sign","pages":[{"title":"Crypto Checkout","href":"/payments/crypto/introduccion"}]},{"tab":"Tipo de cambio BCB","icon":"dollar-sign","pages":[{"title":"Tipo de cambio BCB","href":"/bcb-api"}]}]},"basePath":"","title":"Obtener factura - cucu","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","SectionHeading-K1iuDm9j.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js"]}