Cada endpoint, generado desde el contrato OpenAPI de Cufea, con un playground.
Las páginas de esta sección se generan desde el contrato OpenAPI que la API publica en
https://api.cufea.com/openapi.json, así que siempre coinciden con él. Las descripciones del
contrato están en inglés. Su historial de versiones está en el changelog.
URL base
https://api.cufea.com
Autenticación
Todo endpoint salvo GET /v1/health recibe Authorization: Bearer <key>. Las rutas
/v1/partner reciben una clave de partner (cufea_partner_) y ninguna otra la acepta. Ver
Autenticación.
Pruébala con una clave de sandbox
Usa una clave cufea_sandbox_ en el playground. Habla con la DIAN simulada de Cufea, así
que nada de lo que envíes ahí tiene validez legal. Una clave cufea_test_ llega al ambiente de
pruebas de la DIAN, y una clave cufea_prod_emite facturas reales: la API no sabe que la
petición salió de esta documentación.
Abre un endpoint, por ejemplo GET /v1/tenant, y elige Try it.
Pega la clave en el campo de autorización y envía.
El playground envía la petición a través del proxy de la plataforma de documentación, así que
tu navegador no llama a api.cufea.com directamente. Tu clave viaja en esa petición: no uses
claves de producción ahí.
Convenciones
Los valores y las cantidades son cadenas decimales, como "119000.00", nunca números JSON.
Los errores son application/problem+json; ver Errores.
Las creaciones y los envíos reciben la cabecera Idempotency-Key; ver
Idempotencia.
Toda respuesta con clave trae cabeceras X-RateLimit-*; ver Rate limits.
Los listados usan paginación por cursor; ver Paginación.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cufea","description":"Colombian DIAN electronic invoicing over a REST API.","colors":{"primary":"#121211","light":"#F2F1ED","dark":"#121211"},"logo":{"light":"https://mintcdn.com/cufea/TQMXUpl4W5MDYEjW/logo/light.svg?fit=max\u0026auto=format\u0026n=TQMXUpl4W5MDYEjW\u0026q=85\u0026s=3fb3cb984171272f2790de13971ec643","dark":"https://mintcdn.com/cufea/TQMXUpl4W5MDYEjW/logo/dark.svg?fit=max\u0026auto=format\u0026n=TQMXUpl4W5MDYEjW\u0026q=85\u0026s=6adb6699d9f4470ae9db5449af33cb09","href":"https://cufea.com"},"favicon":"https://mintcdn.com/cufea/TQMXUpl4W5MDYEjW/favicon.svg?fit=max\u0026auto=format\u0026n=TQMXUpl4W5MDYEjW\u0026q=85\u0026s=ed675e6c3e46b89eb52c37d55c016228","api":{"playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["bash","javascript","python"]}},"footer":{"links":[{"header":"Cufea","items":[{"label":"cufea.com","href":"https://cufea.com"},{"label":"Console","href":"https://app.cufea.com"}]}]},"seo":{"metatags":{"canonical":"https://docs.cufea.com"}},"fonts":{"family":"Geist"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":false},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"app.cufea.com","icon":"key-round","href":"https://app.cufea.com/signup"}]},"languages":[{"language":"es","navbar":{"links":[{"href":"https://cufea.com","label":"cufea.com"}],"primary":{"type":"button","label":"Obtener clave de sandbox","href":"https://app.cufea.com/signup"}},"href":""},{"language":"en","navbar":{"links":[{"href":"https://cufea.com","label":"cufea.com"}],"primary":{"type":"button","label":"Get a sandbox key","href":"https://app.cufea.com/signup"}},"href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cufea","hasAudioNarration":false,"actualSubdomain":"cufea","customDomains":[],"gitSource":{"type":"github","owner":"cailash-labs","repo":"cufea","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":"","_id":"6b0f51ccbca01e694bcc0d8e"},"entitlements":{},"buildId":"6b0f6471a5e2b0c26a8b7b6a","clientVersion":"0.0.4402","searchFilterCounts":[{"language":"default","tag":"Getting Started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"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":"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}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/introduction","slug":"/api-reference/introduction","pageMetadata":{"title":"Referencia de API","description":"Cada endpoint, generado desde el contrato OpenAPI de Cufea, con un playground.","href":"/api-reference/introduction"},"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: \"Cada endpoint, generado desde el contrato OpenAPI de Cufea, con un playground.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Las páginas de esta sección se generan desde el contrato OpenAPI que la API publica en\n`,_jsx(_components.code,{children:`https://api.cufea.com/openapi.json`}),`, así que siempre coinciden con él. Las descripciones del\ncontrato están en inglés. Su historial de versiones está en el `,_jsx(_components.a,{href:`/changelog`,children:`changelog`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`url-base`,children:`URL base`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.cufea.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`autenticación`,children:`Autenticación`}),`\n`,_jsxs(_components.p,{children:[`Todo endpoint salvo `,_jsx(_components.code,{children:`GET /v1/health`}),` recibe `,_jsx(_components.code,{children:`Authorization: Bearer \u003ckey>`}),`. Las rutas\n`,_jsx(_components.code,{children:`/v1/partner`}),` reciben una clave de partner (`,_jsx(_components.code,{children:`cufea_partner_`}),`) y ninguna otra la acepta. Ver\n`,_jsx(_components.a,{href:`/authentication`,children:`Autenticación`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`pruébala-con-una-clave-de-sandbox`,children:`Pruébala con una clave de sandbox`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Usa una clave `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`cufea_sandbox_`})}),` en el playground. Habla con la DIAN simulada de Cufea, así\nque nada de lo que envíes ahí tiene validez legal. Una clave `,_jsx(_components.code,{children:`cufea_test_`}),` llega al ambiente de\npruebas de la DIAN, y una clave `,_jsx(_components.code,{children:`cufea_prod_`}),` `,_jsx(_components.strong,{children:`emite facturas reales`}),`: la API no sabe que la\npetición salió de esta documentación.`]})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Obtén una clave de sandbox en la `,_jsx(_components.a,{href:`https://app.cufea.com/signup`,children:`consola de desarrolladores`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Abre un endpoint, por ejemplo `,_jsx(_components.code,{children:`GET /v1/tenant`}),`, y elige `,_jsx(_components.strong,{children:`Try it`}),`.`]}),`\n`,_jsx(_components.li,{children:`Pega la clave en el campo de autorización y envía.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`El playground envía la petición a través del proxy de la plataforma de documentación, así que\ntu navegador no llama a `,_jsx(_components.code,{children:`api.cufea.com`}),` directamente. Tu clave viaja en esa petición: no uses\nclaves de producción ahí.`]}),`\n`,_jsx(Heading,{level:`2`,id:`convenciones`,children:`Convenciones`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Los valores y las cantidades son cadenas decimales, como `,_jsx(_components.code,{children:`\"119000.00\"`}),`, nunca números JSON.`]}),`\n`,_jsxs(_components.li,{children:[`Los errores son `,_jsx(_components.code,{children:`application/problem+json`}),`; ver `,_jsx(_components.a,{href:`/errors`,children:`Errores`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Las creaciones y los envíos reciben la cabecera `,_jsx(_components.code,{children:`Idempotency-Key`}),`; ver\n`,_jsx(_components.a,{href:`/idempotency`,children:`Idempotencia`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Toda respuesta con clave trae cabeceras `,_jsx(_components.code,{children:`X-RateLimit-*`}),`; ver `,_jsx(_components.a,{href:`/rate-limits`,children:`Rate limits`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Los listados usan paginación por cursor; ver `,_jsx(_components.a,{href:`/pagination`,children:`Paginación`}),`.`]}),`\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":"Referencia de API","description":"Cada endpoint, generado desde el contrato OpenAPI de Cufea, con un playground.","href":"/api-reference/introduction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"URL base","slug":"url-base","depth":2,"children":[]},{"title":"Autenticación","slug":"autenticación","depth":2,"children":[]},{"title":"Pruébala con una clave de sandbox","slug":"pruébala-con-una-clave-de-sandbox","depth":2,"children":[]},{"title":"Convenciones","slug":"convenciones","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cufea","siteName":"Cufea","title":"Referencia de API - Cufea","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/api-reference/introduction","matchLevel":0},"en":{"href":"/en/api-reference/introduction","matchLevel":1}}},"lastModified":"2026-12-02T00:21:15.343Z","originalFileLocation":"api-reference/introduction.mdx","locale":"es"},"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=\"Cada endpoint, generado desde el contrato OpenAPI de Cufea, con un playground.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cufea\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_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/cufea/lyC3DbbRdAr51oOK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_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/cufea/lyC3DbbRdAr51oOK/_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/cufea/lyC3DbbRdAr51oOK/_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/cufea/lyC3DbbRdAr51oOK/_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/cufea/lyC3DbbRdAr51oOK/_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/cufea/lyC3DbbRdAr51oOK/_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/cufea/lyC3DbbRdAr51oOK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Referencia de API - Cufea\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cada endpoint, generado desde el contrato OpenAPI de Cufea, con un playground.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cufea\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cufea.com/api-reference/introduction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cufea.mintlify.site/_mintlify/api/og/v2?division=Referencia+API\u0026amp;title=Referencia+de+API\u0026amp;description=Cada+endpoint%2C+generado+desde+el+contrato+OpenAPI+de+Cufea%2C+con+un+playground.\u0026amp;theme=749a62f2b8a3fccfdbd11508\u0026amp;signature=ab52216f2e1e42f52836ef7dbd4b70d7128ea696ba43b0190702a1d6a69018c0\">\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=\"Referencia de API - Cufea\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cada endpoint, generado desde el contrato OpenAPI de Cufea, con un playground.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cufea.mintlify.site/_mintlify/api/og/v2?division=Referencia+API\u0026amp;title=Referencia+de+API\u0026amp;description=Cada+endpoint%2C+generado+desde+el+contrato+OpenAPI+de+Cufea%2C+con+un+playground.\u0026amp;theme=749a62f2b8a3fccfdbd11508\u0026amp;signature=ab52216f2e1e42f52836ef7dbd4b70d7128ea696ba43b0190702a1d6a69018c0\">\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/cufea/lyC3DbbRdAr51oOK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cufea\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#121211\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cufea.com/api-reference/introduction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/introduction.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.cufea.com/api-reference/introduction\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.cufea.com/en/api-reference/introduction\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.cufea.com/api-reference/introduction\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cufea.com/#organization\",\"name\":\"Cufea\",\"url\":\"https://docs.cufea.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cufea/TQMXUpl4W5MDYEjW/logo/light.svg?fit=max\u0026auto=format\u0026n=TQMXUpl4W5MDYEjW\u0026q=85\u0026s=3fb3cb984171272f2790de13971ec643\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cufea.com#website\",\"name\":\"Cufea\",\"url\":\"https://docs.cufea.com\",\"publisher\":{\"@id\":\"https://docs.cufea.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cufea.com/api-reference/introduction#webpage\",\"url\":\"https://docs.cufea.com/api-reference/introduction\",\"name\":\"Referencia de API\",\"description\":\"Cada endpoint, generado desde el contrato OpenAPI de Cufea, con un playground.\",\"dateModified\":\"2026-12-02T00:21:15.343Z\",\"isPartOf\":{\"@id\":\"https://docs.cufea.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cufea.com/api-reference/introduction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cufea.com/api-reference/introduction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cufea\",\"item\":\"https://docs.cufea.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Referencia de API\",\"item\":\"https://docs.cufea.com/api-reference/introduction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cufea.com/api-reference/introduction#article\",\"headline\":\"Referencia de API\",\"name\":\"Referencia de API\",\"description\":\"Cada endpoint, generado desde el contrato OpenAPI de Cufea, con un playground.\",\"url\":\"https://docs.cufea.com/api-reference/introduction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cufea.com/api-reference/introduction#webpage\"},\"dateModified\":\"2026-12-02T00:21:15.343Z\",\"publisher\":{\"@id\":\"https://docs.cufea.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cufea.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cufea\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cufea\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/introduction.md","siteName":"Cufea","nav":{"global":{"anchors":[{"anchor":"app.cufea.com","icon":"key-round","href":"https://app.cufea.com/signup"}]},"languages":[{"language":"es","navbar":{"links":[{"href":"https://cufea.com","label":"cufea.com"}],"primary":{"type":"button","label":"Obtener clave de sandbox","href":"https://app.cufea.com/signup"}},"tabs":[{"tab":"Docs API","groups":[{"group":"Documentación","pages":[{"title":"Introducción","href":""},{"title":"Inicio rápido","href":"/quickstart"},{"title":"Autenticación","href":"/authentication"},{"title":"Errores","href":"/errors"},{"title":"Paginación","href":"/pagination"},{"title":"Idempotencia","href":"/idempotency"},{"title":"Rate limits","href":"/rate-limits"},{"title":"Webhooks","href":"/webhooks"}]},{"group":"Guías","pages":[{"title":"Clientes y adquirientes","href":"/guides/customers"},{"title":"Numeración","href":"/guides/numbering"},{"title":"Medios de pago","href":"/guides/payments"},{"title":"Totales y redondeo","href":"/guides/totals"},{"title":"Descuentos","href":"/guides/discounts"},{"title":"Leyendas y observaciones","href":"/guides/legends"},{"title":"Notas crédito y débito","href":"/guides/notes"},{"title":"Entrega al comprador","href":"/guides/delivery"},{"title":"Documentos closed","href":"/guides/closed-documents"}]},{"group":"De prueba a producción","pages":[{"title":"De prueba a producción","href":"/production"}]},{"group":"Partners","pages":[{"title":"Partners","href":"/partners"}]},{"group":"SDK y MCP","pages":[{"title":"SDK de TypeScript","href":"/sdk"},{"title":"Servidor MCP","description":"Permite que los agentes de IA emitan facturas de sandbox con Cufea mediante el servidor MCP remoto.","href":"/mcp"}]},{"group":"Referencia API","pages":[{"title":"Referencia de API","href":"/api-reference/introduction"}]},{"group":"Endpoints","pages":[{"group":"documents","pages":[{"title":"Find a document by your reference","description":"Lists the document of `kind` that was created with `reference` in the tenant and stage of this API key: one item, exactly as `GET /v1/invoices/{document_id}` or `GET /v1/notes/{kind}/{document_id}` returns it, or none.\n\nAn empty `items` is definitive, never a 404: Cufea has no document with that reference, so it was never created and the create can be sent again. Use it after a create whose answer was lost, or to resolve a 409 `reference_conflict`.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/documents","href":"/api-reference/documents/find-a-document-by-your-reference"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices","href":"/api-reference/documents/list-invoices"},{"title":"List credit and debit notes","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes","href":"/api-reference/documents/list-credit-and-debit-notes"}]},{"group":"system","pages":[{"title":"Liveness check","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/health","href":"/api-reference/system/liveness-check"}]},{"group":"invoices","pages":[{"title":"Create a signed invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices","href":"/api-reference/invoices/create-a-signed-invoice"},{"title":"Get a stored invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}","href":"/api-reference/invoices/get-a-stored-invoice"},{"title":"Get the AttachedDocument of an accepted invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}/attached-document","href":"/api-reference/invoices/get-the-attacheddocument-of-an-accepted-invoice"},{"title":"Get the buyer email of an accepted invoice, to send it yourself","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}/email-content","href":"/api-reference/invoices/get-the-buyer-email-of-an-accepted-invoice-to-send-it-yourself"},{"title":"Get the PDF (representación gráfica) of an accepted invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}/pdf","href":"/api-reference/invoices/get-the-pdf-representación-gráfica-of-an-accepted-invoice"},{"title":"Ask the DIAN for the current status of an invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{document_id}/refresh","href":"/api-reference/invoices/ask-the-dian-for-the-current-status-of-an-invoice"},{"title":"Send an invoice to the DIAN","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{document_id}/send","href":"/api-reference/invoices/send-an-invoice-to-the-dian"},{"title":"Send (or resend) the buyer email of an accepted invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{document_id}/send-email","href":"/api-reference/invoices/send-or-resend-the-buyer-email-of-an-accepted-invoice"},{"title":"Get the signed XML of an invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}/xml","href":"/api-reference/invoices/get-the-signed-xml-of-an-invoice"}]},{"group":"events","pages":[{"title":"Get the RADIAN event chain of an invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{invoice_id}/events","href":"/api-reference/events/get-the-radian-event-chain-of-an-invoice"},{"title":"Schedule a RADIAN event on an accepted invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{invoice_id}/events","href":"/api-reference/events/schedule-a-radian-event-on-an-accepted-invoice"},{"title":"Ask the DIAN which events of an invoice are registered","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{invoice_id}/events/refresh","href":"/api-reference/events/ask-the-dian-which-events-of-an-invoice-are-registered"},{"title":"Get one saved RADIAN event","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{invoice_id}/events/{event_id}","href":"/api-reference/events/get-one-saved-radian-event"},{"title":"Queue the sending of a saved RADIAN event","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{invoice_id}/events/{event_id}/send","href":"/api-reference/events/queue-the-sending-of-a-saved-radian-event"}]},{"group":"notes","pages":[{"title":"Create a signed credit or debit note","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/notes","href":"/api-reference/notes/create-a-signed-credit-or-debit-note"},{"title":"Get a stored credit or debit note","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes/{kind}/{document_id}","href":"/api-reference/notes/get-a-stored-credit-or-debit-note"},{"title":"Get the buyer email of an accepted note, to send it yourself","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes/{kind}/{document_id}/email-content","href":"/api-reference/notes/get-the-buyer-email-of-an-accepted-note-to-send-it-yourself"},{"title":"Get the PDF (representación gráfica) of an accepted note","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes/{kind}/{document_id}/pdf","href":"/api-reference/notes/get-the-pdf-representación-gráfica-of-an-accepted-note"},{"title":"Send a credit or debit note to the DIAN","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/notes/{kind}/{document_id}/send","href":"/api-reference/notes/send-a-credit-or-debit-note-to-the-dian"},{"title":"Send (or resend) the buyer email of an accepted note","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/notes/{kind}/{document_id}/send-email","href":"/api-reference/notes/send-or-resend-the-buyer-email-of-an-accepted-note"},{"title":"Get the signed XML of a credit or debit note","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes/{kind}/{document_id}/xml","href":"/api-reference/notes/get-the-signed-xml-of-a-credit-or-debit-note"}]},{"group":"partner","pages":[{"title":"List the partner's tenants","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/partner/tenants","href":"/api-reference/partner/list-the-partners-tenants"},{"title":"Provision a client company as a tenant","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/partner/tenants","href":"/api-reference/partner/provision-a-client-company-as-a-tenant"},{"title":"Get one of the partner's tenants","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/partner/tenants/{tenant_id}","href":"/api-reference/partner/get-one-of-the-partners-tenants"},{"title":"List the tenant's API keys","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/partner/tenants/{tenant_id}/api-keys","href":"/api-reference/partner/list-the-tenants-api-keys"},{"title":"Issue an API key of the tenant","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/partner/tenants/{tenant_id}/api-keys","href":"/api-reference/partner/issue-an-api-key-of-the-tenant"},{"title":"Revoke an API key of the tenant","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/partner/tenants/{tenant_id}/api-keys/{key_id}","href":"/api-reference/partner/revoke-an-api-key-of-the-tenant"}]},{"group":"tenant","pages":[{"title":"Identify the authenticated tenant","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant","href":"/api-reference/tenant/identify-the-authenticated-tenant"},{"title":"List the tenant's API keys","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/api-keys","href":"/api-reference/tenant/list-the-tenants-api-keys"},{"title":"Issue an API key","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/tenant/api-keys","href":"/api-reference/tenant/issue-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/tenant/api-keys/{key_id}","href":"/api-reference/tenant/revoke-an-api-key"},{"title":"Get the stored signing certificate","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/certificate/{stage}","href":"/api-reference/tenant/get-the-stored-signing-certificate"},{"title":"Upload the signing certificate (.p12)","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/tenant/certificate/{stage}","href":"/api-reference/tenant/upload-the-signing-certificate-p12"},{"title":"Report what the tenant has configured","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/configuration","href":"/api-reference/tenant/report-what-the-tenant-has-configured"},{"title":"Get the issuer","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/issuer","href":"/api-reference/tenant/get-the-issuer"},{"title":"Set the issuer","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/tenant/issuer","href":"/api-reference/tenant/set-the-issuer"},{"title":"Get the default numbering range","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/numbering-range","href":"/api-reference/tenant/get-the-default-numbering-range"},{"title":"Add or update one numbering range","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/tenant/numbering-range","href":"/api-reference/tenant/add-or-update-one-numbering-range"},{"title":"List the numbering ranges","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/numbering-ranges","href":"/api-reference/tenant/list-the-numbering-ranges"},{"title":"Promote the tenant to the DIAN production stage","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/tenant/promote","href":"/api-reference/tenant/promote-the-tenant-to-the-dian-production-stage"},{"title":"Check what the promotion still needs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/promotion","href":"/api-reference/tenant/check-what-the-promotion-still-needs"},{"title":"Store a secret (write-only)","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/tenant/secrets/{kind}","href":"/api-reference/tenant/store-a-secret-write-only"},{"title":"Report the DIAN test set status","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/test-set","href":"/api-reference/tenant/report-the-dian-test-set-status"}]},{"group":"webhooks","pages":[{"title":"List the tenant's webhook endpoints","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/webhooks","href":"/api-reference/webhooks/list-the-tenants-webhook-endpoints"},{"title":"Add a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/tenant/webhooks","href":"/api-reference/webhooks/add-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/tenant/webhooks/{endpoint_id}","href":"/api-reference/webhooks/delete-a-webhook-endpoint"},{"title":"`eventregistered` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook event.registered","href":"/api-reference/webhooks/`eventregistered`-delivered-to-your-endpoint"},{"title":"`invoiceaccepted` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook invoice.accepted","href":"/api-reference/webhooks/`invoiceaccepted`-delivered-to-your-endpoint"},{"title":"`invoicedelivered` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook invoice.delivered","href":"/api-reference/webhooks/`invoicedelivered`-delivered-to-your-endpoint"},{"title":"`invoicedelivery failed` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook invoice.delivery_failed","href":"/api-reference/webhooks/`invoicedelivery_failed`-delivered-to-your-endpoint"},{"title":"`invoicerejected` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook invoice.rejected","href":"/api-reference/webhooks/`invoicerejected`-delivered-to-your-endpoint"},{"title":"`noteaccepted` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook note.accepted","href":"/api-reference/webhooks/`noteaccepted`-delivered-to-your-endpoint"},{"title":"`notedelivered` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook note.delivered","href":"/api-reference/webhooks/`notedelivered`-delivered-to-your-endpoint"},{"title":"`notedelivery failed` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook note.delivery_failed","href":"/api-reference/webhooks/`notedelivery_failed`-delivered-to-your-endpoint"},{"title":"`noterejected` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook note.rejected","href":"/api-reference/webhooks/`noterejected`-delivered-to-your-endpoint"}]}]}]},{"tab":"Novedades","pages":[{"title":"Novedades","href":"/changelog"}]}]},{"language":"en","navbar":{"links":[{"href":"https://cufea.com","label":"cufea.com"}],"primary":{"type":"button","label":"Get a sandbox key","href":"https://app.cufea.com/signup"}},"pages":[{"title":"en","href":"/en/api-reference/introduction"}]}]},"basePath":"","title":"Referencia de API - Cufea","deploymentId":"dpl_CwahHhD5zhwmkLtcenbR5oYrGaSo","buildId":"dpl_CwahHhD5zhwmkLtcenbR5oYrGaSo","dynamics":[],"chunks":[]}