{
"error": "No se pudo anular ningún documento",
"details": [
{
"document_id": "docu_1234567890123456789",
"error": "Solo se pueden anular documentos de tipo ['33', '34', '39', '41', '46', '80', '110']. Tipo actual: 52"
}
]
}
Documentos
Anular facturas con nota de crédito por API (API v2)
POST /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.
{
"error": "No se pudo anular ningún documento",
"details": [
{
"document_id": "docu_1234567890123456789",
"error": "Solo se pueden anular documentos de tipo ['33', '34', '39', '41', '46', '80', '110']. Tipo actual: 52"
}
]
}
Una factura emitida no se borra del SII: se anula emitiendo una nota de crédito que la referencia con el código 1 del SII, “Anula documento de la referencia”. Con POST /v2/documents/actions/batch/ y la acción annul_with_credit_note, Tupana arma esa nota de crédito copiando el receptor y las líneas del documento original, la emite en el SII y te la devuelve con su folio.
Si algunos documentos no se pudieron anular, vienen en partial_errors con su document_id y el motivo; los demás se anulan igual. Si no se pudo anular ninguno, responde 400 con el detalle de cada uno.
La nota de crédito es un documento más: la consultas con GET /v2/documents/{id}/, con su PDF y XML, y te llegan los mismos webhooks que en una emisión.
Authorizations
Authorization
string
header
required
API Key para autenticación. Debe proporcionarse en el header Authorization con el formato: 'Api-Key YOUR-API-KEY' (incluye el prefijo 'Api-Key ' seguido de tu API key)
Body
application/json
action_type
enum<string>
default:annul_with_credit_note
required
Siempre annul_with_credit_note.
Available options:
annul_with_credit_note
document_ids
string[]
required
IDs de los documentos a anular: los mismos id que devuelve la emisión o GET /v2/documents/.
Minimum array length: 1
Example:
["docu_1234567890123456789"]
reference_reason
string
default:ANULA DOCUMENTO DE LA REFERENCIA
Razón que va en la referencia de la nota de crédito. Opcional.
date_issued
string<date>
Fecha de emisión de la nota de crédito (AAAA-MM-DD). Opcional: por defecto, hoy.
Response
Una nota de crédito emitida por cada documento anulado, en results. Si algunos fallaron, vienen en partial_errors.
results
object[]
partial_errors
object[]
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Tupana","description":"Documentación de la API de facturación electrónica de Tupana para Chile: emite facturas, boletas, notas de crédito y guías (DTE) al SII como facturador de mercado, cobra con link de pago, cede facturas, consulta libros del SII y conecta agentes de IA por MCP.","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/tupana/ob-jfOeuEDi8hVBC/images/tupana.png?fit=max\u0026auto=format\u0026n=ob-jfOeuEDi8hVBC\u0026q=85\u0026s=3af09b9e705253a877f26308e35c22a4","dark":"https://mintcdn.com/tupana/ob-jfOeuEDi8hVBC/images/tupana.png?fit=max\u0026auto=format\u0026n=ob-jfOeuEDi8hVBC\u0026q=85\u0026s=3af09b9e705253a877f26308e35c22a4"},"favicon":"https://mintcdn.com/tupana/ob-jfOeuEDi8hVBC/images/tupana.png?fit=max\u0026auto=format\u0026n=ob-jfOeuEDi8hVBC\u0026q=85\u0026s=3af09b9e705253a877f26308e35c22a4","search":{"prompt":"Busca en la documentación de Tupana..."},"seo":{"metatags":{"canonical":"https://docs.tupana.ai","og:site_name":"Tupana Docs","og:type":"website","og:locale":"es_CL","twitter:card":"summary_large_image","keywords":"API facturación electrónica, Chile, SII, DTE, factura electrónica, boleta electrónica, facturador de mercado, MCP, Tupana","application-name":"Tupana Docs"},"organization":{"id":"https://www.tupana.ai/#organization","name":"Tupana","url":"https://www.tupana.ai","sameAs":["https://www.tupana.ai","https://developers.tupana.ai","https://github.com/tupana-ai"]},"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tupana","hasAudioNarration":false,"actualSubdomain":"tupana","customDomains":["docs.tupana.ai"],"gitSource":{"type":"github","owner":"afgil","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0764272b796627dc2416a5","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API Facturación","count":77},{"language":"default","tag":"Errores","count":44},{"language":"default","tag":"Códigos","count":42},{"language":"default","tag":"API Bancaria","count":35},{"language":"default","tag":"API Consultas","count":34},{"language":"default","tag":"Guía de Usuario","count":29},{"language":"default","tag":"API Recaudación","count":26},{"language":"default","tag":"Introducción","count":19},{"language":"default","tag":"Referencia","count":18},{"language":"default","tag":"Folios","count":15}]},"assistantConfig":{},"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":"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":[]}
{"page":{"pagePath":"api-reference/v2/documents/annulment","slug":"/api-reference/v2/documents/annulment","pageMetadata":{"title":"Anular facturas con nota de crédito por API (API v2)","sidebarTitle":"Anular con nota de crédito","openapi":"api-reference/openapi-v2.json POST /documents/actions/batch/","description":"POST /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.","href":"/api-reference/v2/documents/annulment"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"POST /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.\"\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`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Una factura emitida no se borra del SII: se anula emitiendo una `,_jsx(_components.strong,{children:`nota de crédito`}),` que la referencia con el código 1 del SII, “Anula documento de la referencia”. Con `,_jsx(_components.code,{children:`POST /v2/documents/actions/batch/`}),` y la acción `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`annul_with_credit_note`})}),`, Tupana arma esa nota de crédito copiando el receptor y las líneas del documento original, la emite en el SII y te la devuelve con su folio.`]}),`\n`,_jsx(Heading,{level:`2`,id:`qué-se-puede-anular`,children:`Qué se puede anular`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Documento original`}),_jsx(_components.th,{children:`Se anula con`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Factura electrónica (33), factura exenta (34)`}),_jsx(_components.td,{children:`Nota de crédito (61)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Boleta (39), boleta exenta (41)`}),_jsx(_components.td,{children:`Nota de crédito (61)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Factura de compra (46)`}),_jsx(_components.td,{children:`Nota de crédito (61)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Factura de exportación (110)`}),_jsx(_components.td,{children:`Nota de crédito de exportación (112)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Boleta de honorarios (80)`}),_jsxs(_components.td,{children:[`Sin nota de crédito: se anula directo en el SII. Ver `,_jsx(_components.a,{href:`/api-reference/v2/honorary/annulment`,children:`Anular boleta de honorarios`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`El documento tiene que estar emitido, con folio. Un borrador no llegó al SII y no hay nada que anular.`}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"annul_with_credit_note\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"document_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"docu_1234567890123456789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Qué es`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`action_type`})}),_jsxs(_components.td,{children:[`Siempre `,_jsx(_components.code,{children:`\"annul_with_credit_note\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_ids`})}),_jsxs(_components.td,{children:[`Los `,_jsx(_components.code,{children:`id`}),` de los documentos a anular, los mismos que devuelve la `,_jsx(_components.a,{href:`/api-reference/v2/documents/batch`,children:`emisión`}),` o `,_jsx(_components.a,{href:`/api-reference/v2/documents/list`,children:_jsx(_components.code,{children:`GET /v2/documents/`})}),`. Puedes enviar varios.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_reason`})}),_jsxs(_components.td,{children:[`Opcional. La razón que va en la referencia de la nota de crédito. Por defecto, `,_jsx(_components.code,{children:`ANULA DOCUMENTO DE LA REFERENCIA`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`date_issued`})}),_jsxs(_components.td,{children:[`Opcional. Fecha de emisión de la nota de crédito (`,_jsx(_components.code,{children:`AAAA-MM-DD`}),`). Por defecto, hoy.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`respuesta`,children:`Respuesta`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`201`}),` con una nota de crédito emitida por cada documento anulado:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"results\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"docu_9876543210987654321\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"folio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"245\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"date_issued\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-11\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"issued\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dte_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"61\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Nota de Crédito Electrónica\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Si algunos documentos no se pudieron anular, vienen en `,_jsx(_components.code,{children:`partial_errors`}),` con su `,_jsx(_components.code,{children:`document_id`}),` y el motivo; los demás se anulan igual. Si no se pudo anular ninguno, responde `,_jsx(_components.code,{children:`400`}),` con el detalle de cada uno.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`La nota de crédito es un documento más: la consultas con `,_jsx(_components.a,{href:`/api-reference/v2/documents/get`,children:_jsx(_components.code,{children:`GET /v2/documents/{id}/`})}),`, con su PDF y XML, y te llegan los mismos webhooks que en una emisió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":{"config":{},"pageMetadata":{"title":"Anular facturas con nota de crédito por API (API v2)","sidebarTitle":"Anular con nota de crédito","openapi":"api-reference/openapi-v2.json POST /documents/actions/batch/","description":"POST /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.","href":"/api-reference/v2/documents/annulment"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Qué se puede anular","slug":"qué-se-puede-anular","depth":2,"children":[]},{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Respuesta","slug":"respuesta","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"annulWithCreditNote","summary":"Anular con nota de crédito","description":"POST /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.","requestBody":"098a275a-9f8b-467c-bffc-aaba0c73b16b","responses":{"201":"b074643f-14aa-4772-8a2e-c50d0e1977cc","400":"227eb996-431a-4be8-9325-6d163b74ec7d","403":"96972ac1-0efc-4fe9-8f97-56e576b78df3"},"security":["67ae3fc1-0079-45f8-8d74-7f2063c8566b"],"method":"post","type":"path","servers":["c3a5308b-009d-4dc0-9536-75c39c0d5f01"],"path":"/documents/actions/batch/","baseUrlOptions":["https://api.tupana.ai/v2"],"title":"Anular con nota de crédito","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action_type","document_ids"],"properties":{"action_type":{"type":"string","enum":["annul_with_credit_note"],"default":"annul_with_credit_note","description":"Siempre `annul_with_credit_note`.","isRequired":true,"uniqueKey":"action_type","typeLabel":"enum\u003cstring>"},"document_ids":{"type":"array","minItems":1,"items":{"type":"string","uniqueKey":"document_ids.items.[INDEX]","typeLabel":"string"},"description":"IDs de los documentos a anular: los mismos `id` que devuelve la emisión o `GET /v2/documents/`.","example":["docu_1234567890123456789"],"isRequired":true,"uniqueKey":"document_ids","typeLabel":"string[]"},"reference_reason":{"type":"string","default":"ANULA DOCUMENTO DE LA REFERENCIA","description":"Razón que va en la referencia de la nota de crédito. Opcional.","uniqueKey":"reference_reason","typeLabel":"string"},"date_issued":{"type":"string","format":"date","description":"Fecha de emisión de la nota de crédito (AAAA-MM-DD). Opcional: por defecto, hoy.","uniqueKey":"date_issued","typeLabel":"string\u003cdate>"}},"uniqueKey":"","typeLabel":"object"},"example":{"action_type":"annul_with_credit_note","document_ids":["docu_1234567890123456789"]},"examples":{"Example":{"title":"Example","value":{"action_type":"annul_with_credit_note","document_ids":["docu_1234567890123456789"]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"b074643f-14aa-4772-8a2e-c50d0e1977cc":{"description":"Una nota de crédito emitida por cada documento anulado, en `results`. Si algunos fallaron, vienen en `partial_errors`.","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results","typeLabel":"object[]"},"partial_errors":{"type":"array","items":{"type":"object","properties":{"document_id":{"type":"string","uniqueKey":"partial_errors.items.[INDEX].document_id","typeLabel":"string"},"error":{"type":"string","uniqueKey":"partial_errors.items.[INDEX].error","typeLabel":"string"}},"uniqueKey":"partial_errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"partial_errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"results":[{"id":"docu_1234567890123456789","folio":"245","date_issued":"2026-11-11","state":"issued","dte_type":{"code":"61","name":"Nota de Crédito Electrónica"}}]},"examples":{"Example":{"title":"Example","value":{"results":[{"id":"docu_1234567890123456789","folio":"245","date_issued":"2026-11-11","state":"issued","dte_type":{"code":"61","name":"Nota de Crédito Electrónica"}}]}}},"exampleType":"examples"}},"exampleType":"examples"},"227eb996-431a-4be8-9325-6d163b74ec7d":{"description":"No se pudo anular ningún documento: no existe, no es de un tipo anulable (33, 34, 39, 41, 46, 80, 110) o el SII rechazó la nota de crédito.","content":{"application/json":{"example":{"error":"No se pudo anular ningún documento","details":[{"document_id":"docu_1234567890123456789","error":"Solo se pueden anular documentos de tipo ['33', '34', '39', '41', '46', '80', '110']. Tipo actual: 52"}]},"examples":{"Example":{"title":"Example","value":{"error":"No se pudo anular ningún documento","details":[{"document_id":"docu_1234567890123456789","error":"Solo se pueden anular documentos de tipo ['33', '34', '39', '41', '46', '80', '110']. Tipo actual: 52"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"96972ac1-0efc-4fe9-8f97-56e576b78df3":{"description":"La API key no tiene permiso para emitir documentos de esa empresa.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"67ae3fc1-0079-45f8-8d74-7f2063c8566b":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"API Key para autenticación. Debe proporcionarse en el header Authorization con el formato: 'Api-Key YOUR-API-KEY' (incluye el prefijo 'Api-Key ' seguido de tu API key)","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"c3a5308b-009d-4dc0-9536-75c39c0d5f01":{"url":"https://api.tupana.ai/v2","description":"Producción (v2)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"API Key para autenticación. Debe proporcionarse en el header Authorization con el formato: 'Api-Key YOUR-API-KEY' (incluye el prefijo 'Api-Key ' seguido de tu API key)","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"Authorization","type":"string","description":"API Key para autenticación. Debe proporcionarse en el header Authorization con el formato: 'Api-Key YOUR-API-KEY' (incluye el prefijo 'Api-Key ' seguido de tu API key)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"Authorization"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi-v2.json"},"subdomain":"tupana","siteName":"Tupana","title":"Anular facturas con nota de crédito por API (API v2) - Tupana","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v2":{"href":"/api-reference/v2/documents/annulment","matchLevel":0},"v1":{"href":"/api-reference/documents/list","matchLevel":2}},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T20:25:13.645Z","originalFileLocation":"api-reference/v2/documents/annulment.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 /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.\">\u003cmeta data-mint-head name=\"keywords\" content=\"API facturación electrónica, Chile, SII, DTE, factura electrónica, boleta electrónica, facturador de mercado, MCP, Tupana\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tupana\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tupana/fowjLNjN54KnVxEj/_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/tupana/fowjLNjN54KnVxEj/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tupana/fowjLNjN54KnVxEj/_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/tupana/fowjLNjN54KnVxEj/_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/tupana/fowjLNjN54KnVxEj/_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/tupana/fowjLNjN54KnVxEj/_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/tupana/fowjLNjN54KnVxEj/_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/tupana/fowjLNjN54KnVxEj/_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/tupana/fowjLNjN54KnVxEj/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Anular facturas con nota de crédito por API (API v2) - Tupana\">\u003cmeta data-mint-head property=\"og:description\" content=\"POST /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Tupana Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tupana.ai/api-reference/v2/documents/annulment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tupana.mintlify.site/_mintlify/api/og/v2?division=Documentos\u0026amp;title=Anular+facturas+con+nota+de+cr%C3%A9dito+por+API+%28API+v2%29\u0026amp;description=POST+%2Fv2%2Fdocuments%2Factions%2Fbatch%2F%3A+anula+facturas%2C+boletas+y+facturas+de+exportaci%C3%B3n+ya+emitidas+emitiendo+la+nota+de+cr%C3%A9dito+que+las+referencia+en+el+SII.\u0026amp;theme=ab609a1b3a8bbdb191c971f4\u0026amp;signature=4cea8f17b39ee01fe25eac879937e7464708832a595621e3564085e5920d3ca5\">\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 facturas con nota de crédito por API (API v2) - Tupana\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"POST /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tupana.mintlify.site/_mintlify/api/og/v2?division=Documentos\u0026amp;title=Anular+facturas+con+nota+de+cr%C3%A9dito+por+API+%28API+v2%29\u0026amp;description=POST+%2Fv2%2Fdocuments%2Factions%2Fbatch%2F%3A+anula+facturas%2C+boletas+y+facturas+de+exportaci%C3%B3n+ya+emitidas+emitiendo+la+nota+de+cr%C3%A9dito+que+las+referencia+en+el+SII.\u0026amp;theme=ab609a1b3a8bbdb191c971f4\u0026amp;signature=4cea8f17b39ee01fe25eac879937e7464708832a595621e3564085e5920d3ca5\">\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/tupana/fowjLNjN54KnVxEj/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Tupana\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003cmeta data-mint-head name=\"og:locale\" content=\"es_CL\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tupana Docs\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tupana.ai/api-reference/v2/documents/annulment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v2/documents/annulment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.tupana.ai/#organization\",\"name\":\"Tupana\",\"url\":\"https://www.tupana.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tupana/ob-jfOeuEDi8hVBC/images/tupana.png?fit=max\u0026auto=format\u0026n=ob-jfOeuEDi8hVBC\u0026q=85\u0026s=3af09b9e705253a877f26308e35c22a4\"},\"sameAs\":[\"https://www.tupana.ai\",\"https://developers.tupana.ai\",\"https://github.com/tupana-ai\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tupana.ai#website\",\"name\":\"Tupana\",\"url\":\"https://docs.tupana.ai\",\"publisher\":{\"@id\":\"https://www.tupana.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tupana.ai/api-reference/v2/documents/annulment#webpage\",\"url\":\"https://docs.tupana.ai/api-reference/v2/documents/annulment\",\"name\":\"Anular facturas con nota de crédito por API (API v2)\",\"description\":\"POST /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.\",\"dateModified\":\"2026-11-11T20:25:13.645Z\",\"isPartOf\":{\"@id\":\"https://docs.tupana.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tupana.ai/api-reference/v2/documents/annulment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tupana.ai/api-reference/v2/documents/annulment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documentos\",\"item\":\"https://docs.tupana.ai/api-reference/v2/documents/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Anular facturas con nota de crédito por API (API v2)\",\"item\":\"https://docs.tupana.ai/api-reference/v2/documents/annulment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tupana.ai/api-reference/v2/documents/annulment#apireference\",\"headline\":\"Anular facturas con nota de crédito por API (API v2)\",\"name\":\"Anular facturas con nota de crédito por API (API v2)\",\"description\":\"POST /v2/documents/actions/batch/: anula facturas, boletas y facturas de exportación ya emitidas emitiendo la nota de crédito que las referencia en el SII.\",\"url\":\"https://docs.tupana.ai/api-reference/v2/documents/annulment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tupana.ai/api-reference/v2/documents/annulment#webpage\"},\"dateModified\":\"2026-11-11T20:25:13.645Z\",\"publisher\":{\"@id\":\"https://www.tupana.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tupana.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Tupana\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Tupana\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v2/documents/annulment.md","siteName":"Tupana","nav":{"global":null,"versions":[{"version":"v2","tabs":[{"tab":"Guía de Usuario","pages":[{"title":"Guía de Usuario","href":""}]},{"tab":"API Facturación","groups":[{"group":"Introducción","pages":[{"title":"API de facturación electrónica v2: introducción","sidebarTitle":"Introducción","href":"/api-reference/v2/introduction"}]},{"group":"Entidades","pages":[{"title":"Buscar empresa por RUT (API v2)","sidebarTitle":"Buscar Entidad por RUT","openapi":"api-reference/openapi-v2.json GET /master-entities/","href":"/api-reference/v2/entities/master-entity"}]},{"group":"Conexiones","pages":[{"title":"Tupana Connect: conectar empresas al SII desde tu SaaS","sidebarTitle":"Tupana Connect","href":"/api-reference/v2/connect/tupana-connect"},{"title":"Crear sesión de Tupana Connect (API v2)","sidebarTitle":"Crear sesión","openapi":"api-reference/openapi-v2.json POST /connect-sessions/","href":"/api-reference/v2/connect/create-session"},{"title":"Listar conexiones de empresas (API v2)","sidebarTitle":"Listar conexiones","openapi":"api-reference/openapi-v2.json GET /connections/","href":"/api-reference/v2/connections/list"},{"title":"Reautorizar una conexión","openapi":"api-reference/openapi-v2.json POST /connections/{connection_id}/reauthorizations/","href":"/api-reference/v2/connections/reauthorize"},{"title":"Desactivar una conexión de empresa (API v2)","sidebarTitle":"Desactivar una conexión","openapi":"api-reference/openapi-v2.json DELETE /connections/{connection_id}/","href":"/api-reference/v2/connections/delete"}]},{"group":"Documentos","pages":[{"title":"Listar documentos tributarios electrónicos (API v2)","sidebarTitle":"Listar documentos","openapi":"api-reference/openapi-v2.json GET /documents/","href":"/api-reference/v2/documents/list"},{"title":"Emisión masiva de facturas electrónicas al SII (API v2)","sidebarTitle":"Emisión masiva de documentos","description":"POST /v2/documents/batch/: emite hasta 500 facturas, boletas, notas de crédito, guías de despacho o facturas de exportación al SII en una llamada, con Idempotency-Key y resultados por webhook.","openapi":"api-reference/openapi-v2.json POST /documents/batch/","href":"/api-reference/v2/documents/batch"},{"title":"Anular facturas con nota de crédito por API (API v2)","sidebarTitle":"Anular con nota de crédito","openapi":"api-reference/openapi-v2.json POST /documents/actions/batch/","href":"/api-reference/v2/documents/annulment"},{"title":"Obtener un documento tributario electrónico (API v2)","sidebarTitle":"Obtener documento específico","description":"Detalle completo de un DTE emitido o recibido: folio, montos, emisor, receptor, ítems, referencias, PDF y eventos de la traza del SII.","openapi":"api-reference/openapi-v2.json GET /documents/{document_id}/","href":"/api-reference/v2/documents/get"}]},{"group":"Estados de Documentos","pages":[{"title":"Consultar estados de un documento (API v2)","sidebarTitle":"Consultar estados de documento","openapi":"api-reference/openapi-v2.json GET /documents/{document_id}/states/","href":"/api-reference/v2/document-states/list"},{"title":"Registrar un estado de documento (API v2)","sidebarTitle":"Registrar estado de documento","openapi":"api-reference/openapi-v2.json POST /documents/{document_id}/states/","href":"/api-reference/v2/document-states/create"}]},{"group":"Documentos Programados","pages":[{"title":"Listar documentos programados (facturación recurrente, API v2)","sidebarTitle":"Listar documentos programados","openapi":"api-reference/openapi-v2.json GET /scheduled-documents/","href":"/api-reference/v2/scheduled-documents/list"},{"title":"Crear un documento programado (facturación recurrente, API v2)","sidebarTitle":"Crear documento programado","openapi":"api-reference/openapi-v2.json POST /scheduled-documents/","href":"/api-reference/v2/scheduled-documents/create"},{"title":"Obtener un documento programado (API v2)","sidebarTitle":"Obtener documento programado","openapi":"api-reference/openapi-v2.json GET /scheduled-documents/{id}/","href":"/api-reference/v2/scheduled-documents/get"},{"title":"Actualizar un documento programado (API v2)","sidebarTitle":"Actualizar documento programado","openapi":"api-reference/openapi-v2.json PATCH /scheduled-documents/{id}/","href":"/api-reference/v2/scheduled-documents/update"},{"title":"Vista previa de un documento programado (API v2)","sidebarTitle":"Preview de documento programado","openapi":"api-reference/openapi-v2.json GET /scheduled-documents/{id}/preview/","href":"/api-reference/v2/scheduled-documents/preview"},{"title":"Eliminar un documento programado (API v2)","sidebarTitle":"Eliminar documento programado","openapi":"api-reference/openapi-v2.json DELETE /scheduled-documents/{id}/","href":"/api-reference/v2/scheduled-documents/delete"}]},{"group":"Webhooks","pages":[{"title":"Listar webhooks (API v2)","sidebarTitle":"Listar webhooks","openapi":"api-reference/openapi-v2.json GET /webhooks/","href":"/api-reference/v2/webhooks-pages/list"},{"title":"Crear un webhook (API v2)","sidebarTitle":"Crear webhook","openapi":"api-reference/openapi-v2.json POST /webhooks/","href":"/api-reference/v2/webhooks-pages/create"},{"title":"Obtener un webhook (API v2)","sidebarTitle":"Obtener webhook","openapi":"api-reference/openapi-v2.json GET /webhooks/{webhook_id}/","href":"/api-reference/v2/webhooks-pages/get"},{"title":"Actualizar un webhook (API v2)","sidebarTitle":"Actualizar webhook","openapi":"api-reference/openapi-v2.json PATCH /webhooks/{webhook_id}/","href":"/api-reference/v2/webhooks-pages/update"},{"title":"Eliminar un webhook (API v2)","sidebarTitle":"Eliminar webhook","openapi":"api-reference/openapi-v2.json DELETE /webhooks/{webhook_id}/","href":"/api-reference/v2/webhooks-pages/delete"}]},{"group":"Errores","pages":[{"title":"Errores de la API v2","sidebarTitle":"Errores","href":"/api-reference/v2/errors"},{"title":"Códigos de error","sidebarTitle":"Todos los códigos","href":"/api-reference/error-codes"},{"group":"Códigos","pages":[{"title":"unauthenticated","sidebarTitle":"unauthenticated","href":"/api-reference/errors/unauthenticated"},{"title":"forbidden","sidebarTitle":"forbidden","href":"/api-reference/errors/forbidden"},{"title":"company_not_accessible","sidebarTitle":"company_not_accessible","href":"/api-reference/errors/company_not_accessible"},{"title":"sandbox_read_only","sidebarTitle":"sandbox_read_only","href":"/api-reference/errors/sandbox_read_only"},{"title":"sandbox_key_real_company","sidebarTitle":"sandbox_key_real_company","href":"/api-reference/errors/sandbox_key_real_company"},{"title":"bad_request","sidebarTitle":"bad_request","href":"/api-reference/errors/bad_request"},{"title":"parameter_missing","sidebarTitle":"parameter_missing","href":"/api-reference/errors/parameter_missing"},{"title":"parameter_invalid","sidebarTitle":"parameter_invalid","href":"/api-reference/errors/parameter_invalid"},{"title":"rut_invalid","sidebarTitle":"rut_invalid","href":"/api-reference/errors/rut_invalid"},{"title":"validation_error","sidebarTitle":"validation_error","href":"/api-reference/errors/validation_error"},{"title":"unprocessable","sidebarTitle":"unprocessable","href":"/api-reference/errors/unprocessable"},{"title":"not_found","sidebarTitle":"not_found","href":"/api-reference/errors/not_found"},{"title":"resource_missing","sidebarTitle":"resource_missing","href":"/api-reference/errors/resource_missing"},{"title":"method_not_allowed","sidebarTitle":"method_not_allowed","href":"/api-reference/errors/method_not_allowed"},{"title":"conflict","sidebarTitle":"conflict","href":"/api-reference/errors/conflict"},{"title":"cursor_invalid","sidebarTitle":"cursor_invalid","href":"/api-reference/errors/cursor_invalid"},{"title":"cursor_expired","sidebarTitle":"cursor_expired","href":"/api-reference/errors/cursor_expired"},{"title":"rate_limited","sidebarTitle":"rate_limited","href":"/api-reference/errors/rate_limited"},{"title":"emission_in_progress","sidebarTitle":"emission_in_progress","href":"/api-reference/errors/emission_in_progress"},{"title":"payment_required","sidebarTitle":"payment_required","href":"/api-reference/errors/payment_required"},{"title":"card_required","sidebarTitle":"card_required","href":"/api-reference/errors/card_required"},{"title":"no_active_credentials","sidebarTitle":"no_active_credentials","href":"/api-reference/errors/no_active_credentials"},{"title":"folios_temporarily_unavailable","sidebarTitle":"folios_temporarily_unavailable","href":"/api-reference/errors/folios_temporarily_unavailable"},{"title":"sii_rejected","sidebarTitle":"sii_rejected","href":"/api-reference/errors/sii_rejected"},{"title":"sii_unauthorized","sidebarTitle":"sii_unauthorized","href":"/api-reference/errors/sii_unauthorized"},{"title":"sii_session_expired","sidebarTitle":"sii_session_expired","href":"/api-reference/errors/sii_session_expired"},{"title":"sii_unavailable","sidebarTitle":"sii_unavailable","href":"/api-reference/errors/sii_unavailable"},{"title":"document_ids_empty","sidebarTitle":"document_ids_empty","href":"/api-reference/errors/document_ids_empty"},{"title":"document_not_cessionable","sidebarTitle":"document_not_cessionable","href":"/api-reference/errors/document_not_cessionable"},{"title":"assignee_data_incomplete","sidebarTitle":"assignee_data_incomplete","href":"/api-reference/errors/assignee_data_incomplete"},{"title":"assignee_rut_invalid","sidebarTitle":"assignee_rut_invalid","href":"/api-reference/errors/assignee_rut_invalid"},{"title":"assignor_email_missing","sidebarTitle":"assignor_email_missing","href":"/api-reference/errors/assignor_email_missing"},{"title":"mixed_payers","sidebarTitle":"mixed_payers","href":"/api-reference/errors/mixed_payers"},{"title":"cannot_mix_modes","sidebarTitle":"cannot_mix_modes","href":"/api-reference/errors/cannot_mix_modes"},{"title":"document_not_owned","sidebarTitle":"document_not_owned","href":"/api-reference/errors/document_not_owned"},{"title":"document_not_payable","sidebarTitle":"document_not_payable","href":"/api-reference/errors/document_not_payable"},{"title":"document_already_paid","sidebarTitle":"document_already_paid","href":"/api-reference/errors/document_already_paid"},{"title":"sandbox_document_required","sidebarTitle":"sandbox_document_required","href":"/api-reference/errors/sandbox_document_required"},{"title":"banking_info_missing","sidebarTitle":"banking_info_missing","href":"/api-reference/errors/banking_info_missing"},{"title":"internal_error","sidebarTitle":"internal_error","href":"/api-reference/errors/internal_error"},{"title":"server_busy","sidebarTitle":"server_busy","href":"/api-reference/errors/server_busy"},{"title":"service_unavailable","sidebarTitle":"service_unavailable","href":"/api-reference/errors/service_unavailable"}]}]}]},{"tab":"API Bancaria","pages":[{"title":"API Bancaria","href":"/api-reference/v2/banking/introduction"}]},{"tab":"API Cesiones","pages":[{"title":"API Cesiones","href":"/api-reference/v2/cessions/introduction"}]},{"tab":"API Recaudación","pages":[{"title":"API Recaudación","href":"/api-reference/v2/payment-requests/introduction"}]},{"tab":"API Consultas","pages":[{"title":"API Consultas","href":"/api-reference/v2/consultas/introduction"}]},{"tab":"Bases de Datos Gratuitas","pages":[{"title":"Bases de Datos Gratuitas","href":"/api-reference/v2/free-databases/introduction"}]},{"tab":"API Boleta de Honorarios","pages":[{"title":"API Boleta de Honorarios","href":"/api-reference/v2/honorary/introduction"}]}]},{"version":"v1","pages":[{"title":"v1","href":"/api-reference/documents/list"}]}]},"basePath":"","title":"Anular facturas con nota de crédito por API (API v2) - Tupana","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}