{ "success": false, "error": { "code": "CONFLICT", "details": "La nota ya está anulada" }, "timestamp": "2026-02-22T14:00:00.000-04:00"}
{ "success": false, "error": { "code": "NOT_A_CREDIT_DEBIT_NOTE", "details": "El documento a1b2c3d4-e5f6-7890-abcd-ef1234567890 es una factura, no una nota de crédito/débito: anúlela con POST /api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel" }, "timestamp": "2026-02-22T14:00:00.000-04:00"}
Anular nota de crédito-débito (deprecado)
POST /api/v3/invoices//cancel-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices//cancel, que anula facturas y notas.
POST
/
api
/
v3
/
invoices
/
{id}
/
cancel-note
curl -X POST "https://sandbox.cucu.bo/api/v3/invoices/b2c3d4e5-f6a7-8901-bcde-f12345678901/cancel-note?motivo=1" \ -H "X-API-Key: YOUR_API_KEY"
{ "success": false, "error": { "code": "CONFLICT", "details": "La nota ya está anulada" }, "timestamp": "2026-02-22T14:00:00.000-04:00"}
{ "success": false, "error": { "code": "NOT_A_CREDIT_DEBIT_NOTE", "details": "El documento a1b2c3d4-e5f6-7890-abcd-ef1234567890 es una factura, no una nota de crédito/débito: anúlela con POST /api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel" }, "timestamp": "2026-02-22T14:00:00.000-04:00"}
Anula una nota de crédito o débito validada ante el servicio de documentos de ajuste del SIAT. Irreversible.
Deprecado hasta el 2027-05-18 (rutas deprecadas): usá POST /invoices/{id}/cancel, que anula facturas y notas (cada documento va al servicio del SIAT que le corresponde). Esta ruta sólo acepta notas: con el id de una factura responde 409 NOT_A_CREDIT_DEBIT_NOTE sin llamar al SIAT.
Si el SIN rechaza la anulación, la respuesta es 422 SIAT_REJECTED y la nota no cambia de
estado; si no contesta, 503 SIAT_UNAVAILABLE con Retry-After. Igual que en
Anular factura.
Path Parameters
Parametro
Tipo
Req
Descripcion
id
UUID
Si
UUID de la nota credito/debito a anular
Query Parameters
Parametro
Tipo
Req
Descripcion
motivo
integer
No
Codigo de motivo de anulacion: 1 Error de datos, 2 Devolucion, 3 Periodo posterior, 4 Otro. Default: 1
Headers
Parametro
Tipo
Req
Descripcion
X-API-Key
string
Si
Tu API Key
curl -X POST "https://sandbox.cucu.bo/api/v3/invoices/b2c3d4e5-f6a7-8901-bcde-f12345678901/cancel-note?motivo=1" \ -H "X-API-Key: YOUR_API_KEY"
{ "success": false, "error": { "code": "CONFLICT", "details": "La nota ya está anulada" }, "timestamp": "2026-02-22T14:00:00.000-04:00"}
{ "success": false, "error": { "code": "NOT_A_CREDIT_DEBIT_NOTE", "details": "El documento a1b2c3d4-e5f6-7890-abcd-ef1234567890 es una factura, no una nota de crédito/débito: anúlela con POST /api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel" }, "timestamp": "2026-02-22T14:00:00.000-04:00"}
No revierte los ajustes en la factura original. Para corregir, anula la nota y crea una nueva.
{"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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-note","slug":"/api/cancel-note","pageMetadata":{"title":"Anular nota de crédito-débito (deprecado)","sidebarTitle":"Anular nota","description":"POST /api/v3/invoices/{id}/cancel-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices/{id}/cancel, que anula facturas y notas.","deprecated":true,"api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/cancel-note","href":"/api/cancel-note"},"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-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices/\", \"/cancel, que anula facturas y notas.\"]\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`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Info,Table,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Anula una nota de crédito o débito validada ante el servicio de documentos de ajuste del SIAT. `,_jsx(_components.strong,{children:`Irreversible.`})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Deprecado hasta el 2027-05-18 (`,_jsx(_components.a,{href:`/api/versionado#rutas-deprecadas`,children:`rutas deprecadas`}),`): usá `,_jsx(_components.a,{href:`/api/cancel-invoice`,children:_jsx(_components.code,{children:`POST /invoices/{id}/cancel`})}),`, que anula facturas y notas (cada documento va al servicio del SIAT que le corresponde). Esta ruta sólo acepta notas: con el `,_jsx(_components.code,{children:`id`}),` de una factura responde `,_jsxs(_components.strong,{children:[`409 `,_jsx(_components.code,{children:`NOT_A_CREDIT_DEBIT_NOTE`})]}),` sin llamar al SIAT.`]})}),`\n`,_jsxs(_components.p,{children:[`Si el SIN rechaza la anulación, la respuesta es `,_jsxs(_components.strong,{children:[`422 `,_jsx(_components.a,{href:`/errors#siat_rejected`,children:_jsx(_components.code,{children:`SIAT_REJECTED`})})]}),` y la nota no cambia de\nestado; si no contesta, `,_jsxs(_components.strong,{children:[`503 `,_jsx(_components.a,{href:`/errors#siat_unavailable`,children:_jsx(_components.code,{children:`SIAT_UNAVAILABLE`})})]}),` con `,_jsx(_components.code,{children:`Retry-After`}),`. Igual que en\n`,_jsx(_components.a,{href:`/api/cancel-invoice`,children:`Anular factura`}),`.`]}),`\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:`UUID`}),_jsx(_components.td,{children:`Si`}),_jsx(_components.td,{children:`UUID de la nota credito/debito 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`})]})}),_jsx(_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 de motivo de anulacion: `,_jsx(_components.code,{children:`1`}),` Error de datos, `,_jsx(_components.code,{children:`2`}),` Devolucion, `,_jsx(_components.code,{children:`3`}),` Periodo posterior, `,_jsx(_components.code,{children:`4`}),` Otro. Default: `,_jsx(_components.code,{children:`1`})]})]})})]}),`\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`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-API-Key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Si`}),_jsx(_components.td,{children:`Tu API Key`})]})})]}),`\n`,`\n`,`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`No revierte los ajustes en la factura original. Para corregir, anula la nota y `,_jsx(_components.a,{href:`/api/credit-note`,children:`crea una nueva`}),`.`]})})]})}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 nota de crédito-débito (deprecado)","sidebarTitle":"Anular nota","description":"POST /api/v3/invoices/{id}/cancel-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices/{id}/cancel, que anula facturas y notas.","deprecated":true,"api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/cancel-note","href":"/api/cancel-note"}}},"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,RequestExample,ResponseExample,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Anula una nota de crédito o débito validada ante el servicio de documentos de ajuste del SIAT. `,_jsx(_components.strong,{children:`Irreversible.`})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Deprecado hasta el 2027-05-18 (`,_jsx(_components.a,{href:`/api/versionado#rutas-deprecadas`,children:`rutas deprecadas`}),`): usá `,_jsx(_components.a,{href:`/api/cancel-invoice`,children:_jsx(_components.code,{children:`POST /invoices/{id}/cancel`})}),`, que anula facturas y notas (cada documento va al servicio del SIAT que le corresponde). Esta ruta sólo acepta notas: con el `,_jsx(_components.code,{children:`id`}),` de una factura responde `,_jsxs(_components.strong,{children:[`409 `,_jsx(_components.code,{children:`NOT_A_CREDIT_DEBIT_NOTE`})]}),` sin llamar al SIAT.`]})}),`\n`,_jsxs(_components.p,{children:[`Si el SIN rechaza la anulación, la respuesta es `,_jsxs(_components.strong,{children:[`422 `,_jsx(_components.a,{href:`/errors#siat_rejected`,children:_jsx(_components.code,{children:`SIAT_REJECTED`})})]}),` y la nota no cambia de\nestado; si no contesta, `,_jsxs(_components.strong,{children:[`503 `,_jsx(_components.a,{href:`/errors#siat_unavailable`,children:_jsx(_components.code,{children:`SIAT_UNAVAILABLE`})})]}),` con `,_jsx(_components.code,{children:`Retry-After`}),`. Igual que en\n`,_jsx(_components.a,{href:`/api/cancel-invoice`,children:`Anular factura`}),`.`]}),`\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:`UUID`}),_jsx(_components.td,{children:`Si`}),_jsx(_components.td,{children:`UUID de la nota credito/debito 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`})]})}),_jsx(_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 de motivo de anulacion: `,_jsx(_components.code,{children:`1`}),` Error de datos, `,_jsx(_components.code,{children:`2`}),` Devolucion, `,_jsx(_components.code,{children:`3`}),` Periodo posterior, `,_jsx(_components.code,{children:`4`}),` Otro. Default: `,_jsx(_components.code,{children:`1`})]})]})})]}),`\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`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-API-Key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Si`}),_jsx(_components.td,{children:`Tu API Key`})]})})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"https://sandbox.cucu.bo/api/v3/invoices/b2c3d4e5-f6a7-8901-bcde-f12345678901/cancel-note?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:`13`,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:`13`,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:`\"Nota 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:`\"b2c3d4e5-f6a7-8901-bcde-f12345678901\"`}),_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:`10`}),_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:`\"3983G8305613443F748GCBGCD4765FB93313BE59F1A7AF25FCFC9BG85\"`}),_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:` \"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-22T14: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-22T14: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 nota ya está anulada\"`})]}),`\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-22T14: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 (id de factura)`,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:`\"NOT_A_CREDIT_DEBIT_NOTE\"`}),_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 documento a1b2c3d4-e5f6-7890-abcd-ef1234567890 es una factura, no una nota de crédito/débito: anúlela con POST /api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel\"`})]}),`\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-22T14:00:00.000-04:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`No revierte los ajustes en la factura original. Para corregir, anula la nota y `,_jsx(_components.a,{href:`/api/credit-note`,children:`crea una nueva`}),`.`]})})]})}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 nota de crédito-débito (deprecado)","sidebarTitle":"Anular nota","description":"POST /api/v3/invoices/{id}/cancel-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices/{id}/cancel, que anula facturas y notas.","deprecated":true,"api":"POST https://sandbox.cucu.bo/api/v3/invoices/{id}/cancel-note","href":"/api/cancel-note"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Query Parameters","slug":"query-parameters","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/b2c3d4e5-f6a7-8901-bcde-f12345678901/cancel-note?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=\"13\">\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\">\"Nota 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\">\"b2c3d4e5-f6a7-8901-bcde-f12345678901\"\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\">10\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\">\"3983G8305613443F748GCBGCD4765FB93313BE59F1A7AF25FCFC9BG85\"\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\"> \"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-22T14: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-22T14: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 nota ya está anulada\"\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-22T14: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 (id de factura)","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\">\"NOT_A_CREDIT_DEBIT_NOTE\"\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 documento a1b2c3d4-e5f6-7890-abcd-ef1234567890 es una factura, no una nota de crédito/débito: anúlela con POST /api/v3/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/cancel\"\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-22T14: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 nota de crédito-débito (deprecado)","path":"/api/v3/invoices/{id}/cancel-note","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 nota de crédito-débito (deprecado) - cucu","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T11:39:42.277Z","originalFileLocation":"api/cancel-note.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-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices/{id}/cancel, que anula facturas y notas.\">\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 nota de crédito-débito (deprecado) - cucu\">\u003cmeta data-mint-head property=\"og:description\" content=\"POST /api/v3/invoices/{id}/cancel-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices/{id}/cancel, que anula facturas y notas.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"cucu\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cucu.bo/api/cancel-note\">\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+nota+de+cr%C3%A9dito-d%C3%A9bito+%28deprecado%29\u0026amp;description=POST+%2Fapi%2Fv3%2Finvoices%2F%7Bid%7D%2Fcancel-note%2C+deprecado+hasta+el+2027-05-18%3A+anula+una+nota+de+cr%C3%A9dito-d%C3%A9bito.+Usa+POST+%2Fapi%2Fv3%2Finvoices%2F%7Bid%7D%2Fcancel%2C+que+anula+factur\u0026amp;theme=3f167675716c1a02901b7f3c\u0026amp;signature=20bd22cc8b62ac341ab4ef661faf1b8461639b4bb16ef19f2de4a6e1ae6a3ce8\">\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 nota de crédito-débito (deprecado) - cucu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"POST /api/v3/invoices/{id}/cancel-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices/{id}/cancel, que anula facturas y notas.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cucuapillc.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Anular+nota+de+cr%C3%A9dito-d%C3%A9bito+%28deprecado%29\u0026amp;description=POST+%2Fapi%2Fv3%2Finvoices%2F%7Bid%7D%2Fcancel-note%2C+deprecado+hasta+el+2027-05-18%3A+anula+una+nota+de+cr%C3%A9dito-d%C3%A9bito.+Usa+POST+%2Fapi%2Fv3%2Finvoices%2F%7Bid%7D%2Fcancel%2C+que+anula+factur\u0026amp;theme=3f167675716c1a02901b7f3c\u0026amp;signature=20bd22cc8b62ac341ab4ef661faf1b8461639b4bb16ef19f2de4a6e1ae6a3ce8\">\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-note\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/cancel-note.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-note#webpage\",\"url\":\"https://docs.cucu.bo/api/cancel-note\",\"name\":\"Anular nota de crédito-débito (deprecado)\",\"description\":\"POST /api/v3/invoices/{id}/cancel-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices/{id}/cancel, que anula facturas y notas.\",\"dateModified\":\"2026-11-19T11:39:42.277Z\",\"isPartOf\":{\"@id\":\"https://docs.cucu.bo#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cucu.bo/api/cancel-note#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cucu.bo/api/cancel-note#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.cucu.bo/api/companies\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Anular nota de crédito-débito (deprecado)\",\"item\":\"https://docs.cucu.bo/api/cancel-note\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cucu.bo/api/cancel-note#apireference\",\"headline\":\"Anular nota de crédito-débito (deprecado)\",\"name\":\"Anular nota de crédito-débito (deprecado)\",\"description\":\"POST /api/v3/invoices/{id}/cancel-note, deprecado hasta el 2027-05-18: anula una nota de crédito-débito. Usa POST /api/v3/invoices/{id}/cancel, que anula facturas y notas.\",\"url\":\"https://docs.cucu.bo/api/cancel-note\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cucu.bo/api/cancel-note#webpage\"},\"dateModified\":\"2026-11-19T11:39:42.277Z\",\"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-note.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","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","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","description":"Emite una nota de credito o debito contra una factura original validada.","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","description":"POST /api/v3/invoices/{id}/revert-cancel: revierte la anulación de una factura ante el SIAT (CANCELLED → VALIDATED), conservando número y CUF.","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 nota de crédito-débito (deprecado) - 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"]}