{ "success": false, "error": { "code": "CONFLICT", "details": "La factura ya fue anulada anteriormente" }, "timestamp": "2026-02-11T14:00:00.000-04:00"}
{ "success": false, "message": "El SIN rechazó la anulación: [4800] La venta está apropiada por el comprador; [3010] LA FACTURA YA SE ENCUENTRA UTILIZADA O CONSOLIDADA (RCV). Qué hacer: …", "error": { "code": "SIAT_REJECTED", "details": "La venta ya está en el Registro de Compras y Ventas del comprador: no se puede anular. Emití una nota de crédito-débito (POST /api/v3/invoices/{id}/credit-note)." }, "timestamp": "2026-11-18T10:03:11.000-04:00"}
{ "success": false, "error": { "code": "CANCEL_OUT_OF_WINDOW", "details": "El SIAT rechazo la anulacion: [934] La solicitud de anulacion esta fuera de plazo. El plazo de anulacion por sistema vencio (hasta el dia 9 del mes siguiente a la emision, RND 102100000011 Art. 38). Para anular fuera de plazo, el contribuyente debe tramitar la anulacion ante la Gerencia Distrital o GRACO (RND 102600000025); una vez aprobada, registrar con POST /api/v3/invoices/{id}/cancel-administrative indicando el numero de Resolucion." }, "timestamp": "2026-02-11T14:00:00.000-04:00"}
Anular factura
POST /api/v3/invoices//cancel: anula una factura ante el SIAT por servicio web, dentro del plazo del SIN (día 9 del mes siguiente).
POST
/
api
/
v3
/
invoices
/
{id}
/
cancel
curl -X POST "https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel?motivo=1" \ -H "X-API-Key: YOUR_API_KEY"
{ "success": false, "error": { "code": "CONFLICT", "details": "La factura ya fue anulada anteriormente" }, "timestamp": "2026-02-11T14:00:00.000-04:00"}
{ "success": false, "message": "El SIN rechazó la anulación: [4800] La venta está apropiada por el comprador; [3010] LA FACTURA YA SE ENCUENTRA UTILIZADA O CONSOLIDADA (RCV). Qué hacer: …", "error": { "code": "SIAT_REJECTED", "details": "La venta ya está en el Registro de Compras y Ventas del comprador: no se puede anular. Emití una nota de crédito-débito (POST /api/v3/invoices/{id}/credit-note)." }, "timestamp": "2026-11-18T10:03:11.000-04:00"}
{ "success": false, "error": { "code": "CANCEL_OUT_OF_WINDOW", "details": "El SIAT rechazo la anulacion: [934] La solicitud de anulacion esta fuera de plazo. El plazo de anulacion por sistema vencio (hasta el dia 9 del mes siguiente a la emision, RND 102100000011 Art. 38). Para anular fuera de plazo, el contribuyente debe tramitar la anulacion ante la Gerencia Distrital o GRACO (RND 102600000025); una vez aprobada, registrar con POST /api/v3/invoices/{id}/cancel-administrative indicando el numero de Resolucion." }, "timestamp": "2026-02-11T14:00:00.000-04:00"}
Anula por servicio web una factura validada, o una nota de crédito/débito: cada documento va al servicio del SIAT que le corresponde (factura → el de su sector; nota → documentos de ajuste). Tool MCP gemela: anularFactura.
Plazo: hasta el día 9 del mes siguiente y si no se usó en una Declaración Jurada. Fuera de plazo ([934] / [941]), 422 CANCEL_OUT_OF_WINDOW: usa Anulación Administrativa.
Rechazo del SIN: si el SIN responde y rechaza la anulación por una regla de negocio, la respuesta es
422 SIAT_REJECTED. message trae los códigos y textos del SIN y error.details, qué hacer.
La respuesta no trae data: el documento no cambia de estado y reintentar da el mismo resultado. Caso típico: la venta ya está en el Registro de
Compras y Ventas del comprador ([4800] / [3010]). Esa factura no se anula: corresponde una
nota de crédito-débito. Si el SIN no contesta, la respuesta es 503
SIAT_UNAVAILABLE con Retry-After: reintentá después.
La factura pasa a CANCELLED sólo si el SIN confirma la anulación. siatCodeState y siatDescription traen el código y el texto del SIN, por ejemplo 905ANULACION CONFIRMADA.
Si el SIN responde 906ANULACION RECHAZADA, la factura sigue vigente y la API responde 422SIAT_REJECTED.
Si el comprador ya registró la venta en su RCV ([4800] / [3010]), la API responde 422 SIAT_REJECTED. En ese caso emití una nota de crédito-débito.
Si el SIN no responde, la API le consulta el estado de la factura. Si el SIN ya la tiene anulada, la anulación se cierra como hecha. Lo mismo pasa al reintentar y recibir [936] (ya anulada).
Sólo puede haber una anulación o reversión en curso por documento. Otra en paralelo responde 409OPERATION_IN_PROGRESS con Retry-After. Reintentá cuando termine.
El webhook invoice.cancelled, el PDF anulado y el correo salen de una cola que se guarda junto con el estado, así que no se pierden si Kafka o el pod fallan. El webhook puede llegar más de una vez: deduplicá por factura y tipo de evento.
Path Parameters
Parametro
Tipo
Req
Descripcion
id
string
Si
UUID de la factura a anular
Query Parameters
Parametro
Tipo
Req
Descripcion
motivo
integer
No
Codigo del catalogo SIAT de motivos de anulacion (ver Catalogos, cancellation-reasons). Default: 1
reason
integer
No
Alias de motivo
Body (opcional)
Sin cuerpo, o {"reason": 1} (también {"motivo": 1}). Sin Content-Type también se acepta.
El motivo se valida contra el catálogo que el SIAT publica (sincronizado para tu empresa). Fuera del catálogo: 400 INVALID_CANCELLATION_REASON, con los motivos válidos en message, sin llamar al SIAT. Lo mismo en notas y en la anulación administrativa.
Con una llave de agente que exige aprobación, la primera llamada responde 428 CONFIRMATION_REQUIRED y no anula hasta que una persona confirme (Confirmación humana).
curl -X POST "https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel?motivo=1" \ -H "X-API-Key: YOUR_API_KEY"
{ "success": false, "error": { "code": "CONFLICT", "details": "La factura ya fue anulada anteriormente" }, "timestamp": "2026-02-11T14:00:00.000-04:00"}
{ "success": false, "message": "El SIN rechazó la anulación: [4800] La venta está apropiada por el comprador; [3010] LA FACTURA YA SE ENCUENTRA UTILIZADA O CONSOLIDADA (RCV). Qué hacer: …", "error": { "code": "SIAT_REJECTED", "details": "La venta ya está en el Registro de Compras y Ventas del comprador: no se puede anular. Emití una nota de crédito-débito (POST /api/v3/invoices/{id}/credit-note)." }, "timestamp": "2026-11-18T10:03:11.000-04:00"}
{ "success": false, "error": { "code": "CANCEL_OUT_OF_WINDOW", "details": "El SIAT rechazo la anulacion: [934] La solicitud de anulacion esta fuera de plazo. El plazo de anulacion por sistema vencio (hasta el dia 9 del mes siguiente a la emision, RND 102100000011 Art. 38). Para anular fuera de plazo, el contribuyente debe tramitar la anulacion ante la Gerencia Distrital o GRACO (RND 102600000025); una vez aprobada, registrar con POST /api/v3/invoices/{id}/cancel-administrative indicando el numero de Resolucion." }, "timestamp": "2026-02-11T14:00:00.000-04:00"}
{"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/cancel-invoice","slug":"/api/cancel-invoice","pageMetadata":{"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"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"POST /api/v3/invoices/\", \"/cancel: anula una factura ante el SIAT por servicio web, dentro del plazo del SIN (día 9 del mes siguiente).\"]\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`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Anula por servicio web una factura validada, o una nota de crédito/débito: cada documento va al servicio del SIAT que le corresponde (factura → el de su sector; nota → documentos de ajuste). Tool MCP gemela: `,_jsx(_components.code,{children:`anularFactura`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Plazo:`}),` hasta el día 9 del mes siguiente y si no se usó en una Declaración Jurada. Fuera de plazo (`,_jsx(_components.code,{children:`[934]`}),` / `,_jsx(_components.code,{children:`[941]`}),`), `,_jsxs(_components.strong,{children:[`422 `,_jsx(_components.code,{children:`CANCEL_OUT_OF_WINDOW`})]}),`: usa `,_jsx(_components.a,{href:`/api/cancel-administrative`,children:`Anulación Administrativa`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Rechazo del SIN:`}),` si el SIN responde y rechaza la anulación por una regla de negocio, la respuesta es\n`,_jsxs(_components.strong,{children:[`422 `,_jsx(_components.a,{href:`/errors#siat_rejected`,children:_jsx(_components.code,{children:`SIAT_REJECTED`})})]}),`. `,_jsx(_components.code,{children:`message`}),` trae los códigos y textos del SIN y `,_jsx(_components.code,{children:`error.details`}),`, qué hacer.\nLa respuesta no trae `,_jsx(_components.code,{children:`data`}),`: el documento no cambia de estado y reintentar da el mismo resultado. Caso típico: la venta ya está en el Registro de\nCompras y Ventas del comprador (`,_jsx(_components.code,{children:`[4800]`}),` / `,_jsx(_components.code,{children:`[3010]`}),`). Esa factura no se anula: corresponde una\n`,_jsx(_components.a,{href:`/api/credit-note`,children:`nota de crédito-débito`}),`. Si el SIN no contesta, la respuesta es `,_jsxs(_components.strong,{children:[`503\n`,_jsx(_components.a,{href:`/errors#siat_unavailable`,children:_jsx(_components.code,{children:`SIAT_UNAVAILABLE`})})]}),` con `,_jsx(_components.code,{children:`Retry-After`}),`: reintentá después.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Reversible con `,_jsx(_components.a,{href:`/api/revert-cancel`,children:`Revertir Anulación`}),` mientras esté en `,_jsx(_components.code,{children:`CANCELLED`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`cómo-se-decide-el-resultado`,children:`Cómo se decide el resultado`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`La factura pasa a `,_jsx(_components.code,{children:`CANCELLED`}),` sólo si el SIN confirma la anulación. `,_jsx(_components.code,{children:`siatCodeState`}),` y `,_jsx(_components.code,{children:`siatDescription`}),` traen el código y el texto del SIN, por ejemplo `,_jsx(_components.code,{children:`905`}),` `,_jsx(_components.code,{children:`ANULACION CONFIRMADA`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Si el SIN responde `,_jsx(_components.code,{children:`906`}),` `,_jsx(_components.code,{children:`ANULACION RECHAZADA`}),`, la factura sigue vigente y la API responde `,_jsx(_components.code,{children:`422`}),` `,_jsx(_components.a,{href:`/errors#siat_rejected`,children:_jsx(_components.code,{children:`SIAT_REJECTED`})}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Si el comprador ya registró la venta en su RCV (`,_jsx(_components.code,{children:`[4800]`}),` / `,_jsx(_components.code,{children:`[3010]`}),`), la API responde `,_jsx(_components.code,{children:`422 SIAT_REJECTED`}),`. En ese caso emití una `,_jsx(_components.a,{href:`/api/credit-note`,children:`nota de crédito-débito`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Si el SIN no responde, la API le consulta el estado de la factura. Si el SIN ya la tiene anulada, la anulación se cierra como hecha. Lo mismo pasa al reintentar y recibir `,_jsx(_components.code,{children:`[936]`}),` (ya anulada).`]}),`\n`,_jsxs(_components.li,{children:[`Sólo puede haber una anulación o reversión en curso por documento. Otra en paralelo responde `,_jsx(_components.code,{children:`409`}),` `,_jsx(_components.a,{href:`/errors#operation_in_progress`,children:_jsx(_components.code,{children:`OPERATION_IN_PROGRESS`})}),` con `,_jsx(_components.code,{children:`Retry-After`}),`. Reintentá cuando termine.`]}),`\n`,_jsxs(_components.li,{children:[`El webhook `,_jsx(_components.code,{children:`invoice.cancelled`}),`, el PDF anulado y el correo salen de una cola que se guarda junto con el estado, así que no se pierden si Kafka o el pod fallan. El webhook puede llegar más de una vez: deduplicá por factura y tipo de evento.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,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 a anular`})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query 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`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`motivo`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Codigo del catalogo SIAT de motivos de anulacion (ver `,_jsx(_components.a,{href:`/api/catalogs`,children:`Catalogos`}),`, `,_jsx(_components.code,{children:`cancellation-reasons`}),`). Default: `,_jsx(_components.code,{children:`1`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Alias de `,_jsx(_components.code,{children:`motivo`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`body-opcional`,children:`Body (opcional)`}),`\n`,_jsxs(_components.p,{children:[`Sin cuerpo, o `,_jsx(_components.code,{children:`{\"reason\": 1}`}),` (también `,_jsx(_components.code,{children:`{\"motivo\": 1}`}),`). Sin `,_jsx(_components.code,{children:`Content-Type`}),` también se acepta.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Caso`}),_jsx(_components.th,{children:`Respuesta`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Cuerpo vacío o `,_jsx(_components.code,{children:`null`})]}),_jsxs(_components.td,{children:[`Anula con el motivo de la query, o `,_jsx(_components.code,{children:`1`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cuerpo que no es JSON válido, o no es un objeto`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`400`}),` `,_jsx(_components.a,{href:`/errors#invalid_json`,children:_jsx(_components.code,{children:`INVALID_JSON`})}),`: `,_jsx(_components.strong,{children:`no anula`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`motivo`}),` y `,_jsx(_components.code,{children:`reason`}),` (query o cuerpo) con valores distintos`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`400`}),` `,_jsx(_components.a,{href:`/errors#validation_error`,children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),`, campo `,_jsx(_components.code,{children:`reason`}),`, código `,_jsx(_components.a,{href:`/errors#conflict`,children:_jsx(_components.code,{children:`CONFLICT`})}),`: no anula`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`El motivo se valida contra el catálogo que el SIAT publica (sincronizado para tu empresa). Fuera del catálogo: `,_jsx(_components.code,{children:`400 INVALID_CANCELLATION_REASON`}),`, con los motivos válidos en `,_jsx(_components.code,{children:`message`}),`, sin llamar al SIAT. Lo mismo en notas y en la anulación administrativa.`]})}),`\n`,_jsx(Heading,{level:`2`,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`})]})}),_jsxs(_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`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Company-ID`})}),_jsx(_components.td,{children:`uuid`}),_jsxs(_components.td,{children:[`Solo `,_jsx(_components.code,{children:`ck_svc_`})]}),_jsxs(_components.td,{children:[`Con una `,_jsx(_components.a,{href:`/authentication#credenciales-de-servicio`,children:`credencial de servicio`}),`: sólo anula facturas de esa empresa`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Con una llave de agente que exige aprobación, la primera llamada responde `,_jsx(_components.code,{children:`428 CONFIRMATION_REQUIRED`}),` y no anula hasta que una persona confirme (`,_jsx(_components.a,{href:`/api/confirmations`,children:`Confirmación humana`}),`).`]})})]})}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":"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"}}},"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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._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:[`Anula por servicio web una factura validada, o una nota de crédito/débito: cada documento va al servicio del SIAT que le corresponde (factura → el de su sector; nota → documentos de ajuste). Tool MCP gemela: `,_jsx(_components.code,{children:`anularFactura`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Plazo:`}),` hasta el día 9 del mes siguiente y si no se usó en una Declaración Jurada. Fuera de plazo (`,_jsx(_components.code,{children:`[934]`}),` / `,_jsx(_components.code,{children:`[941]`}),`), `,_jsxs(_components.strong,{children:[`422 `,_jsx(_components.code,{children:`CANCEL_OUT_OF_WINDOW`})]}),`: usa `,_jsx(_components.a,{href:`/api/cancel-administrative`,children:`Anulación Administrativa`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Rechazo del SIN:`}),` si el SIN responde y rechaza la anulación por una regla de negocio, la respuesta es\n`,_jsxs(_components.strong,{children:[`422 `,_jsx(_components.a,{href:`/errors#siat_rejected`,children:_jsx(_components.code,{children:`SIAT_REJECTED`})})]}),`. `,_jsx(_components.code,{children:`message`}),` trae los códigos y textos del SIN y `,_jsx(_components.code,{children:`error.details`}),`, qué hacer.\nLa respuesta no trae `,_jsx(_components.code,{children:`data`}),`: el documento no cambia de estado y reintentar da el mismo resultado. Caso típico: la venta ya está en el Registro de\nCompras y Ventas del comprador (`,_jsx(_components.code,{children:`[4800]`}),` / `,_jsx(_components.code,{children:`[3010]`}),`). Esa factura no se anula: corresponde una\n`,_jsx(_components.a,{href:`/api/credit-note`,children:`nota de crédito-débito`}),`. Si el SIN no contesta, la respuesta es `,_jsxs(_components.strong,{children:[`503\n`,_jsx(_components.a,{href:`/errors#siat_unavailable`,children:_jsx(_components.code,{children:`SIAT_UNAVAILABLE`})})]}),` con `,_jsx(_components.code,{children:`Retry-After`}),`: reintentá después.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Reversible con `,_jsx(_components.a,{href:`/api/revert-cancel`,children:`Revertir Anulación`}),` mientras esté en `,_jsx(_components.code,{children:`CANCELLED`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`cómo-se-decide-el-resultado`,children:`Cómo se decide el resultado`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`La factura pasa a `,_jsx(_components.code,{children:`CANCELLED`}),` sólo si el SIN confirma la anulación. `,_jsx(_components.code,{children:`siatCodeState`}),` y `,_jsx(_components.code,{children:`siatDescription`}),` traen el código y el texto del SIN, por ejemplo `,_jsx(_components.code,{children:`905`}),` `,_jsx(_components.code,{children:`ANULACION CONFIRMADA`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Si el SIN responde `,_jsx(_components.code,{children:`906`}),` `,_jsx(_components.code,{children:`ANULACION RECHAZADA`}),`, la factura sigue vigente y la API responde `,_jsx(_components.code,{children:`422`}),` `,_jsx(_components.a,{href:`/errors#siat_rejected`,children:_jsx(_components.code,{children:`SIAT_REJECTED`})}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Si el comprador ya registró la venta en su RCV (`,_jsx(_components.code,{children:`[4800]`}),` / `,_jsx(_components.code,{children:`[3010]`}),`), la API responde `,_jsx(_components.code,{children:`422 SIAT_REJECTED`}),`. En ese caso emití una `,_jsx(_components.a,{href:`/api/credit-note`,children:`nota de crédito-débito`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Si el SIN no responde, la API le consulta el estado de la factura. Si el SIN ya la tiene anulada, la anulación se cierra como hecha. Lo mismo pasa al reintentar y recibir `,_jsx(_components.code,{children:`[936]`}),` (ya anulada).`]}),`\n`,_jsxs(_components.li,{children:[`Sólo puede haber una anulación o reversión en curso por documento. Otra en paralelo responde `,_jsx(_components.code,{children:`409`}),` `,_jsx(_components.a,{href:`/errors#operation_in_progress`,children:_jsx(_components.code,{children:`OPERATION_IN_PROGRESS`})}),` con `,_jsx(_components.code,{children:`Retry-After`}),`. Reintentá cuando termine.`]}),`\n`,_jsxs(_components.li,{children:[`El webhook `,_jsx(_components.code,{children:`invoice.cancelled`}),`, el PDF anulado y el correo salen de una cola que se guarda junto con el estado, así que no se pierden si Kafka o el pod fallan. El webhook puede llegar más de una vez: deduplicá por factura y tipo de evento.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,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 a anular`})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query 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`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`motivo`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Codigo del catalogo SIAT de motivos de anulacion (ver `,_jsx(_components.a,{href:`/api/catalogs`,children:`Catalogos`}),`, `,_jsx(_components.code,{children:`cancellation-reasons`}),`). Default: `,_jsx(_components.code,{children:`1`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Alias de `,_jsx(_components.code,{children:`motivo`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`body-opcional`,children:`Body (opcional)`}),`\n`,_jsxs(_components.p,{children:[`Sin cuerpo, o `,_jsx(_components.code,{children:`{\"reason\": 1}`}),` (también `,_jsx(_components.code,{children:`{\"motivo\": 1}`}),`). Sin `,_jsx(_components.code,{children:`Content-Type`}),` también se acepta.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Caso`}),_jsx(_components.th,{children:`Respuesta`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Cuerpo vacío o `,_jsx(_components.code,{children:`null`})]}),_jsxs(_components.td,{children:[`Anula con el motivo de la query, o `,_jsx(_components.code,{children:`1`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cuerpo que no es JSON válido, o no es un objeto`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`400`}),` `,_jsx(_components.a,{href:`/errors#invalid_json`,children:_jsx(_components.code,{children:`INVALID_JSON`})}),`: `,_jsx(_components.strong,{children:`no anula`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`motivo`}),` y `,_jsx(_components.code,{children:`reason`}),` (query o cuerpo) con valores distintos`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`400`}),` `,_jsx(_components.a,{href:`/errors#validation_error`,children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),`, campo `,_jsx(_components.code,{children:`reason`}),`, código `,_jsx(_components.a,{href:`/errors#conflict`,children:_jsx(_components.code,{children:`CONFLICT`})}),`: no anula`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`El motivo se valida contra el catálogo que el SIAT publica (sincronizado para tu empresa). Fuera del catálogo: `,_jsx(_components.code,{children:`400 INVALID_CANCELLATION_REASON`}),`, con los motivos válidos en `,_jsx(_components.code,{children:`message`}),`, sin llamar al SIAT. Lo mismo en notas y en la anulación administrativa.`]})}),`\n`,_jsx(Heading,{level:`2`,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`})]})}),_jsxs(_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`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Company-ID`})}),_jsx(_components.td,{children:`uuid`}),_jsxs(_components.td,{children:[`Solo `,_jsx(_components.code,{children:`ck_svc_`})]}),_jsxs(_components.td,{children:[`Con una `,_jsx(_components.a,{href:`/authentication#credenciales-de-servicio`,children:`credencial de servicio`}),`: sólo anula facturas de esa empresa`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Con una llave de agente que exige aprobación, la primera llamada responde `,_jsx(_components.code,{children:`428 CONFIRMATION_REQUIRED`}),` y no anula hasta que una persona confirme (`,_jsx(_components.a,{href:`/api/confirmations`,children:`Confirmación humana`}),`).`]})}),`\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:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel?motivo=1\"`}),_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(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`16`,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:`16`,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:` \"message\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Factura anulada exitosamente\"`}),_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:`\"CANCELLED\"`}),_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:`905`}),_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:`\"ANULACION CONFIRMADA\"`}),_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:` \"cancellationType\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"SIAT\"`}),_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:` \"cancellationReason\"`}),_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:` \"cancellationDate\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"2026-02-11T14:00:00.000-04:00\"`})]}),`\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-11T14:00:00.000-04:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`409`,numberOfLines:`8`,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:`8`,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:`false`}),_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:` \"error\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"CONFLICT\"`}),_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:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"La factura ya fue anulada anteriormente\"`})]}),`\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-11T14:00:00.000-04:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422`,numberOfLines:`9`,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:`9`,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:`false`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"El SIN rechazó la anulación: [4800] La venta está apropiada por el comprador; [3010] LA FACTURA YA SE ENCUENTRA UTILIZADA O CONSOLIDADA (RCV). Qué hacer: …\"`}),_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:` \"error\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"SIAT_REJECTED\"`}),_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:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"La venta ya está en el Registro de Compras y Ventas del comprador: no se puede anular. Emití una nota de crédito-débito (POST /api/v3/invoices/{id}/credit-note).\"`})]}),`\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-11-18T10:03:11.000-04:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422`,numberOfLines:`8`,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:`8`,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:`false`}),_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:` \"error\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"CANCEL_OUT_OF_WINDOW\"`}),_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:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"El SIAT rechazo la anulacion: [934] La solicitud de anulacion esta fuera de plazo. El plazo de anulacion por sistema vencio (hasta el dia 9 del mes siguiente a la emision, RND 102100000011 Art. 38). Para anular fuera de plazo, el contribuyente debe tramitar la anulacion ante la Gerencia Distrital o GRACO (RND 102600000025); una vez aprobada, registrar con POST /api/v3/invoices/{id}/cancel-administrative indicando el numero de Resolucion.\"`})]}),`\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-11T14:00:00.000-04:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})})]})]})}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":"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"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Cómo se decide el resultado","slug":"cómo-se-decide-el-resultado","depth":2,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Query Parameters","slug":"query-parameters","depth":2,"children":[]},{"title":"Body (opcional)","slug":"body-opcional","depth":2,"children":[]},{"title":"Headers","slug":"headers","depth":2,"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\"> POST\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> \"https://sandbox.cucu.bo/api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel?motivo=1\"\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=\"16\">\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\"> \"message\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"Factura anulada exitosamente\"\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\">\"CANCELLED\"\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\">905\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\">\"ANULACION CONFIRMADA\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"cancellationType\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"SIAT\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"cancellationReason\"\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\"> \"cancellationDate\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"2026-02-11T14: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\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-11T14: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>"},{"filename":"409","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=\"8\">\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\">false\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"error\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"code\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"CONFLICT\"\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>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"La factura ya fue anulada anteriormente\"\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-11T14: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>"},{"filename":"422","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=\"9\">\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\">false\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"message\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"El SIN rechazó la anulación: [4800] La venta está apropiada por el comprador; [3010] LA FACTURA YA SE ENCUENTRA UTILIZADA O CONSOLIDADA (RCV). Qué hacer: …\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"error\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"code\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"SIAT_REJECTED\"\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>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"La venta ya está en el Registro de Compras y Ventas del comprador: no se puede anular. Emití una nota de crédito-débito (POST /api/v3/invoices/{id}/credit-note).\"\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-11-18T10:03:11.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>"},{"filename":"422","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=\"8\">\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\">false\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"error\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> \"code\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"CANCEL_OUT_OF_WINDOW\"\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>\u003cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"El SIAT rechazo la anulacion: [934] La solicitud de anulacion esta fuera de plazo. El plazo de anulacion por sistema vencio (hasta el dia 9 del mes siguiente a la emision, RND 102100000011 Art. 38). Para anular fuera de plazo, el contribuyente debe tramitar la anulacion ante la Gerencia Distrital o GRACO (RND 102600000025); una vez aprobada, registrar con POST /api/v3/invoices/{id}/cancel-administrative indicando el numero de Resolucion.\"\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-11T14: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":"Anular factura","path":"/api/v3/invoices/{id}/cancel","servers":[{"url":"https://sandbox.cucu.bo"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":["/_mintlify/custom/cucuapillc/1aec875b6218c4f8/floating-cta.js"],"subdomain":"cucuapillc","siteName":"cucu","title":"Anular factura - cucu","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T11:42:46.231Z","originalFileLocation":"api/cancel-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=\"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).\">\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=\"Anular factura - cucu\">\u003cmeta data-mint-head property=\"og:description\" content=\"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).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"cucu\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cucu.bo/api/cancel-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=Anular+factura\u0026amp;description=POST+%2Fapi%2Fv3%2Finvoices%2F%7Bid%7D%2Fcancel%3A+anula+una+factura+ante+el+SIAT+por+servicio+web%2C+dentro+del+plazo+del+SIN+%28d%C3%ADa+9+del+mes+siguiente%29.\u0026amp;theme=3f167675716c1a02901b7f3c\u0026amp;signature=5a8d6c6178ea6a7b9274108d33232ecfd5fb6e5341a19828ea34517913c7ec0c\">\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=\"Anular factura - cucu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cucuapillc.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Anular+factura\u0026amp;description=POST+%2Fapi%2Fv3%2Finvoices%2F%7Bid%7D%2Fcancel%3A+anula+una+factura+ante+el+SIAT+por+servicio+web%2C+dentro+del+plazo+del+SIN+%28d%C3%ADa+9+del+mes+siguiente%29.\u0026amp;theme=3f167675716c1a02901b7f3c\u0026amp;signature=5a8d6c6178ea6a7b9274108d33232ecfd5fb6e5341a19828ea34517913c7ec0c\">\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/cancel-invoice\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/cancel-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/cancel-invoice#webpage\",\"url\":\"https://docs.cucu.bo/api/cancel-invoice\",\"name\":\"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).\",\"dateModified\":\"2026-11-19T11:42:46.231Z\",\"isPartOf\":{\"@id\":\"https://docs.cucu.bo#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cucu.bo/api/cancel-invoice#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cucu.bo/api/cancel-invoice#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.cucu.bo/api/companies\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Anular factura\",\"item\":\"https://docs.cucu.bo/api/cancel-invoice\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cucu.bo/api/cancel-invoice#apireference\",\"headline\":\"Anular factura\",\"name\":\"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).\",\"url\":\"https://docs.cucu.bo/api/cancel-invoice\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cucu.bo/api/cancel-invoice#webpage\"},\"dateModified\":\"2026-11-19T11:42:46.231Z\",\"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/cancel-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)","api":"GET https://sandbox.cucu.bo/api/v3/invoices/search","deprecated":true,"href":"/api/search-invoices"},{"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"},{"title":"Anular factura","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","description":"POST /api/v3/invoices/{id}/cancel-administrative: registra una anulación fuera de plazo aprobada por Resolución Administrativa del SIN (RND 102600000025).","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":"Anular 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"]}